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

Method OpCompatibilityLib

tensorflow/core/ops/compat/op_compatibility_lib.cc:101–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101OpCompatibilityLib::OpCompatibilityLib(const string& ops_prefix,
102 const string& history_version,
103 const std::set<string>* stable_ops)
104 : ops_file_(io::JoinPath(ops_prefix, "ops.pbtxt")),
105 op_history_file_(OpsHistoryFile(ops_prefix, history_version)),
106 op_history_directory_(OpsHistoryDirectory(ops_prefix, history_version)),
107 stable_ops_(stable_ops) {
108 // Get the sorted list of all registered OpDefs.
109 printf("Getting all registered ops...\n");
110 OpRegistry::Global()->Export(false, &op_list_);
111}
112
113Status OpCompatibilityLib::ValidateCompatible(Env* env, int* changed_ops,
114 int* added_ops,

Callers

nothing calls this directly

Calls 4

OpsHistoryFileFunction · 0.85
OpsHistoryDirectoryFunction · 0.85
ExportMethod · 0.80
JoinPathFunction · 0.50

Tested by

no test coverage detected