Performs a resize and padding as a preprocess during a convolution.
View aliases
Compat aliases for migration
See Migration guide for more details.
tf.raw_ops.FusedResizeAndPadConv2D(
input,
size,
paddings,
filter,
mode,
strides,
padding,
resize_align_corners=False,
name=None
)
It's often possible to do spatial transformations more efficiently as part of the packing stage of a convolution, so this op allows for an optimized implementation where these stages are fused together. This prevents the need to write out the intermediate results as whole tensors, reducing memory pressure, and we can get some latency gains by merging the transformation calculations. The data_format attribute for Conv2D isn't supported by this op, and defaults to 'NHWC' order. Internally this op uses a single per-graph scratch buffer, which means that it will block if multiple versions are being run in parallel. This is because this operator is primarily an optimization to minimize memory usage.
Returns | |
---|---|
A Tensor . Has the same type as input .
|