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

Function GetDim

tensorflow/stream_executor/dnn.h:77–79  ·  view source on GitHub ↗

Helper functions to make methods more readable.

Source from the content-addressed store, hash-verified

75
76// Helper functions to make methods more readable.
77inline int64 GetDim(absl::Span<const int64> data, DimIndex dim) {
78 return data.rbegin()[static_cast<int64>(dim)];
79}
80
81inline void SetDim(absl::Span<int64> data, DimIndex dim, int64 value) {
82 data.rbegin()[static_cast<int64>(dim)] = value;

Callers 15

heightMethod · 0.85
widthMethod · 0.85
spatial_dimMethod · 0.85
input_filter_heightMethod · 0.85
input_filter_widthMethod · 0.85
input_filter_dimMethod · 0.85
zero_padding_heightMethod · 0.85
zero_padding_widthMethod · 0.85

Calls 1

rbeginMethod · 0.80

Tested by

no test coverage detected