- 博客(2)
- 收藏
- 关注
翻译 pytorch 0.4.0 python3.6简单命令行记录
>>> label=torch.tensor([[0,1,6,4],[3,3,0,2]])>>> pred=torch.randn(3,2,4)>>> pred_1=pred.permute(1,2,0)>>> mask=label<3>>> masktensor([[ 1,
2018-07-24 10:18:28
396
原创 python3.6 输入多行,输出多行
要求输入多行,如3 97 98 994 97 98 99 100输出多行,如98.0098.50代码:import sysresult=[]for line in sys.stdin: if line[0] is '\n': break score = line.split() score=list(map(int,score...
2018-07-20 10:36:10
13605
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人