sharpenb's picture
b0a50a3f8cc901f6ecd22e384836a9d411ad00f39ff27c7cc3d0341bf7e70f54
ca8a03f 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