| 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 |