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

Method PackOrConcatSize

tensorflow/core/kernels/tensor_array.h:302–307  ·  view source on GitHub ↗

Return the size that should be used by pack or concat op.

Source from the content-addressed store, hash-verified

300
301 // Return the size that should be used by pack or concat op.
302 Status PackOrConcatSize(int32* size) {
303 mutex_lock l(mu_);
304 TF_RETURN_IF_ERROR(LockedReturnIfClosed());
305 *size = is_grad_ ? marked_size_ : tensors_.size();
306 return Status::OK();
307 }
308
309 // Once a TensorArray is being used for gradient calculations, it
310 // should be marked as no longer resizeable.

Callers 2

ComputeMethod · 0.80
ComputeMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected