Project1Mvampire's picture
download
raw
292 Bytes
import torch.nn as nn
import torch.nn.functional as F
from torch import Tensor
class SharedEmbedding(nn.Embedding):
def forward(self, input: Tensor, unembed: bool=False) -> Tensor:
if unembed:
return F.linear(input, self.weight)
return super().forward(input)

Xet Storage Details

Size:
292 Bytes
·
Xet hash:
1d3f7406f17be286fe574be1228667bee986c516c6e6a085b5152a8330939fa4

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