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
imgs=torch.stack(imgs,dim=0)について、invalid syntaxのエラーが表示されてしまいます。 そこまでのコードは本の内容と完全に同じになっています。
imgs=torch.stack(imgs,dim=0)
imgsがtensor化していないのかと思い、あれこれやってはみましたが無駄のようです。 colabの使用が原因かもしれません。
対策をご教授いただければと思います。 よろしくお願い致します。
The text was updated successfully, but these errors were encountered:
@Semayuki さま
こちら、深い調査が必要となるかもしれず、現在、そこに対応する余裕がございません。 しばらくお時間がかかります。 大変申し訳ございませんが、どうぞよろしくお願い致します。
他の読者の方で、同様の現象に陥っている方がいましたら、状況を教えていただけると幸いです。
どうぞよろしくお願い致します。
Sorry, something went wrong.
2021/11/25発行の第9刷 p.78のソースコード([2-3 DataLoaderの実装]中の od_collate_fn内)
od_collate_fn
imgs = torch.stack(imgs, dim=0)
については、問題なく動作しました。
版・刷と、実際に記載されていたソースコード全体の情報がないとなんとも言えないのですが、 今回のエラーが invalid syntax だったとすると、 データの誤りなどではなくて、Pythonの文法上の誤りだったのではないかと思います。
invalid syntax
ご参考まで。
No branches or pull requests
imgs=torch.stack(imgs,dim=0)
について、invalid syntaxのエラーが表示されてしまいます。そこまでのコードは本の内容と完全に同じになっています。
imgsがtensor化していないのかと思い、あれこれやってはみましたが無駄のようです。
colabの使用が原因かもしれません。
対策をご教授いただければと思います。
よろしくお願い致します。
The text was updated successfully, but these errors were encountered: