上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: //思路:1.判断链表中有环 -> 2.得到环中节点的数目 -> 3.找到环中的入口节点 public class Solution { public ListNode EntryNodeOfLoop(ListNode pHead) { if(pHead == null){ return null; 阅读全文
posted @ 2020-04-01 16:43 冰河入梦~ 阅读(476) 评论(0) 推荐(0) 编辑
摘要: //输入一个链表,按链表从尾到头的顺序返回一个ArrayList。 /** * public class ListNode { * int val; * ListNode next = null; * * ListNode(int val) { * this.val = val; * } * } * 阅读全文
posted @ 2020-04-01 15:23 冰河入梦~ 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 1.确定你自己的环境信息。 我的环境是:win8+cuda8.0+python3.6.5 各位一定要根据python版本和cuDa版本去官网查看所对应的.whl文件再下载! 2.去官网查看环境匹配的torch、torchversion版本信息,然后去镜像源下载对应的文件 (直接去官网下载会出现中断的 阅读全文
posted @ 2020-03-27 19:11 冰河入梦~ 阅读(1084) 评论(5) 推荐(0) 编辑
摘要: http://www.imooc.com/article/276150?block_id=tuijian_wz 阅读全文
posted @ 2020-03-19 18:30 冰河入梦~ 阅读(106) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_41683065/article/details/104627989#layers.py 阅读全文
posted @ 2020-03-15 01:11 冰河入梦~ 阅读(472) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/g11d111/article/details/90417308?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task 阅读全文
posted @ 2020-03-11 13:35 冰河入梦~ 阅读(305) 评论(0) 推荐(0) 编辑
摘要: # CUDA TEST import torch x = torch.Tensor([1.0]) xx = x.cuda() print(xx) # CUDNN TEST from torch.backends import cudnn print(cudnn.is_acceptable(xx))# 阅读全文
posted @ 2020-03-05 00:02 冰河入梦~ 阅读(3408) 评论(0) 推荐(0) 编辑
摘要: python中本地加载MNIST数据集 https://blog.csdn.net/AugustMe/article/details/90604473 阅读全文
posted @ 2020-03-01 21:09 冰河入梦~ 阅读(2486) 评论(0) 推荐(0) 编辑
摘要: import torch import torch.utils.data as Data import torch.nn.functional as F import matplotlib.pyplot as plt torch.manual_seed(1) # reproducible LR = 阅读全文
posted @ 2020-03-01 12:12 冰河入梦~ 阅读(628) 评论(0) 推荐(0) 编辑
摘要: 1 ''' 2 torch-批量训练数据 3 DataLoader:是 torch 给你用来包装你的数据的工具. 4 所以你要讲自己的 (numpy array 或其他) 数据形式装换成 Tensor, 然后再放进这个包装器中. 5 使用 DataLoader 有什么好处呢? 就是帮你有效地迭代数据 阅读全文
posted @ 2020-03-01 10:45 冰河入梦~ 阅读(314) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页