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

Function CheckFlags

tensorflow/compiler/xla/tools/interactive_graphviz.cc:638–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638void CheckFlags(const Options& opts) {
639 int nonempty_flags_amount = 0;
640 if (!opts.hlo_proto.empty()) {
641 ++nonempty_flags_amount;
642 }
643 if (!opts.hlo_snapshot.empty()) {
644 ++nonempty_flags_amount;
645 }
646 if (!opts.hlo_text.empty()) {
647 ++nonempty_flags_amount;
648 }
649 if (nonempty_flags_amount == 1) {
650 return;
651 }
652 LOG(FATAL) << "Can only specify one and only one of '--hlo_proto', "
653 "'--hlo_snapshot', '--hlo_text' flags.";
654}
655
656void RealMain(const Options& opts) {
657 if (!isatty(fileno(stdin))) {

Callers 1

RealMainFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected