if __name__ == '__main__':
batch_size = 2
encoder_out_dim = 256
x = torch.randn(1, 3, 640, 640).cuda()
x = (x - x.min()) / (x.max() - x.min())
model = 'Your model'('Your Parm').cuda()
print(model)
out = model(x)
print('out shape:', out.shape)
测试一个构建神经网络是否可以跑通
最新推荐文章于 2025-12-06 16:28:30 发布
2937

被折叠的 条评论
为什么被折叠?



