tahamajs's picture
download
raw
407 Bytes
import torch
from bitnet import BitLinearNew
# Create a random tensor of shape (16, 10)
x = torch.randn(16, 1000, 512)
# Create an instance of the BitLinearNew class with input size 10, output size 20, and 2 groups
layer = BitLinearNew(
512,
20,
)
# Perform a forward pass through the BitLinearNew layer with input x
output = layer(x)
# Print the output tensor
print(output)
print(output.shape)

Xet Storage Details

Size:
407 Bytes
·
Xet hash:
66b82a2a685cc7a619156e26aa95357eae52dfd2a8e4def7343bbb83c7063c24

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