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

Method data

tensorflow/core/framework/tensor.cc:1293–1296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1291}
1292
1293void* Tensor::data() const {
1294 if (buf_ == nullptr) return nullptr; // Don't die for empty tensors
1295 return static_cast<void*>(buf_->data());
1296}
1297
1298bool Tensor::SharesBufferWith(const Tensor& b) const {
1299 return buf_ != nullptr && b.buf_ != nullptr &&

Callers 15

TestCopiesFunction · 0.45
TESTFunction · 0.45
BatchDeallocateMethod · 0.45
AllocateMethod · 0.45
BeginMethod · 0.45
BeginMethod · 0.45
BeginMethod · 0.45
IsInitializedMethod · 0.45
TensorMethod · 0.45
FromProtoMethod · 0.45
SummarizeValueMethod · 0.45

Calls

no outgoing calls

Tested by 15

TestCopiesFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
ExpectCloseFunction · 0.36
CreateAsProtoFieldFunction · 0.36
AsTensorFunction · 0.36
FillValuesFunction · 0.36
FillIotaFunction · 0.36
EqualMethod · 0.36
EqualMethod · 0.36
NearMethod · 0.36