Spaces:
Running
on
Zero
Running
on
Zero
File size: 302 Bytes
a846205 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import torch
import torch.nn as nn
class Base(nn.Module):
def __init__(self, config):
super().__init__()
self.config = config
self.device = "cuda" if torch.cuda.is_available() else "cpu"
self.setup()
def setup(self):
raise NotImplementedError
|