Git Product home page Git Product logo

Comments (7)

cypans avatar cypans commented on June 20, 2024 1

image
graphwavenet.py中的3个nn.conv1d改成2d 就可以了

from step.

zezhishao avatar zezhishao commented on June 20, 2024

这个是torchc版本的问题,推荐使用1.10.0或者1.9.1,这俩我都测试过。更高版本的torch似乎不适配某些算子,就会导致出现这个问题。

from step.

1154761334 avatar 1154761334 commented on June 20, 2024

Uploading image.png…
行了运行了一下程序:
(STEP) PS D:\python-venv\STEP> conda install pytorch==1.10.0 torchvision==0.11.0 torchaudio==0.10.0 cudatoolkit=11.3 -c conda-forge

pip install -r requirements.txt

from step.

1154761334 avatar 1154761334 commented on June 20, 2024

)
2022-12-07 15:07:14,588 - easytorch-training - INFO - Set lr_scheduler: <torch.optim.lr_scheduler.MultiStepLR object at 0x00000298A3100970>
2022-12-07 15:07:14,594 - easytorch-training - INFO - Initializing validation.
2022-12-07 15:07:14,594 - easytorch-training - INFO - Building val data loader.
val len: 3425
test len: 6850
2022-12-07 15:07:14,770 - easytorch-training - INFO - Epoch 1 / 100
31%|████████████████████████████████████████████████████████████████▌ | 935/2997 [06:52<14:51, 2.31it/s]

from step.

zezhishao avatar zezhishao commented on June 20, 2024

似乎已经顺利运行。

from step.

wanjunhong0 avatar wanjunhong0 commented on June 20, 2024

After torch 1.10, the kernel size of torch.nn.conv1d is restricted to 1d, which used to could take tuple. But intuitively, when the kernel is (1,1) 2D, it should be conv2d not conv1d, and pytorch changed that after 1.10.

The fix will be changing
nn.Conv1d(in_channels=dilation_channels, out_channels=skip_channels, kernel_size=(1, 1))
to
nn.Conv2d(in_channels=dilation_channels, out_channels=skip_channels, kernel_size=(1, 1))

from step.

Polarstar671 avatar Polarstar671 commented on June 20, 2024

请问除了降版本没有其他方法了吗

from step.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.