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

Method GetElementComponent

tensorflow/core/kernels/padding_fifo_queue.cc:58–67  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

56
57/* static */
58Status PaddingFIFOQueue::GetElementComponent(
59 const PaddingFIFOQueue::Tuple& tuple, int component, OpKernelContext* ctx,
60 PersistentTensor* out_tensor) {
61 TensorShape element_shape(tuple[component].shape());
62 Tensor* element_access = nullptr;
63 TF_RETURN_IF_ERROR(ctx->allocate_persistent(
64 tuple[component].dtype(), element_shape, out_tensor, &element_access));
65 *element_access = tuple[component];
66 return Status::OK();
67}
68
69void PaddingFIFOQueue::TryDequeueMany(int num_elements, OpKernelContext* ctx,
70 bool allow_small_batch,

Callers

nothing calls this directly

Calls 3

shapeMethod · 0.45
allocate_persistentMethod · 0.45
dtypeMethod · 0.45

Tested by

no test coverage detected