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

Function CheckPortRange

tensorflow/core/grappler/mutable_graph_view.cc:316–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316Status CheckPortRange(int port, int min, int max, ErrorHandler handler) {
317 if (port < min || port > max) {
318 if (max < min) {
319 return handler("no available ports as node has no regular fanins");
320 }
321 return handler(
322 absl::Substitute("port must be in range [$0, $1]", min, max));
323 }
324 return Status::OK();
325}
326
327string SwapNodeNamesSwitchControlErrorMsg(absl::string_view node_name) {
328 return absl::Substitute(

Callers 4

AddRegularFaninByPortMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected