sharpenb's picture
8112655883f529ae7f61614d5cf4341f01d3dc2784e085121abd04a6231203f8
b5850a1 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