sharpenb's picture
ef3db1afaaa550d55129cf82f22c217f212673ccb394ead070121bf74de5efb7
c51cf91 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