Open bknhatice opened 4 years ago
These codes do not work for libtorch 1.5 now. Many of them are deprecated or deleted from the framework. You'd better rewrite it following the instructions in the pytorch documentation.
Thank you, I tried for libtorch 1.3 again i got the same error. which version should i use?
@bknhatice According to the commit time I think libtorch 0.3 or 0.4 may be suitable for this code, I didn't try it though.
Thank you, I will try for libtorch 0.3 or 0.4.
Hi,
for(auto m: this->modules()){ if(m.value.name() == "torch::nn::Conv2dImpl"){
error: 'class std::shared_ptr' has no member named 'value'
I would be happy if you help. Best regards,