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

Method DumpEv

tensorflow/core/kernels/save_restore_v2_ops.cc:297–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295
296 template <typename TKey, typename TValue, typename TGlobalStep>
297 void DumpEv(
298 OpKernelContext* context,
299 EmbeddingVar<TKey, TValue>* variable,
300 const string& tensor_name, BundleWriter& writer) {
301 const Tensor& global_step = context->input(5);
302 TGlobalStep global_step_scalar = global_step.scalar<TGlobalStep>()();
303 core::ScopedUnref s(variable);
304 embedding::ShrinkArgs shrink_args;
305 shrink_args.global_step = global_step_scalar;
306 const Tensor& prefix = context->input(0);
307 const string& prefix_string = prefix.scalar<tstring>()();
308 OP_REQUIRES_OK(context, variable->Save(tensor_name,
309 prefix_string, &writer, shrink_args));
310 }
311
312 void Compute(OpKernelContext* context) override {
313 const Tensor& prefix = context->input(0);

Callers

nothing calls this directly

Calls 2

inputMethod · 0.45
SaveMethod · 0.45

Tested by

no test coverage detected