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

Method IsValidOutputTensor

tensorflow/core/graph/graph.cc:754–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

752}
753
754Status Graph::IsValidOutputTensor(const Node* node, int idx) const {
755 TF_RETURN_IF_ERROR(IsValidNode(node));
756 if (idx >= node->num_outputs() || idx < 0) {
757 return errors::OutOfRange("Node '", node->name(), "' (type: '",
758 node->op_def().name(),
759 "', num of outputs: ", node->num_outputs(),
760 ") does not have ", "output ", idx);
761 }
762 return Status::OK();
763}
764
765Status Graph::IsValidInputTensor(const Node* node, int idx) const {
766 TF_RETURN_IF_ERROR(IsValidNode(node));

Callers 4

c_api_function.ccFile · 0.80
CreateCondFunction · 0.80
CreateBodyFunction · 0.80

Calls 3

nameMethod · 0.65
num_outputsMethod · 0.45
op_defMethod · 0.45

Tested by

no test coverage detected