sharpenb's picture
642669c10af619d213b9209de15227101a5692a7f43569f9574eef6396839498
27ec240 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