MCPcopy Create free account
hub / github.com/alibaba/nann / _preprocess_conv2d_input

Function _preprocess_conv2d_input

tensorflow/tensorflow/python/keras/backend.py:4608–4628  ·  view source on GitHub ↗

Transpose and cast the input before the conv2d. Arguments: x: input tensor. data_format: string, `"channels_last"` or `"channels_first"`. force_transpose: Boolean. If True, the input will always be transposed from NCHW to NHWC if `data_format` is `"channels_first"`.

(x, data_format, force_transpose=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

conv2dFunction · 0.85
conv2d_transposeFunction · 0.85
separable_conv2dFunction · 0.85
depthwise_conv2dFunction · 0.85
pool2dFunction · 0.85

Calls 2

_has_nchw_supportFunction · 0.85
transposeMethod · 0.80

Tested by

no test coverage detected