pytorch / examples

A set of examples around pytorch in Vision, Text, Reinforcement Learning, etc.
https://pytorch.org/examples
BSD 3-Clause "New" or "Revised" License
22.07k stars 9.49k forks source link

blas issue #668

Open shersoni610 opened 4 years ago

shersoni610 commented 4 years ago

With the nighly build libtorch. I get the following error while executing dcgan.

/home/csverma/Disk/Software/MLearn/Pytorch/Examples/cpp/dcgan/dcgan.cpp:47:23: error: ‘using Conv2dOptions = struct torch::nn::ConvOptions<2>’ {aka ‘struct torch::nn::ConvOptions<2>’} has no member named ‘with_bias’ .with_bias(false) ^~~~~ /home/csverma/Disk/Software/MLearn/Pytorch/Examples/cpp/dcgan/dcgan.cpp:55:23: error: ‘struct torch::nn::ConvOptions<2>’ has no member named ‘with_bias’ .with_bias(false) ^~~~~ /home/csverma/Disk/Software/MLearn/Pytorch/Examples/cpp/dcgan/dcgan.cpp:63:23: error: ‘struct torch::nn::ConvOptions<2>’ has no member named ‘with_bias’ .with_bias(false) ^~~~~ /home/csverma/Disk/Software/MLearn/Pytorch/Examples/cpp/dcgan/dcgan.cpp:71:23: error: ‘struct torch::nn::ConvOptions<2>’ has no member named ‘with_bias’ .with_bias(false) ^~~~~ /home/csverma/Disk/Software/MLearn/Pytorch/Examples/cpp/dcgan/dcgan.cpp:79:60: error: ‘struct torch::nn::ConvOptions<2>’ has no member named ‘with_bias’ nn::Conv2dOptions(1, 64, 4).stride(2).padding(1).with_bias(false)), ^~~~~ /home/csverma/Disk/Software/MLearn/Pytorch/Examples/cpp/dcgan/dcgan.cpp:83:62: error: ‘struct torch::nn::ConvOptions<2>’ has no member named ‘with_bias’ nn::Conv2dOptions(64, 128, 4).stride(2).padding(1).with_bias(false)), ^~~~~ /home/csverma/Disk/Software/MLearn/Pytorch/Examples/cpp/dcgan/dcgan.cpp:88:63: error: ‘struct torch::nn::ConvOptions<2>’ has no member named ‘with_bias’ nn::Conv2dOptions(128, 256, 4).stride(2).padding(1).with_bias(false)), ^~~~~ /home/csverma/Disk/Software/MLearn/Pytorch/Examples/cpp/dcgan/dcgan.cpp:93:61: error: ‘struct torch::nn::ConvOptions<2>’ has no member named ‘with_bias’ nn::Conv2dOptions(256, 1, 3).stride(1).padding(0).with_bias(false)), ^~~~~ CMakeFiles/dcgan.dir/build.make:62: recipe for target 'CMakeFiles/dcgan.dir/dcgan.cpp.o' failed make[2]: [CMakeFiles/dcgan.dir/dcgan.cpp.o] Error 1 CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/dcgan.dir/all' failed make[1]: [CMakeFiles/dcgan.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

soumith commented 4 years ago

cc: @yf225

yf225 commented 4 years ago

@shersoni610 Thanks a lot for the report! https://github.com/pytorch/examples/pull/669 should fix the issue. @soumith Would you like to review the PR to the examples repo? :D