R/resampleTensorUtilities.R
layer_resample_tensor_2d.RdResamples a spatial tensor based on the specified shape and interpolation type.
layer_resample_tensor_2d( object, shape, interpolationType = c("nearestNeighbor", "nearest", "linear", "bilinear", "cubic", "bicubic"), name = NULL, trainable = FALSE )
| object | Object to compose layer with. This is either a keras::keras_model_sequential to add the layer to, or another Layer which this layer will call. |
|---|---|
| shape | vector or list of length 2 specifying the shape of the output tensor. |
| interpolationType | type of interpolation for resampling. Can be
|
| name | The name of the layer |
| trainable | Whether the layer weights will be updated during training. |
a keras layer tensor
Tustison NJ