Comments (3)
How did you changed the key in the dictionary?
from hw2vec.
try changing the line that says self.load_state_dict(torch.load(model_weight_path)) to self.load_state_dict(torch.load(model_weight_path, map_location=torch.device('cpu'))). Also, it is normal for the embedding values to be slightly different between runs.
from hw2vec.
How did you changed the key in the dictionary?
Add following code after line 105 of models.py
model['layers.0.graph_conv.lin.weight'] = model['layers.0.graph_conv.weight'].reshape(200, 37)
model['layers.1.graph_conv.lin.weight'] = model['layers.1.graph_conv.weight']
model['pool1.graph_pool.gnn.lin_rel.weight'] = model['pool1.graph_pool.gnn.lin_l.weight']
model['pool1.graph_pool.gnn.lin_rel.bias'] = model['pool1.graph_pool.gnn.lin_l.bias']
model['pool1.graph_pool.gnn.lin_root.weight'] = model['pool1.graph_pool.gnn.lin_r.weight']
del model['layers.0.graph_conv.weight']
del model['layers.1.graph_conv.weight']
del model['pool1.graph_pool.gnn.lin_l.weight']
del model['pool1.graph_pool.gnn.lin_l.bias']
del model['pool1.graph_pool.gnn.lin_r.weight']
from hw2vec.
Related Issues (20)
- reconstructing unit test framework
- Timing Profiling test for testing framework.
- ERROR: Could not find a version that satisfies the requirement hw2vec-contrib-python (from versions: none) ERROR: No matching distribution found for hw2vec-contrib-python
- Error while building hw2vec HOT 3
- Not able to install hw2vec HOT 1
- pygraphviz on MacOS 13.3.1
- PyTorch Geometric on MacOS
- Node-level task trainer? HOT 1
- Use_Case_1.py" in GPU mode HOT 2
- No able to split the dataset Using HW2GRAPH and getting nx_graphs as empty HOT 5
- Sharing the reproducible results on Mac M1 HOT 1
- why use both log_softmax and CrossEntropyLoss ?
- Merge PreprocessVerilog with HW2GRAPH class HOT 1
- .yaml parameters HOT 1
- Normalization HOT 1
- Structuring the repository HOT 1
- use_case_1 alignment.
- use_case_2 alignment.
- use-case-3 alignment
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 hw2vec.