ICode9

精准搜索请尝试: 精确搜索
  • 用pip安装模块时报错ValueError: check_hostname requires server_hostname2021-10-12 15:34:25

    解决方法:搜索代理,然后关闭代理

  • Pytorch基础知识2021-10-10 10:59:29

    1. 张量 注意是张量,不是麻辣烫,哈哈哈。(冷笑话又多了) 张量(Tensor)可能是Pytorch中最重要的数据形式了,也是整个运算的基础。那什么是张量呢?个人理解就是向量和矩阵的推广。比如我们常见的图片,它是由RGB三通道表示的,那一张图片就可以由一个(width, height, channel)的三维字段来

  • 【Vue报错】关于 The template root requires exactly one element 报错的解决方案2021-09-09 12:58:18

    报错内容 Vue Error: The template root requires exactly one element. 详见下图: VSCode 中报错信息 Node中报错信息 报错原因 Vue只允许模板里存在一个根节点。 解决方案 在 <template> 中添加一个 <div>标签,之后所有的组件全部加在 <div>即可解决。 原文地址:http://yao

  • Debug - source release 1.8 requires target release 1.82021-08-16 10:34:34

    Error:java: javacTask: source release 1.8 requires target release 1.8     solution       参考:https://blog.51cto.com/xiaok007/1911122

  • ValueError: check_hostname requires server_hostname2021-08-13 02:31:20

    新搭建的python环境,在运行的时候报错:ValueError: check_hostname requires server_hostname 原因 每次使用 pip install 命令下载插件的时候,下载的都是最新的版本 下载requests插件,它会自动的将依赖的urllib3这个插件也安装 然后依赖的插件版本太高,就导致了这个报错的问题 解决

  • pip安装时遇到ValueError: check_hostname requires server_hostname错误2021-07-29 12:34:26

    pip安装下载好的torch的.whl文件时遇到ValueError: check_hostname requires server_hostname错误 看了这篇文章之后发现是vpn的问题,把vpn关了确实就安装好了 https://blog.csdn.net/u010037715/article/details/118277228

  • Error: The HTTP image filter module requires the GD library – Nginx / CentOS 7.32021-07-19 14:04:59

    1. ./configure: error: the HTTP image filter module requires the GD library. You can either do not enable the module or install the libraries.   yum install gd gd-devel  https://www.theshell.guru/error-the-http-image-filter-module-requires-the-gd-library-

  • Pytorch修改指定模块权重的方法,即 torch.Tensor.detach()和Tensor.requires_grad方法的用法2021-07-11 15:55:28

    0、前言 在学习pytorch的计算图和自动求导机制时,我们要想在心中建立一个“计算过程的图像”,需要深入了解其中的每个细节,这次主要说一下tensor的requires_grad参数。 无论如何定义计算过程、如何定义计算图,要谨记我们的核心目的是为了计算某些tensor的梯度。在pytorch的计算图中,

  • MySql安装问题This application requires Visual Studio 2013 Redistributable. Please install2021-07-09 10:05:46

    MySql安装问题总是报错,按照提示把需要的Visual Studio 2013 安装上,还是报Visual Studio 2013错误,估计是Visual Studio的版本问题。 在网上找了vcredist_x64 重新安装,就可以正确安装了。 vcredist免费下载地址:链接:http://pan.baidu.com/s/1geV3ROn  密码:rjlt Action 11:08:2

  • PyTorch官方Tutorials Autograd2021-06-30 20:30:09

    PyTorch官方Tutorials 跟着PyTorch官方Tutorials码的,便于理解自己稍有改动代码并添加注释,IDE用的jupyter notebook 链接: Autograd AUTOMATIC DIFFERENTIATION WITH TORCH.AUTOGRAD 用torch.autograd自动微分 When training neural networks, the most frequently used alg

  • ValueError: check_hostname requires server_hostname的解决办法记录2021-06-27 18:02:28

    在用pip安装scikit-image库时报错:ValueError: check_hostname requires server_hostname 报错ValueError: check_hostname requires server_hostname通常是因为版本冲突等原因,查遍网上众多大佬总结的经验后,最终发现是由网络代理导致的问题,即我们通常说的vpn问题。 关掉VPN后问

  • difference between a Tensor and a Variable2021-06-12 12:30:04

    文字版说明: Variable在 Pytorch0.4.0之后以及被tensor(requires_grad=True)所取代了. The Variable API has been deprecated in Pytorch0.4.0: Variables are no longer necessary to use autograd with tensors. Autograd automatically supports Tensors with requires_gra

  • 开Anaconda报错MainError check_hostname requires server_hostname2021-05-30 10:31:18

    问题描述 WIN10系统打开Anaconda报错Main Error check_hostname requires server_hostname 因为我在安装jupyter notebook感觉速度慢、打开了代理服务器 只需要关闭代理即可 如下图设置即可正常打开

  • Pytorch学习-自动求梯度2021-05-23 14:35:21

    2.3 自动求梯度 对函数计算梯度(gradient),Pytoch提供的autograd包能够根据输入和前向传播过程自动构建计算图,并执行反向传播。 2.3.1 概念 Tensor是autograd包的核心类 如果将其属性.requires_grad设置为True,它将开始追踪在其上的所有操作(这样就可以利用链式法则进行梯度传播)。 完成

  • python pip 依赖冲突定位2021-05-21 17:29:18

    今天pip安装一直遇到Jinja2冲突 可以使用pipdeptree定位冲突原因 说明文档 https://pypi.org/project/pipdeptree/ pipdeptree -r -p Jinja2  Warning!!! Possibly conflicting dependencies found: * Flask==2.0.0 - Jinja2 [required: >=3.0, installed: 2.11.3] * networkx

  • 安装MySQL及MySQL Workbench,以及解决Mysql workbench requires the visual C++ 2019 redistributable package的问题2021-05-20 15:01:37

    Windows 安装MySQL及MySQL Workbench 1. 先下载MySQL社区版,网址:https://dev.mysql.com/downloads/windows/installer/8.0.html 安装过程一路Next就可以,最后需要设置一个密码,这个密码每次打开MySQL的时候都需要 安装好后在开始菜单搜索MySQL,点击Command Line Client就可以进入MyS

  • CentOS 7.9上 yum 安装出现 requires libstdc++.so.6问题的解决方法2021-05-18 09:30:00

    CentOS 7.9上 yum 安装出现 requires libstdc++.so.6问题的解决方法 CentOs上安装Ice执行命令sudo yum install ice-all-runtime ice-all-devel出现如下问题: --> 解决依赖关系完成 错误:软件包:libicestorm3.7-3.7.5-1.amzn2.x86_64 (zeroc-ice3.7) 需要:libstdc++.so.6(

  • pytorch中.data()与.item()2021-05-15 12:04:26

    1..data() 将变量(Variable)变为tensor,将requires_grad设置为Flase a = torch.tensor([1.0], requires_grad=True) b = a.data print(b, b.requires_grad) ## 输出为: tensor([1.]) False 2.`.item() a = torch.tensor([1.0], requires_grad=True) c = a.item() print(c, type(

  • jmeter生成报告异常 :Report generation requires csv output format2021-05-04 14:35:42

    jmeter生成报告异常 :Report generation requires csv output format 1、生成jmeter报告后,显示 Error in NonGUIDriver java.lang.IllegalArgumentException: Report generation requires csv output format, check 'jmeter.save.saveservice.output_format' property An error o

  • Mac 安装 telepresence Error: sshfs has been disabled because it requires FUSE!2021-04-20 10:05:07

    按照 官方文档按照 brew cask install osxfuse brew install datawire/blackbird/telepresence 会在第二部出错 Error: sshfs has been disabled because it requires FUSE! 解决方案 在  https://osxfuse.github.io/2020/10/05/OSXFUSE-3.11.2.html 下载并安装 Release of

  • PyTorch 自动微分示例2021-04-16 06:32:42

    PyTorch 自动微分示例 autograd 包是 PyTorch 中所有神经网络的核心。首先简要地介绍,然后训练第一个神经网络。autograd 软件包为 Tensors 上的所有算子提供自动微分。这是一个由运行定义的框架,以代码运行方式定义后向传播,并且每次迭代都可以不同。从 tensor 和 gradients 来举一

  • torch.normal()2021-04-08 11:05:14

    torch.normal(A, B ,size(C, D), requires_grad=True) A表示均值,B表示标准差 ,C代表生成的数据行数,D表示列数,requires_grad=True表示对导数开始记录,可以忽略。 1 import torch 2 w = torch.normal(1, 0.02, size=(3, 1), requires_grad=True) 3 print(w) 得到的结果为: tensor

  • <从零开始pytorch>:01-torch的基本使用方法和线性回归模型2021-04-04 14:58:41

    记录pytorch的学习过程 – 备注多,方便查阅 torch的基本使用方法实现一个线性回归模型并测试 import torch torch.__version__ '1.8.0+cpu' 1.torch基本的使用方法` 1.1创建一个矩阵0矩阵 x = torch.empty(5,3) x tensor([[0., 0., 0.], [0., 0., 0.], [0

  • Dive-into-DL-Pytorch第二章——梯度 读书笔记2021-03-18 16:29:38

    一、写在前面 本文是《Dive-into-Deep-Learning》一书中文Pytorch版本的第一章,梯度。到目前为止的内容较为轻松,主要是对pytorch的一些基本操作和概念的熟悉过程。建议可以参阅《Pytorch官方文档》辅助学习。 二、自动求梯度 在深度学习中,我们经常需要对函数求梯度(gradient)。P

  • check_hostname requires server_hostname报错2021-03-16 19:33:30

    问题截图 问题原因 urllib3的1.26.4版本有个bug https://github.com/urllib3/urllib3/issues/517 解决办法 urllib3降低版本:urllib3==1.25.7

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有