CS计算机代考程序代写 # encoder.py

# encoder.py
# COMP9444, CSE, UNSW

import torch

# REPLACE aust26 WITH YOUR OWN DATA
# TO REPRODUCE IMAGE SHOWN IN SPEC
aust26 = torch.Tensor(
[[0]])

star16 = torch.Tensor(
[[1,1,0,0,0,0,0,0],
[0,1,1,0,0,0,0,0],
[0,0,1,1,0,0,0,0],
[0,0,0,1,1,0,0,0],
[0,0,0,0,1,1,0,0],
[0,0,0,0,0,1,1,0],
[0,0,0,0,0,0,1,1],
[1,0,0,0,0,0,0,1],
[1,1,0,0,0,0,0,1],
[1,1,1,0,0,0,0,0],
[0,1,1,1,0,0,0,0],
[0,0,1,1,1,0,0,0],
[0,0,0,1,1,1,0,0],
[0,0,0,0,1,1,1,0],
[0,0,0,0,0,1,1,1],
[1,0,0,0,0,0,1,1]])