BERTGradGraph / models.py
yifan0sun's picture
Update models.py
a42cb18 verified
raw
history blame contribute delete
155 Bytes
import torch
class TransformerVisualizer():
def __init__(self):
self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")