Buckets:

download
raw
443 Bytes
import torch.nn as nn
from typing import Dict, Any
class PromethiumModel(nn.Module):
"""
Base class for all Promethium models.
Enforces a standard forward interface and config storage.
"""
def __init__(self, config: Dict[str, Any]):
super().__init__()
self.config = config
def forward(self, x):
raise NotImplementedError
def get_config(self) -> Dict[str, Any]:
return self.config

Xet Storage Details

Size:
443 Bytes
·
Xet hash:
635743313be06a89649aba6408e7f1da26bdbdbee4b6b1561d41a30a6440ef1d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.