sharpenb's picture
58f6a980e0b3deb26fe37954ebdbdff6d1306bbd78a9b16f983f8814fcd29a8f
4a1e990 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