一、建立神经网络:Net(nn.Module) 1、创建层:__init__ 2、创建层关系:forward 二、创建神经网络:net = Net(1, 2, 1) 三、创建优化器:torch.optim.SGD(net.parameters(), lr=0.2) 四、创建损失函数:torch.nn ...
分类:
其他好文 时间:
2020-01-26 14:31:45
阅读次数:
85
[TOC] 背景介绍 在书籍《Microsoft SQL Server 2008 MDX Step by Step》中使用书籍附带资源时,由于SQL Server的版本问题导致附带资源文件夹 下的 文件在最新版本(使用时为SQL Server 2017)显示损坏。如下图示错误: 解决方法 将 文件拷 ...
分类:
数据库 时间:
2020-01-25 22:14:26
阅读次数:
120
PYTHON range()函数 range(start,stop[,step]) 计数从start开始(默认为0),到stop结束(不包括stop),step为步长,默认为1 example: range(9):[0,1,2,3,4,5,6,7,8] range(1,11):[1,2,3,4,5, ...
分类:
编程语言 时间:
2020-01-24 18:41:50
阅读次数:
98
前面在mnist中使用了三个非线性层来增加模型复杂度,并通过最小化损失函数来更新参数,下面实用最底层的方式即张量进行前向传播(暂不采用层的概念)。 主要注意点如下: · 进行梯度运算时,tensorflow只对tf.Variable类型的变量进行记录,而不对tf.Tensor或者其他类型的变量记录 ...
分类:
其他好文 时间:
2020-01-22 20:05:16
阅读次数:
121
A Fusion based enhancing method for weakly illuminated images [toc] approach $Step$ $1$ illumination estimation Derived from retinex theory, an input ...
分类:
其他好文 时间:
2020-01-22 11:01:21
阅读次数:
80
{ 拼接字符串 使用“+”可以对多个字符串进行拼接 语法格式: str1 + str2 ? 1 2 3 4 >>> str1 = "aaa" >>> str2 = "bbb" >>> print(str1 + str2) aaabbb 需要注意的是字符串不允许直接与其他类型进行拼接,例如 ? 1 2 ...
分类:
编程语言 时间:
2020-01-22 01:12:44
阅读次数:
112
相当于for( int i ; i <= 10 ;i ++):begin,end,var,step,属性 遍历集合:items:相当于是list,var是str 》for(string str: list){} ...
分类:
Web程序 时间:
2020-01-21 19:40:48
阅读次数:
79
1. 替换某个字段中的部分内容 SET @oldlink1 = 'http://192.168.100.66'; SET @newlink1 = 'www.baidu.com'; UPDATE Test1 SET Content = ( REPLACE ( Content ,@oldlink1 ,@ ...
分类:
数据库 时间:
2020-01-21 18:34:00
阅读次数:
90
You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl ...
分类:
其他好文 时间:
2020-01-21 16:15:13
阅读次数:
70
Employee.java public class Employee { private Integer id; private String lastName; private String gender; private String email; Department dept; } Dep ...
分类:
其他好文 时间:
2020-01-20 20:38:37
阅读次数:
76