MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / scale_batch_size

Function scale_batch_size

monai/networks/utils.py:81–84  ·  view source on GitHub ↗
(input_shape: Sequence[int], scale_num: int)

Source from the content-addressed store, hash-verified

79 """
80
81 def scale_batch_size(input_shape: Sequence[int], scale_num: int):
82 scale_shape = [*input_shape]
83 scale_shape[0] = scale_num
84 return scale_shape
85
86 # Use the dynamic batchsize range to generate the min, opt and max model input shape
87 if dynamic_batchsize:

Callers 1

get_profile_shapesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…