sharpenb's picture
d297661303f6412449d23b572cbca1ebd7b46d58d4eea14b0f4c67c3db07b000
8c2488c verified
raw
history blame
167 Bytes
from torch import nn
FC_CLASS_REGISTRY = {'torch': nn.Linear}
try:
import transformer_engine.pytorch as te
FC_CLASS_REGISTRY['te'] = te.Linear
except:
pass