Comments (1)
When the GCN hidden unit size is larger than the input size, TWP will throw the following error:
Traceback (most recent call last): File "/mnt/c/Users/Wei_Wei/PycharmProjects/CGLB/GCGL/train.py", line 141, in main AP, AF, acc_matrix,cls_matrix = main(args, valid=True) File "/mnt/c/Users/Wei_Wei/PycharmProjects/CGLB/GCGL/pipeline.py", line 529, in pipeline_multi_class train_func(train_loader, loss_criterion, tid, args) File "/mnt/c/Users/Wei_Wei/PycharmProjects/CGLB/./GCGL/Baselines/twp_model.py", line 188, in observe_clsIL eloss.backward() File "/home/wwei/miniconda3/envs/GNN-DL-py38/lib/python3.8/site-packages/torch/_tensor.py", line 488, in backward torch.autograd.backward( File "/home/wwei/miniconda3/envs/GNN-DL-py38/lib/python3.8/site-packages/torch/autograd/__init__.py", line 197, in backward Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn
because of the following code snippet:
CGLB/GCGL/Backbones/graphconv.py
Lines 155 to 188 in 793a346
When hidden unit size is bigger than the input size, the if statement is false, causing the else statement to be executed. However, in the else statement, for the first layer of GCN, the edge weight is computed without interacting with the trainable weight, making it unoptimizable, hence the error.
Thanks a lot for pointing out this bug. I have now invalidate the else statement temporarily to avoid this issue. I tested it and it should be able to run now.
from cglb.
Related Issues (20)
- Redundant training in testing phase? HOT 2
- Performance matrix visualization for GCGL is not working correctly HOT 2
- add more units to the output layer in LWF HOT 2
- Problem in utils.py HOT 2
- Reddit Dataset Batch Size Issue HOT 2
- GEM baseline in class-IL for GCGL has wrong indentation for optimizer step? HOT 2
- GCGL set_random seed is never called HOT 2
- Problem in function pipeline_task_IL_inter_edge_minibatch HOT 1
- Difference in joint train performance for aromaticity CL of CGLB and BeGin HOT 2
- GEM Memory_data HOT 1
- Question about hyper-parameter search in GCGL HOT 2
- SIDER-tIL Jointtrain Cannot be reproduced HOT 1
- Class Incremental for Node Classification EWC and MAS cannot be reproduced HOT 2
- Error occurred for jointtrain in GCGL HOT 3
- error report when implementing GEM on Tox21 datasets HOT 1
- ValueError from GEM on Tox21 HOT 1
- Is ```observe_class_IL_batch``` function considering inter-edge connections in ```pipeline_class_IL_no_inter_edge_minibatch```?
- Environment configuration
- non-continuous categories
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cglb.