虽然我已经安装了GPU版的pytorch,但是只能使用CPU的。 安装的pytorch版本pytorch1.5.1-py36-cu102-cudn70 执行: >>> import torch >>> import torchvision >>> torch.cuda.is_available() ...
分类:
其他好文 时间:
2020-07-18 13:33:18
阅读次数:
406
给定一张图,图中给出一些有向边,一些无向边。 要求给所有无向边赋予方向后能够使整张图无环。 已知给定的图中无自环,无重边 解题思路: 若给定的有向边已经成环,那么必然输出NO,否则都可以构造出解。 考虑原图的拓扑排序,根据两点的进队时间,对于某一无向边,只要使边上两点进队时间也满足拓扑序,就可以使得 ...
分类:
其他好文 时间:
2020-07-18 13:32:35
阅读次数:
66
只有csr没有crt,每次创建新的证书的时候都报错失效日期错误,只有请求证书信息没有生成证书信息
分类:
其他好文 时间:
2020-07-18 11:40:11
阅读次数:
104
#include<iostream> #include<algorithm> #include<cstdio> using namespace std; bool cmp(int a,int b){ return a>b; } void to_array(int n,int num []) { fo ...
分类:
其他好文 时间:
2020-07-18 11:39:12
阅读次数:
78
#include <stdio.h> int main() { int n=0; for (n=0;n<10;n++){ printf("%d",n); } return 0; } ...
分类:
其他好文 时间:
2020-07-18 11:36:49
阅读次数:
60
Inno Setup区段之Components篇 简述 场景:多组件可以自定义勾选安装的时候,通过Components+Types的形式来实现 Components Name 必需的 区分组件,/ \ 用来区分组件级别 Description 必需的 安装期间的描述 Types 组件所属类型 如果用 ...
分类:
其他好文 时间:
2020-07-18 11:35:49
阅读次数:
94
遇到一个需求,给PDF增加一个印章,使用iText7可以很方便地实现这个需求,通过Nuget添加iText7的引用。 1 string sourceFileName = txtFileName.Text; 2 string destFileName = Path.GetDirectoryName(s ...
分类:
其他好文 时间:
2020-07-18 11:35:28
阅读次数:
138
部分内容参考:https://www.cnblogs.com/corgi/p/5405453.html 本文章地址:https://www.cnblogs.com/LynnVon/p/13334523.html 当我按照文章做完之后,editor模式下完全没问题,Standalone模式下也没问题, ...
分类:
其他好文 时间:
2020-07-18 11:35:04
阅读次数:
109
#include<iostream> using namespace std; const int maxn=1000001; int prime[maxn],num=0; bool p[maxn]={0}; //找出素数 void findprime(int n){ for(int i=2;i<m ...
分类:
其他好文 时间:
2020-07-18 11:34:47
阅读次数:
77
链接:https://leetcode-cn.com/problems/binary-tree-inorder-traversal/ 代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNo ...
分类:
其他好文 时间:
2020-07-18 11:34:31
阅读次数:
66
tornado-vue 解决跨域问题 在tornado 中写一个BaseHandler类,其他类,继承这个BaseHandler类即可 # 解决tornado-vue 跨域问题, class BaseHandler(tornado.web.RequestHandler): # 重写该方法 def s ...
分类:
其他好文 时间:
2020-07-18 11:34:10
阅读次数:
84
Variable Ordering for Efficient SAT Search by Analyzing Constraint-Variable Dependencies Vijay Durairaj and Priyank KallaDepartment of Electrical and ...
分类:
其他好文 时间:
2020-07-18 11:33:24
阅读次数:
75
备注: 本文参考于廖雪峰老师的博客Git教程。依照其博客进行学习和记录,感谢其无私分享,也欢迎各位查看原文。 知识点 git tag <name>新建一个标签,默认表示的是HEAD,当前提交. git tag v0.9 commit_id在指定提交上创建标签 git tag -a <tagname> ...
分类:
其他好文 时间:
2020-07-18 11:33:09
阅读次数:
162
一家企业在进行流程管理的时候,轻流建议不要局限于流程管理的方法论,而是实践出真知,没有一家完全相同的企业,所以也同样没有任何一家企业有相同的业务流程。 公司级的流程架构设定分为两类,POS(Plan Operation Support,属于稳定性、周期性和计划性行业)和OES(Operation E ...
分类:
其他好文 时间:
2020-07-18 11:32:47
阅读次数:
119
/* 斐波那契数列:f(n)=f(n-1)+f(n-2);其中f(1)=f(2)=1;*/ #include <stdio.h> #include <stdlib.h> /* 斐波那契数列:f(n)=f(n-1)+f(n-2);其中f(1)=f(2)=1; */ int Fibonacci(int ...
分类:
其他好文 时间:
2020-07-18 11:31:31
阅读次数:
67
题解:hashset(没有达到进阶的要求) /** * Definition for singly-linked list. * class ListNode { * int val; * ListNode next; * ListNode(int x) { * val = x; * next = ...
分类:
其他好文 时间:
2020-07-18 11:31:09
阅读次数:
54
实验环境:linux-3.4.2 busybox-1.20.0 问题描述: 学习驱动开发时,使用rmmod卸载已经安装成功的驱动模块时出现了rmmod: chdir(/lib/modules): No such file or directory错误提示 解决方法: 报错之后第一反应怀疑是不是驱动模 ...
分类:
其他好文 时间:
2020-07-18 11:29:57
阅读次数:
95