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

Method SendScalarShape

tensorflow/core/kernels/file_slice_sendrecv_ops.cc:154–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154Status FileSliceSendOp::SendScalarShape(OpKernelContext* ctx,
155 const FrameAndIter& frame_iter) {
156 Rendezvous::Args args;
157 args.device_context = ctx->op_device_context();
158 args.alloc_attrs = AllocatorAttributes();
159 Rendezvous::ParsedKey parsed_key;
160
161 Tensor shape_t;
162 TF_RETURN_IF_ERROR(ctx->allocate_temp(DT_INT64, TensorShape({0}), &shape_t));
163 slice_sendrecv::GetSliceRendezvousKey(key_prefix_,
164 "_slice_transfer_shape", frame_iter, &parsed_key.buf_);
165 VLOG(2) << "FileSliceSend " << parsed_key.buf_;
166 TF_RETURN_IF_ERROR(Rendezvous::ParseKey(parsed_key.buf_, &parsed_key));
167
168 return ctx->rendezvous()->Send(parsed_key, args, shape_t,
169 ctx->is_input_dead());
170}
171
172Status FileSliceSendOp::SendElementBytes(OpKernelContext* ctx,
173 const FrameAndIter& frame_iter,

Callers

nothing calls this directly

Calls 8

AllocatorAttributesClass · 0.85
GetSliceRendezvousKeyFunction · 0.85
rendezvousMethod · 0.80
is_input_deadMethod · 0.80
TensorShapeClass · 0.50
op_device_contextMethod · 0.45
allocate_tempMethod · 0.45
SendMethod · 0.45

Tested by

no test coverage detected