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

Method SetDim

tensorflow/lite/kernels/internal/types.h:194–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 return size_ > kMaxSmallSize ? dims_pointer_[i] : dims_[i];
193 }
194 inline void SetDim(int i, int32 val) {
195 TFLITE_DCHECK_GE(i, 0);
196 TFLITE_DCHECK_LT(i, size_);
197 if (size_ > kMaxSmallSize) {
198 dims_pointer_[i] = val;
199 } else {
200 dims_[i] = val;
201 }
202 }
203
204 inline int32* DimsData() {
205 return size_ > kMaxSmallSize ? dims_pointer_ : dims_;

Callers 1

RunTestPermutationFunction · 0.80

Calls

no outgoing calls

Tested by 1

RunTestPermutationFunction · 0.64