sharpenb's picture
12f7cda603d2d60cc34959145e1ff2e58e8b044be3925bf8be4cd6b5e3d1a887
6cbacb6 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