DeepFaceLab icon indicating copy to clipboard operation
DeepFaceLab copied to clipboard

A minor mistake in 'core/leras/nn.py', line 178: nn.current_DeviceConfig = DeviceConfig.BestGPU()

Open 6luke opened this issue 4 years ago • 0 comments

In 'core/leras/nn.py', line 176-179:

def getCurrentDeviceConfig():
    if nn.current_DeviceConfig is None:
        nn.current_DeviceConfig = DeviceConfig.BestGPU()
    return nn.current_DeviceConfig

The class name 'nn' are missed in the 3rd line, and it should be 'nn.current_DeviceConfig = nn.DeviceConfig.BestGPU()'. But it seems that nn.current_DeviceConfig is never None when this method are called, so this mistake never produces any error.

6luke avatar Jan 09 '22 18:01 6luke