sharpenb's picture
2328f3216c115fc82ab32763645b2bed34c882a1fc288a6a7939efbe5a94ade0
663114b verified
raw
history blame
No virus
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