Spaces:
Running
on
T4
Running
on
T4
import torch | |
class TransformerVisualizer(): | |
def __init__(self): | |
self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu") | |