摘要: 1: [注]:0:28:2其含义为(start:end:step)当step省略时默认为步长为1. 0:28(start:end)start和end都可以省略,省略表示无限制。 2: index_select(index1,index2)参数index1为一个标量:表示维度的索引,参数index2时 阅读全文
posted @ 2021-07-08 19:58 收购阿里巴巴 阅读(54) 评论(0) 推荐(0)
摘要: 1:基本数据类型 【注】pytorch中没有string类型。表示string类型需要用到编码表示:例如:one-hot编码,Eembedding编码 2:创建张量 【注】可以用isinstance(data,dataType)检验数据类型。 【注】在pytorch0.3及0.3之前没有标量的概念。 阅读全文
posted @ 2021-07-08 11:16 收购阿里巴巴 阅读(73) 评论(0) 推荐(0)