Subject of the feature
Currently, we are using AUTOTUNE in data preprocessing, e.g. https://github.com/DeepRegNet/DeepReg/blob/main/deepreg/dataset/loader/interface.py#L113
However, it may take too many CPUs and thus also memories and this is not ideal on clusters.
Therefore we need to be able to configure this num_parallel_calls.
The fix can be,
- when loading config, we will set
num_parallel_calls to the given value if provided, otherwise tf.data.experimental.AUTOTUNE.
- then we pass this
num_parallel_calls to all funcs using it.
FYI @YipengHu @zacbaum @fepegar
Subject of the feature
Currently, we are using AUTOTUNE in data preprocessing, e.g. https://github.com/DeepRegNet/DeepReg/blob/main/deepreg/dataset/loader/interface.py#L113
However, it may take too many CPUs and thus also memories and this is not ideal on clusters.
Therefore we need to be able to configure this
num_parallel_calls.The fix can be,
num_parallel_callsto the given value if provided, otherwisetf.data.experimental.AUTOTUNE.num_parallel_callsto all funcs using it.FYI @YipengHu @zacbaum @fepegar