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

Function Const

tensorflow/cc/ops/const_op.cc:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42} // namespace
43
44Output Const(const Scope& scope, const Input::Initializer& val) {
45 if (!val.status.ok()) {
46 scope.UpdateStatus(val.status);
47 return Output();
48 }
49 return ConstHelper(scope, val.tensor, val.tensor.dtype());
50}
51
52Output ConstFromProto(const Scope& scope, const TensorProto& proto) {
53 return ConstHelper(scope, proto, proto.dtype());

Callers 1

AsNodeOutFunction · 0.70

Calls 5

ConstHelperFunction · 0.70
OutputClass · 0.50
okMethod · 0.45
UpdateStatusMethod · 0.45
dtypeMethod · 0.45

Tested by

no test coverage detected