imagenet_preprocess_input {keras} | R Documentation |
Preprocesses a tensor or array encoding a batch of images.
Description
Preprocesses a tensor or array encoding a batch of images.
Usage
imagenet_preprocess_input(x, data_format = NULL, mode = "caffe")
Arguments
x |
Input Numpy or symbolic tensor, 3D or 4D. |
data_format |
Data format of the image tensor/array. |
mode |
One of "caffe", "tf", or "torch"
|
Value
Preprocessed tensor or array.
[Package keras version 2.15.0 Index]