MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / op

Function op

tensorflow/python/ops/nn_ops.py:1331–1344  ·  view source on GitHub ↗
(converted_input, _, converted_padding)

Source from the content-addressed store, hash-verified

1329 data_format_kwargs = dict(data_format=data_format)
1330
1331 def op(converted_input, _, converted_padding): # pylint: disable=missing-docstring
1332 if num_spatial_dims == 1:
1333 converted_input = array_ops.expand_dims(converted_input,
1334 spatial_dims[0])
1335 result = pooling_ops[op_key](
1336 converted_input,
1337 adjusted_window_shape,
1338 adjusted_strides,
1339 converted_padding,
1340 name=scope,
1341 **data_format_kwargs)
1342 if num_spatial_dims == 1:
1343 result = array_ops.squeeze(result, [spatial_dims[0]])
1344 return result
1345
1346 return with_space_to_batch(
1347 input=input,

Callers 15

random_normalMethod · 0.70
random_uniformMethod · 0.70
truncated_normalMethod · 0.70
testPartialShapesMethod · 0.70
_lstm_blockMethod · 0.70
_inplace_helperFunction · 0.70
_non_atrous_convolutionFunction · 0.70
build_opFunction · 0.70
convolution_internalFunction · 0.70
conv_transposeFunction · 0.70
avg_pool_v2Function · 0.70

Calls 1

expand_dimsMethod · 0.45

Tested by 15

testPartialShapesMethod · 0.56
_lstm_blockMethod · 0.56
testForwardingMethod · 0.40
testRemovePrefixMethod · 0.40
testRegexReplaceMethod · 0.40
testEmptyMatchMethod · 0.40
testInvalidPatternMethod · 0.40
testGlobalMethod · 0.40
testGradGradMethod · 0.40
_NumpyScatterNdFunction · 0.40