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

Method IsInitialized

tensorflow/core/framework/tensor.cc:686–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684}
685
686bool Tensor::IsInitialized() const {
687 return (buf_ != nullptr && buf_->data() != nullptr) ||
688 shape_.num_elements() == 0;
689}
690
691void Tensor::CheckType(DataType expected_dtype) const {
692 CHECK_EQ(dtype(), expected_dtype) << " "

Callers 15

TestCopiesFunction · 0.45
TESTFunction · 0.45
allocate_tempMethod · 0.45
allocate_tensorMethod · 0.45
AddMethod · 0.45
PrepareInputsMethod · 0.45
ProcessOutputsMethod · 0.45
TEST_FFunction · 0.45
DumpIterationStateMethod · 0.45
DumpPendingNodeStateFunction · 0.45
DumpActiveNodeStateFunction · 0.45
RecvAsyncMethod · 0.45

Calls 2

dataMethod · 0.45
num_elementsMethod · 0.45

Tested by 7

TestCopiesFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36