FS#73187 - [python-pytorch] Instance check of subclass of IterableDataset fails on python 3.10
Attached to Project:
Community Packages
Opened by DarcyHu (DarcyHu) - Wednesday, 29 December 2021, 12:43 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Wednesday, 16 February 2022, 13:07 GMT
Opened by DarcyHu (DarcyHu) - Wednesday, 29 December 2021, 12:43 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Wednesday, 16 February 2022, 13:07 GMT
|
Details
Description:
Instance check of subclass of IterableDataset fails on python 3.10, see also upstream issue https://github.com/pytorch/pytorch/issues/69911. It is said that this bug is fixed after https://github.com/pytorch/pytorch/commit/d90012689f5b99bbc289da598ad982f829687288 Additional info: * 1.10.1-1 Steps to reproduce: |
This task depends upon
Closed by Sven-Hendrik Haase (Svenstaro)
Wednesday, 16 February 2022, 13:07 GMT
Reason for closing: Fixed
Wednesday, 16 February 2022, 13:07 GMT
Reason for closing: Fixed
One could build it from the source with this PKGBUILD (https://github.com/archlinux/svntogit-community/tree/packages/python-pytorch/trunk/PKGBUILD) with some modifications:
1. update the source to use the latest commit
2. comment out some patches if it fails to build
3. update TORCH_CUDA_ARCH_LIST to your cuda arch
4. comment out the build and install step for python-pytorch if you need only python-pytorch-cuda
5. build it in a clean chroot using command: extra-x86_64-build
Will this patch to be applied?