Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
959
bool Tensor::FromProto(const TensorProto& proto) {
960
return FromProto(get_default_cpu_allocator(), proto);
961
}
962
963
bool Tensor::FromProto(Allocator* a, const TensorProto& proto) {
964
CHECK_NOTNULL(a);
Callers
15
ConvertToHashImportOp
Method · 0.45
GetNodeTensorAttr
Function · 0.45
PrintStructure
Function · 0.45
SummarizeGraph
Function · 0.45
QuantizeWeights
Function · 0.45
TestSetNodeTensorAttr
Method · 0.45
TestSetNodeTensorAttrWithTensor
Method · 0.45
RoundWeights
Function · 0.45
ConvertConstantsToImmutable
Method · 0.45
ExampleParserConfigurationProtoToFeatureVectors
Function · 0.45
TestCopies
Function · 0.45
TEST
Function · 0.45
Calls
9
get_default_cpu_allocator
Function · 0.85
IsValid
Function · 0.85
UnrefIfNonNull
Function · 0.85
IsEnabled
Function · 0.85
Decode
Function · 0.50
dtype
Method · 0.45
num_elements
Method · 0.45
empty
Method · 0.45
data
Method · 0.45
Tested by
15
TestSetNodeTensorAttr
Method · 0.36
TestSetNodeTensorAttrWithTensor
Method · 0.36
TestCopies
Function · 0.36
TEST
Function · 0.36
CompareTensorValues
Function · 0.36
TEST_F
Function · 0.36
TEST_F
Function · 0.36
GetAttrValue
Method · 0.36
TEST_F
Function · 0.36
ExpectTensorValues
Method · 0.36
GetTensorProto
Function · 0.36
ExpectNodeClose
Method · 0.36