MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / GetTensorBufferGrowthSize

Function GetTensorBufferGrowthSize

oneflow/core/common/tensor_buffer.cpp:33–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33size_t GetTensorBufferGrowthSize(size_t origin_size) {
34 static double factor =
35 ParseFloatFromEnv("ONEFLOW_TENSOR_BUFFER_GROWTH_FACTOR", kDefaultGrowthFactor);
36 return GetTensorBufferAlignedSize(origin_size, factor);
37}
38
39size_t GetTensorBufferShrinkSize(size_t origin_size) {
40 static double factor =

Callers 1

ReserveMethod · 0.85

Calls 2

ParseFloatFromEnvFunction · 0.85

Tested by

no test coverage detected