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

Function GetTensorInnerWidthDimIndex

tensorflow/core/util/tensor_format.h:216–219  ·  view source on GitHub ↗

Returns the index of the inner width dimension.

Source from the content-addressed store, hash-verified

214
215// Returns the index of the inner width dimension.
216inline int GetTensorInnerWidthDimIndex(int num_dims, TensorFormat format) {
217 DCHECK_EQ(format, FORMAT_NHWC_VECT_W);
218 return num_dims - 1;
219}
220
221// Returns the dimension index of the specified 'spatial_dim' within an
222// activation tensor. If format is NHWC_VECT_W and spatial_dim is 1, returns

Callers 2

MakeShapeFromFormatFunction · 0.85
ShapeFromFormatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected