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

Function ToInputIndex

tensorflow/core/kernels/mirror_pad_op.h:299–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297 }
298
299 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index
300 ToInputIndex(const Coords& coords) const {
301 Index input_index = 0;
302 for (int dim = 0; dim < Dims; ++dim) {
303 input_index += ToInputCoord(coords[dim], dim) * input_strides_[dim];
304 }
305 return input_index;
306 }
307
308 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index ToInputIndex(Index index) const {
309 Index input_index = 0;

Callers 2

coeffFunction · 0.85
packetFunction · 0.85

Calls 1

ToInputCoordFunction · 0.85

Tested by

no test coverage detected