torch.nn 实现 模型的定义,网络层的定义,损失函数的定义。 import torch # N is batch size; D_in is input dimension; # H is hidden dimension; D_out is output dimension. N, D_in ...
分类:
其他好文 时间:
2020-07-03 15:53:09
阅读次数:
74
一、查看哪些端口被打开 netstat -anp二、关闭端口号:iptables -A INPUT -p tcp --drop 端口号-j DROP iptables -A OUTPUT -p tcp --dport 端口号-j DROP三、打开端口号:iptables -A INPUT -ptcp ...
分类:
系统相关 时间:
2020-07-03 15:44:33
阅读次数:
84
http://www.ruanyifeng.com/blog/2013/07/gpg.html gpg --list-keysgpg --armor --output pubkey.asc --export [用户ID]导出私钥形式如下:gpg --armor --output prikey.asc ...
分类:
其他好文 时间:
2020-07-03 15:27:55
阅读次数:
70
【整理总结】Visual Studio 扩展和更新 Add New File File Icons C# outline ClaudiaIDE Code alignment CodeMaid Indent Guides Inline Color Picker Markdown Editor VSCo ...
分类:
其他好文 时间:
2020-07-03 12:50:07
阅读次数:
86
Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two di ...
分类:
其他好文 时间:
2020-07-02 23:22:50
阅读次数:
99
效果: 代码: ************************************************************************ * Program Name : * Descriptions : * T-Code : * Updates Tables : * Inp ...
分类:
数据库 时间:
2020-07-02 21:51:27
阅读次数:
87
转自 https://www.cnblogs.com/lazycxy/p/11422216.html elk安装与搭建 Elasticsearch安装配置 ·下载elasticsearch.tar.gz包,解压压缩包。(此处为单机版es,集群请参考 https://www.cnblogs.com/l ...
分类:
其他好文 时间:
2020-07-02 21:50:29
阅读次数:
60
自定义打包日志输出,过滤不想看到的无关日志。 原理 [visual studio 2013 - How to have MSBuild quiet output but with error/warning summary - Stack Overflow] (https://stackoverfl ...
分类:
其他好文 时间:
2020-07-02 20:00:10
阅读次数:
59
记录下webpack-dev-server的用法. 首先,我们来看看基本的webpack.config.js的写法 module.exports = { entry: './src/js/index.js', output: { path: './dist/js', filename: 'bundl ...
分类:
Web程序 时间:
2020-07-02 16:20:47
阅读次数:
98
MD5信息摘要算法(Message Digest Algorithm) md5是一种密码散列函数,可以生成128位(16字节)的散列值,用于确保信息传输完整一致。 这里举例如何在16机器上实现md5算法: md5.h 1 #ifndef MD5_H 2 #define MD5_H 3 4 typed ...
分类:
编程语言 时间:
2020-07-02 13:39:17
阅读次数:
47