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

Method SetValue

tensorflow/compiler/tf2xla/xla_resource.cc:113–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113Status XlaResource::SetValue(const xla::XlaOp& value) {
114 if (type_ == DT_INVALID) {
115 return errors::InvalidArgument(
116 "Resource '", name_,
117 "' must be initialized with a valid type before use.");
118 }
119 value_ = value;
120 return Status::OK();
121}
122
123Status XlaResource::SetZeroValue(xla::XlaBuilder* builder) {
124 if (type_ == DT_INVALID) {

Callers 7

CompileFunctionalNodeMethod · 0.45
AssignVariableTensorFunction · 0.45
CompileMethod · 0.45
CompileMethod · 0.45
CompileMethod · 0.45
CompileMethod · 0.45
CompileMethod · 0.45

Calls 1

InvalidArgumentFunction · 0.85

Tested by

no test coverage detected