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

Method max_array_size

tensorflow/compiler/tf2xla/xla_resource.h:146–146  ·  view source on GitHub ↗

'max_array_size' stores the expected size of the TensorArray or Stack. We need to store this since sometimes TensorArrays must be initialized lazily since we do not know the element shape at construction time. Used by both TensorArrays and Stacks.

Source from the content-addressed store, hash-verified

144 // lazily since we do not know the element shape at construction time.
145 // Used by both TensorArrays and Stacks.
146 int64 max_array_size() const { return max_array_size_; }
147 void set_max_array_size(int64 size) { max_array_size_ = size; }
148
149 bool tensor_array_multiple_writes_aggregate() const {

Callers 9

PrepareArgumentsFunction · 0.80
CompileMethod · 0.80
MaybeInitializeStackFunction · 0.80
GetTensorArrayShapeFunction · 0.80
CompileMethod · 0.80
CompileMethod · 0.80
CompileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected