| 951 | } |
| 952 | |
| 953 | Status WriteImage(int64 global_step, Tensor t, const string& tag, |
| 954 | int max_images, Tensor bad_color) override { |
| 955 | uint64 now = env_->NowMicros(); |
| 956 | std::unique_ptr<Event> e{new Event}; |
| 957 | e->set_step(global_step); |
| 958 | e->set_wall_time(DoubleTime(now)); |
| 959 | TF_RETURN_IF_ERROR(AddTensorAsImageToSummary(t, tag, max_images, bad_color, |
| 960 | e->mutable_summary())); |
| 961 | return MigrateEvent(std::move(e)); |
| 962 | } |
| 963 | |
| 964 | Status WriteAudio(int64 global_step, Tensor t, const string& tag, |
| 965 | int max_outputs, float sample_rate) override { |