jdnie / addernetcuda Goto Github PK
View Code? Open in Web Editor NEWCUDA实现'huawei-noah/AdderNet'的forward和backward
License: BSD 3-Clause "New" or "Revised" License
CUDA实现'huawei-noah/AdderNet'的forward和backward
License: BSD 3-Clause "New" or "Revised" License
Hello, I have a question. It seems that you set your code running on just one gpu, and how can I run via multi gpu?
Hi @jdnie
Your code is impressive. However, when I try to use the cuda and run "python setup.py install", there are a lot of error.
What is the reason? I follow your instruction to use pytorch 1.2.0 and torchvision 0.4.0.
used your training code, the accuracy is about 50%,but the paper's accuracy has achieved 90%,could you please tell me why?
I have download the whole files AdderNetCuda, and then I put it on cloud platform.
cd unoptimized
python setup.py install
python test.py
Question is :
The environment is :
NVIDIA GeForce RTX 3080, 1
The version of torch and torchvision are :
torch 1.10.0+cu111
torchvision 0.11.0+cu111
However, I cannot get the results of method using cuda. The program gives me
The log of install unoptimized is :
Installed /usr/lib/python3.8/site-packages/unoptimized_cuda-0.0.0-py3.8-linux-x86_64.egg
Processing dependencies for unoptimized-cuda==0.0.0
Finished processing dependencies for unoptimized-cuda==0.0.0
I followed the instructions in the readme file to run the code and getting the following error. Am I doing something wrong?
File "/content/utils.py", line 39, in accuracy
correct_k = correct[:k].view(-1).float().sum(0, keepdim=True)
RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.
I have not made any changes to the code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.