Module


MODULECLASStorch.nn.Module(args, kwargs*)[SOURCE]层、模型的父类Base class for all neural network modules.Your models should also subclass this class.Modules can also contain other Modules, allowing to nest them in a tree structure. You can assign the submodul...

Dataset&DataLoader


dataset需要实现def __getitem__(self, index) -> T_co: # 基于一个索引返回一个训练样本(x, y)构成的训练对 raise NotImplementedError("Subclasses of Dataset should implement __getitem__.") def __len__(self): # 将数据放进去,返回数据总大小 return len(self.img_labels) re...

TORCH.GATHER


torch.gather(input, dim, index, *, sparse_grad=False, out=None) → [Tensor]Gathers values along an axis specified by dim.Parametersinput (Tensor) – the source tensordim (int) – the axis along which to indexindex (LongTensor) – the indices of elements to...

自建中继使用RustDesk


服务端搭建中继服务器推荐使用linux来搭建中继服务器,且有公网ip使用宝塔面板# Xshell连接服务器…… cd /root mkdir rustdesk cd rustdesk wgethttps://github.com/rustdesk/rustdesk-server/releases/download/1.1.6/rustdesk-server-linux-x64.zip unzip rustdesk-server-linux-x64.zip ls 查看有无hbbr和hbbs两份文件hb...

召唤看板娘