deepmd.pd.utils.auto_batch_size#Classes#AutoBatchSizeAuto batch size.Module Contents#class deepmd.pd.utils.auto_batch_size.AutoBatchSize(initial_batch_size: int = 1024, factor: float = 2.0, *, silent: bool = False)[source]#Bases: deepmd.utils.batch_size.AutoBatchSize Auto batch size. Parameters:initial_batch_sizeint, default: 1024initial batch size (number of total atoms) when DP_INFER_BATCH_SIZE is not setfactorfloat, default: 2.increased factor is_gpu_available() → bool[source]#Check if GPU is available. Returns:boolTrue if GPU is available is_oom_error(e: Exception) → bool[source]#Check if the exception is an OOM error. Parameters:eExceptionException