摘要:
1.torch.utils.data.random_split() pytorch有多种方法划分,但这个是最简单的。 转自:https://www.cnblogs.com/marsggbo/p/10496696.html train_size = int(0.8 * len(full_dataset 阅读全文
posted @ 2021-04-05 04:13
lypbendlf
阅读(4677)
评论(0)
推荐(0)
摘要:
1.nohup和&的使用 https://www.cnblogs.com/jinxiao-pu/p/9131057.html nohup command > myout.file 2>&1 & 在上面的例子中,0 – stdin (standard input),1 – stdout (standa 阅读全文
posted @ 2021-04-05 02:38
lypbendlf
阅读(87)
评论(0)
推荐(0)
摘要:
转自:https://blog.csdn.net/liweibin1994/article/details/77374854 1.可迭代对象 当一个类实现了__iter__()和__next__()之后,它就是一个可迭代对象, class test(): def __init__(self,data 阅读全文
posted @ 2021-04-05 00:17
lypbendlf
阅读(74)
评论(0)
推荐(0)
浙公网安备 33010602011771号