07 2020 档案

摘要:1. torch.autograd.detect_anomaly() 转自点击 , import torch # 正向传播时:开启自动求导的异常侦测 torch.autograd.set_detect_anomaly(True) # 反向传播时:在求导时开启侦测 with torch.autogra 阅读全文
posted @ 2020-07-20 22:12 lypbendlf 阅读(3263) 评论(0) 推荐(0)
摘要:1. rsession-which-r https://docs.rstudio.com/ide/server-pro/r-sessions.html rsession-which-r=/usr/local/bin/R 更改R的位置 2.多版本R的安装 https://docs.rstudio.co 阅读全文
posted @ 2020-07-20 21:48 lypbendlf 阅读(4131) 评论(0) 推荐(0)
摘要:1.IO流 它们是输入输出流, https://stackoverflow.com/questions/3385201/confused-about-stdin-stdout-and-stderr 当程序需要输入和输出以及记录错误时,就可以使用上面的三个输出输出流,它们不用担心是否连接到了键盘或者是 阅读全文
posted @ 2020-07-19 13:58 lypbendlf 阅读(416) 评论(0) 推荐(0)
摘要:1.tqdm是什么? https://github.com/tqdm/tqdm 简单来说,就是可以显示进度条的,它能够迭代可迭代对象。 然后又测试它是否能用枚举: 感觉不行,打印不了进度条了。 2.例子 https://stackoverflow.com/questions/42212810/tqd 阅读全文
posted @ 2020-07-19 13:42 lypbendlf 阅读(1543) 评论(0) 推荐(0)
摘要:1.torch.nn.utils.clip_grad_norm_ https://pytorch.org/docs/master/generated/torch.nn.utils.clip_grad_norm_.html 根据梯度的范数值进行削减, https://stackoverflow.com 阅读全文
posted @ 2020-07-19 00:02 lypbendlf 阅读(987) 评论(0) 推荐(0)