sharpenb's picture
6bfa63b591b641dbe9c0d415d1bd3cd52e99a403eadec000fcf8f80c4efd5c7f
85b445c 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