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

Method AddCode

tensorflow/core/profiler/internal/tfprof_node.h:359–364  ·  view source on GitHub ↗

TODO(xpan): This could take a lot of memory.

Source from the content-addressed store, hash-verified

357
358 // TODO(xpan): This could take a lot of memory.
359 void AddCode(const CodeDef& code,
360 const std::map<int64, string>* id_to_string) {
361 if (!call_stack_) {
362 call_stack_.reset(new CallStack(code, id_to_string));
363 }
364 }
365
366 const string& name() const { return node_.name(); }
367 int64 id() const { return node_.id(); }

Callers 1

AddOpLogProtoMethod · 0.80

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected