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

Method NumElements

tensorflow/core/framework/model.cc:734–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

732}
733
734int64 Model::NumElements(const string& name) {
735 tf_shared_lock l(mu_);
736 auto node = gtl::FindOrNull(lookup_table_, name);
737 if (node) {
738 return (*node)->num_elements();
739 }
740 return 0;
741}
742
743void Model::RecordStart(const string& name, bool stop_output) {
744 tf_shared_lock l(mu_);

Callers 15

ComputeAsyncMethod · 0.45
SummarizeGraphFunction · 0.45
QuantizeWeightsFunction · 0.45
RoundWeightsFunction · 0.45
ComputeAsyncMethod · 0.45
RingAllreduceFunction · 0.45
ComputeAsyncMethod · 0.45
RingAllreduceFunction · 0.45
array_ops.ccFile · 0.45
ComputeMethod · 0.45
DoComputeMethod · 0.45
ComputeMethod · 0.45

Calls 2

FindOrNullFunction · 0.85
num_elementsMethod · 0.45

Tested by 15

GetTensorDataFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TYPED_TESTFunction · 0.36
CopyTensorElementsFunction · 0.36
TESTFunction · 0.36
TestCopiesFunction · 0.36
MkTensorFunction · 0.36
ExpectCloseFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36