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

Method CheckFindArguments

tensorflow/core/framework/lookup_interface.cc:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82Status LookupInterface::CheckFindArguments(const Tensor& key,
83 const Tensor& default_value) {
84 TF_RETURN_IF_ERROR(CheckKeyAndValueTypes(key, default_value));
85 TF_RETURN_IF_ERROR(CheckKeyShape(key.shape()));
86 if (default_value.shape() != value_shape()) {
87 return errors::InvalidArgument(
88 "Expected shape ", value_shape().DebugString(),
89 " for default value, got ", default_value.shape().DebugString());
90 }
91 return Status::OK();
92}
93
94} // namespace lookup
95} // namespace tensorflow

Callers 1

ComputeMethod · 0.80

Calls 3

InvalidArgumentFunction · 0.85
shapeMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected