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

Method WriteAudio

tensorflow/core/summary/summary_db_writer.cc:964–973  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

962 }
963
964 Status WriteAudio(int64 global_step, Tensor t, const string& tag,
965 int max_outputs, float sample_rate) override {
966 uint64 now = env_->NowMicros();
967 std::unique_ptr<Event> e{new Event};
968 e->set_step(global_step);
969 e->set_wall_time(DoubleTime(now));
970 TF_RETURN_IF_ERROR(AddTensorAsAudioToSummary(
971 t, tag, max_outputs, sample_rate, e->mutable_summary()));
972 return MigrateEvent(std::move(e));
973 }
974
975 string DebugString() const override { return "SummaryDbWriter"; }
976

Callers 2

TEST_FFunction · 0.45
ComputeMethod · 0.45

Calls 4

DoubleTimeFunction · 0.85
set_stepMethod · 0.80
NowMicrosMethod · 0.45

Tested by 1

TEST_FFunction · 0.36