EfficientNet-PyTorch
EfficientNet-PyTorch copied to clipboard
half / mixed precision?
Is it possible to use EfficientNet-PyTorch with half / mixed precision somehow? I know the mixed precision is supported by PyTorch for about a year, but what about pretrained weights?
In Pytorch, you can convert the pretrained weights into torch.half16 with the following way:
model.half()
but this is not the recommended way. Instead you have to use torch.cuda.amp.autocast while training.