static */
| 56 | |
| 57 | /* static */ |
| 58 | Status 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 | |
| 69 | void PaddingFIFOQueue::TryDequeueMany(int num_elements, OpKernelContext* ctx, |
| 70 | bool allow_small_batch, |
nothing calls this directly
no test coverage detected