#http://www.cnblogs.com/bluescorpio/p/4303656.html •在遇到错误提示时,注意查看错误提示内容,同时注意查看type类型. 1.TypeError: decoding Unicode is not supported 在试图读取网页的时候遇到TypeError: decoding Unicode is not supported, 主要原因是返回的字符串已经是unicode类型了 待续.....…
https://docs.microsoft.com/en-us/dotnet/standard/base-types/character-encoding#Encodings Characters are abstract entities that can be represented in many different ways. A character encoding is a system that pairs each character in a supported charac…
# Copyright 2006 Joe Wreschnig## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License version 2 as# published by the Free Software Foundation.## $Id: _util.py 4218 2007-12-02 06:11…
参考https://github.com/chenyuntc/pytorch-book/tree/v1.0 希望大家直接到上面的网址去查看代码,下面是本人的笔记 Tensor Tensor可以是一个数(标量).一维数组(向量).二维数组(矩阵)或更高维的数组(高阶数据) Tensor和numpy的ndarrays类似,不同在于pytorch的tensor支持GPU加速 导包: from __future__ import print_function import torch as t 判断是否…