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

Method WriteProfile

tensorflow/core/profiler/internal/tfprof_stats.cc:347–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347void TFStats::WriteProfile(const string& filename) {
348 string content;
349 SerializeToString(&content);
350 Status s = WriteStringToFile(Env::Default(), filename, content);
351 if (!s.ok()) {
352 fprintf(stderr, "%s\n", s.ToString().c_str());
353 }
354}
355
356bool TFStats::Validate(const Options& opts) const {
357 if (opts.step >= 0 && steps_.find(opts.step) == steps_.end()) {

Callers 4

_write_profileMethod · 0.80
TestToFromProtoMethod · 0.80
WriteProfileFunction · 0.80
TestToFromProtoMethod · 0.80

Calls 6

SerializeToStringFunction · 0.85
WriteStringToFileFunction · 0.85
DefaultFunction · 0.85
c_strMethod · 0.80
okMethod · 0.45
ToStringMethod · 0.45

Tested by 2

TestToFromProtoMethod · 0.64
TestToFromProtoMethod · 0.64