柚子96
柚子96
全部文章
分类
Java学习(6)
python(8)
pytorch(12)
shell脚本(1)
一些project(1)
剑指offer(80)
动态规划(10)
华为笔试题(6)
基于深度学习的行人再识别学习(7)
未归档(4)
机器学习(3)
配置(7)
归档
标签
去牛客网
登录
/
注册
柚子96的博客
全部文章
(共145篇)
shell中第一行#!/bin/bash的作用
shell中#!/bin/bash #!/bin/ksh 这些东西是干什么的,有用吗? #! 是一个约定的标记,它告诉系统这个脚本需要什么解释器来执行,即使用哪一种 Shell。 这些不是注释符,而是说明下面的脚本是在什么shell下面运行的, 并且以该shell环境来执行脚本,一个简单的例...
2020-10-01
0
721
pytorch 方法名后加下划线
任何可以改变tensor内容的操作都会在方法名后加一个下划线'_' 例如:x.copy_(y), x.t_(), 这俩都会改变x的值
2020-10-01
0
462
torch的tensor和Numpy的ndarrays
torch被称为神经网络中的numpy,tensor和ndarrays也是比较相似的。 Torch自称为神经网络界的Numpy,它能将torch产生的tensor放在GPU中加速运算,就想Numpy会把array放在CPU中加速运算。所以在神经网络中,用Torch的tensor形式更优。文章...
2020-10-01
0
602
PyTorch中linspace的详细用法
转自:https://blog.csdn.net/york1996/article/details/81671128 首先用有道词典查一下这个单词的含义:从中可以大概才出来这个函数的意思是平分一个向量的。 它是linear space的缩写,中文含义为线性等分向量,线性平分矢量,线性平分向量。 ...
2020-10-01
0
791
matplotlib.plot一些常用的函数记录
matplotlib.plot一些常用的函数记录 代码示例: import torch import torch.nn.functional as F from torch.autograd import Variable x = torch.linspace(-5,5,200) x = V...
2020-10-01
0
483
pycharm每次新建项目都会创建虚拟环境问题,导致很多库安装后无法导入
原文:https://blog.csdn.net/qq_33485434/article/details/82462407 版权声明:本文为博主原创文章,转载请附上博文链接! Try to run this command from the system terminal. Make su...
2020-10-01
0
926
pytorch中nn.linear
一般定义一个linear层的时候,写法为nn.linear(in_features,out_features) 具体形式为: y=wx+b weight=Parameter(torch.Tensor(out_features,in_features)) bias=Parameter(torch.Te...
2020-10-01
0
445
莫烦python 关系拟合 (回归)
import torch import torch.nn.functional as F #包含激励函数 import matplotlib.pyplot as plt #画图工具包 a = torch.linspace(-1, 1, 100) #linspace()函数从(-1,1)的区间均...
2020-10-01
0
365
torch.normal()
Returns a Tensor of random numbers drawn from separate normal distributions who’s mean and standard deviation are given. 这个是官网给出的解释,大意是返回一个张量,张量里面的随...
2020-10-01
0
455
网易2020招聘 编程题
小易给定了一个长度为n的数字序列,对于每一个1<=k<=n,小易希望能够求解出所有长度为k的连续子序列的最大值的最小值。 输入描述: 第一行数字n 接下来一行是一个长度为n的数字序列 1<=n<=100000,0<=ai<=10的9...
2020-10-01
0
371
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页