Re-enable mem-efficient/jit activations after torchscript tests

This commit is contained in:
Ross Wightman 2020-02-10 11:59:36 -08:00
parent f902bcd54c
commit 2a7d256fd5

View File

@ -12,7 +12,7 @@ from torch import nn as nn
from torch.nn import functional as F
_USE_MEM_EFFICIENT_ISH = False
_USE_MEM_EFFICIENT_ISH = True
if _USE_MEM_EFFICIENT_ISH:
# This version reduces memory overhead of Swish during training by
# recomputing torch.sigmoid(x) in backward instead of saving it.