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

Method Save

tensorflow/core/kernels/data/iterator_ops.cc:93–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93Status IteratorResource::Save(SerializationContext* ctx,
94 IteratorStateWriter* writer) {
95 std::shared_ptr<State> captured_state;
96 {
97 tf_shared_lock l(mu_);
98 captured_state = iterator_state_;
99 }
100 if (captured_state->iterator) {
101 return captured_state->iterator->Save(ctx, writer);
102 }
103 return errors::FailedPrecondition(
104 "Save() failed because the iterator has not been initialized. Ensure "
105 "that you have run the initializer operation for this iterator before "
106 "saving it.");
107}
108
109Status IteratorResource::Restore(OpKernelContext* ctx,
110 IteratorStateReader* reader) {

Callers 15

CollectDataMethod · 0.45
TESTFunction · 0.45
PerfSaveFunction · 0.45
DumpEvMethod · 0.45
DumpEvMethod · 0.45
TEST_PFunction · 0.45
TEST_PFunction · 0.45
TEST_PFunction · 0.45
TEST_PFunction · 0.45
TEST_PFunction · 0.45
TEST_PFunction · 0.45
TEST_PFunction · 0.45

Calls 1

FailedPreconditionFunction · 0.85

Tested by 15

TESTFunction · 0.36
PerfSaveFunction · 0.36
TEST_PFunction · 0.36
TEST_PFunction · 0.36
TEST_PFunction · 0.36
TEST_PFunction · 0.36
TEST_PFunction · 0.36
TEST_PFunction · 0.36
TEST_PFunction · 0.36
TEST_PFunction · 0.36
TEST_PFunction · 0.36
TEST_PFunction · 0.36