摘要: #导入必要的包 from __future__ import print_function import torch import torch.nn as nn from torch.autograd import Variable import torch.optim as optim from 阅读全文
posted @ 2020-05-16 10:32 Knight66666 阅读(415) 评论(0) 推荐(0)
摘要: # 导入所需要的包,请保证torchvision已经在你的环境中安装好 import torch import torch.nn as nn from torch.autograd import Variable import torch.optim as optim import torch.nn 阅读全文
posted @ 2020-05-15 08:04 Knight66666 阅读(1112) 评论(2) 推荐(0)
摘要: ubuntu: 安装memcached: sudo apt-get install memcached 启动服务: service memcached start 查看状态: ps aux|grep memcached win10: memcached官网下载 客户端: memcached.exe 阅读全文
posted @ 2020-05-11 10:18 Knight66666 阅读(132) 评论(0) 推荐(0)
摘要: public class ListNode { int val; ListNode next; ListNode(int x){ val = x; } public void setNext(ListNode next) { this.next = next; } } public class cl 阅读全文
posted @ 2020-04-24 09:21 Knight66666 阅读(192) 评论(0) 推荐(0)
摘要: 二叉查找树(Binary Search Tree),也称为二叉搜索树、有序二叉树或排序二叉树,是指一棵空树或者具有下列性质的二叉树: 若任意节点的左子树不空,则左子树上所有节点的值均小于它的根节点的值; 若任意节点的右子树不空,则右子树上所有节点的值均大于它的根节点的值; 任意节点的左、右子树也分别 阅读全文
posted @ 2020-04-23 18:10 Knight66666 阅读(573) 评论(0) 推荐(0)
摘要: 腾讯ubunntu16.04: 安装docker: #ubuntu sudo apt-get install -y docker.io #centos7 # 通过yum源安装docker sudo yum -y install docker # 启动docker sudo systemctl sta 阅读全文
posted @ 2020-04-19 15:41 Knight66666 阅读(556) 评论(0) 推荐(0)
摘要: 1 #导入需要的模块 2 import torch 3 import torch.nn as nn 4 import torch.optim as optim 5 import torch.nn.functional as F 6 import torch.backends.cudnn as cud 阅读全文
posted @ 2020-04-12 11:51 Knight66666 阅读(628) 评论(0) 推荐(0)
摘要: git添加远程库的时候有可能出现如下的错误, 怎么解决? 只要两步: 1、先删除 $ git remote rm origin 2、再次执行添加就可以了。 #强制 git push -f origin master #空 $ git push -u origin master 1、安装git git 阅读全文
posted @ 2020-04-11 09:28 Knight66666 阅读(133) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-04-10 16:16 Knight66666 阅读(587) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python# -*- encoding: utf-8 -*-# Created on 2020-04-07 08:14:57# Project: tripadvisor from pyspider.libs.base_handler import * import p 阅读全文
posted @ 2020-04-08 13:50 Knight66666 阅读(178) 评论(0) 推荐(0)