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

Function ValidateTensorId

tensorflow/compiler/tf2xla/tf2xla_util.cc:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44namespace {
45
46Status ValidateTensorId(const tf2xla::TensorId& id) {
47 if (id.node_name().empty()) {
48 return errors::InvalidArgument("TensorId node_name must be non-empty");
49 }
50 if (id.output_index() < 0) {
51 return errors::InvalidArgument("TensorId output_index must be positive");
52 }
53 return Status::OK();
54}
55
56Status CheckNameDuplicates(const string& kind, const string& name,
57 std::set<string>* names) {

Callers 1

ValidateConfigFunction · 0.85

Calls 4

InvalidArgumentFunction · 0.85
emptyMethod · 0.45
node_nameMethod · 0.45
output_indexMethod · 0.45

Tested by

no test coverage detected