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

Method FromProto

tensorflow/core/framework/tensor.cc:959–961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957}
958
959bool Tensor::FromProto(const TensorProto& proto) {
960 return FromProto(get_default_cpu_allocator(), proto);
961}
962
963bool Tensor::FromProto(Allocator* a, const TensorProto& proto) {
964 CHECK_NOTNULL(a);

Callers 15

ConvertToHashImportOpMethod · 0.45
GetNodeTensorAttrFunction · 0.45
PrintStructureFunction · 0.45
SummarizeGraphFunction · 0.45
QuantizeWeightsFunction · 0.45
TestSetNodeTensorAttrMethod · 0.45
RoundWeightsFunction · 0.45
TestCopiesFunction · 0.45
TESTFunction · 0.45

Calls 9

IsValidFunction · 0.85
UnrefIfNonNullFunction · 0.85
IsEnabledFunction · 0.85
DecodeFunction · 0.50
dtypeMethod · 0.45
num_elementsMethod · 0.45
emptyMethod · 0.45
dataMethod · 0.45

Tested by 15

TestSetNodeTensorAttrMethod · 0.36
TestCopiesFunction · 0.36
TESTFunction · 0.36
CompareTensorValuesFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
GetAttrValueMethod · 0.36
TEST_FFunction · 0.36
ExpectTensorValuesMethod · 0.36
GetTensorProtoFunction · 0.36
ExpectNodeCloseMethod · 0.36