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

Function InspectCheckpoint

tensorflow/contrib/util/inspect_checkpoint.cc:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace {
24
25int InspectCheckpoint(const string& in) {
26 tensorflow::checkpoint::TensorSliceReader reader(
27 in, tensorflow::checkpoint::OpenTableTensorSliceReader);
28 Status s = reader.status();
29 if (!s.ok()) {
30 fprintf(stderr, "Unable to open the checkpoint file\n");
31 return -1;
32 }
33 for (auto e : reader.Tensors()) {
34 fprintf(stdout, "%s %s\n", e.first.c_str(),
35 e.second->shape().DebugString().c_str());
36 }
37 return 0;
38}
39
40} // namespace
41} // namespace tensorflow

Callers 1

mainFunction · 0.85

Calls 6

TensorsMethod · 0.80
c_strMethod · 0.80
statusMethod · 0.45
okMethod · 0.45
DebugStringMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected