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

Function GetExplicitPaddingForDim

tensorflow/core/util/tensor_format.h:497–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497inline void GetExplicitPaddingForDim(
498 const std::vector<int64>& explicit_paddings, TensorFormat tensor_format,
499 char dimension, int64* padding_before, int64* padding_after) {
500 int index =
501 GetTensorDimIndex(tensor_format, dimension, explicit_paddings.size() / 2);
502 *padding_before = explicit_paddings[2 * index];
503 *padding_after = explicit_paddings[2 * index + 1];
504}
505
506// Return the string that specifies the data format for convnet operations.
507string GetConvnetDataFormatAttrString();

Callers 7

Conv2DShapeImplFunction · 0.85
operator()Method · 0.85
operator()Method · 0.85
ComputeConv2DDimensionFunction · 0.85
operator()Method · 0.85
operator()Method · 0.85
operator()Method · 0.85

Calls 2

GetTensorDimIndexFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected