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

Method CheckKeyTensorForRemove

tensorflow/core/framework/lookup_interface.cc:74–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74Status LookupInterface::CheckKeyTensorForRemove(const Tensor& keys) {
75 if (keys.dtype() != key_dtype()) {
76 return errors::InvalidArgument("Key must be type ", key_dtype(),
77 " but got ", keys.dtype());
78 }
79 return CheckKeyShape(keys.shape());
80}
81
82Status LookupInterface::CheckFindArguments(const Tensor& key,
83 const Tensor& default_value) {

Callers 1

ComputeMethod · 0.80

Calls 3

InvalidArgumentFunction · 0.85
dtypeMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected