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

Method WriteImage

tensorflow/core/summary/summary_db_writer.cc:953–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

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