We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
《联邦学习实战》
P38- 3.2.2 Tensor与Python数据结构的转换 代码:
a3 = torch.from_tensor(arr) 当修改为 a3 = troch.from_numpy(arr)
版次:2021年5月第1版 印次:2021年5月第1次印刷
The text was updated successfully, but these errors were encountered:
作者没有提供编写时 pytorch版本,所以除了这里,还有其他错误。 P38- 3.2.1 torch.normal(2,3) 在pytorch 1.8.1和1.9.0都是错误的
Sorry, something went wrong.
书本用的pytorch版本是1.4
pytorch版本会不断变化,很多API也会改变,尽量按官方的来吧,实体书会有滞后性
《联邦学习实战》 P38- 3.2.2 Tensor与Python数据结构的转换 代码: a3 = torch.from_tensor(arr) 当修改为 a3 = troch.from_numpy(arr) 版次:2021年5月第1版 印次:2021年5月第1次印刷
这个原稿用的都是from_numpy,可能是出版社编辑或者印刷错误,导致代码写的是from_tensor,正文内容写的是from_numpy,出版之后就已经向出版社反映了。谢谢
No branches or pull requests
《联邦学习实战》
P38- 3.2.2 Tensor与Python数据结构的转换
代码:
a3 = torch.from_tensor(arr)
当修改为
a3 = troch.from_numpy(arr)
版次:2021年5月第1版
印次:2021年5月第1次印刷
The text was updated successfully, but these errors were encountered: