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

Method GetTensorBuffer

tensorflow/core/util/mkl_util.h:1287–1291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1285 }
1286
1287 inline void* GetTensorBuffer(const Tensor* tensor) const {
1288 CHECK_NOTNULL(tensor);
1289 return const_cast<void*>(
1290 static_cast<const void*>(tensor->flat<T>().data()));
1291 }
1292
1293 void SetIs3DData(bool bIs3D_) { bIs3D = bIs3D_; }
1294 bool GetIs3D() { return bIs3D; }

Callers 4

LOCKS_EXCLUDEDMethod · 0.80
ComputeMethod · 0.80
PrepareAndExecuteNetMethod · 0.80
LOCKS_EXCLUDEDMethod · 0.80

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected