Comments (4)
so, just change all tensors to be the same device, you can fix it.
fingerprints = torch.LongTensor(fingerprints).to(device)
adjacency = torch.FloatTensor(adjacency).to(device)
words = torch.LongTensor(words).to(device)
from dlkcat.
Thanks for getting back, where do I do this? And should I be replacing fingerprints
, device
etc to something specific to my computer and account?
from dlkcat.
In the function prediction_for_input.py
line 254-257
from dlkcat.
Cheers, that works now
from dlkcat.
Related Issues (20)
- Dear author, you know that you have done a famous and complex work. Then, I meet a question that proteome data NOT 404 HOT 1
- two substrates HOT 1
- error running example HOT 3
- Failed parsing SMILES HOT 3
- Dataset problem HOT 3
- Input a new sequence for measure Kcat using DLKcat HOT 1
- Reason for two kcat values in each PredcitedKcat343species file HOT 1
- Hyperparameter file for DLKcat HOT 3
- The dimension of the adjacency matrix is not consistent
- isssue about runing prediction_for_input.py HOT 4
- RMSE HOT 2
- result inconsistency HOT 1
- I can't find the file I'm looking for HOT 1
- RMSE and data HOT 7
- Unable to reproduce the results in Fig. 2a. HOT 2
- find the sequence HOT 3
- Can DLKcat parse the smiles including '.' ? HOT 2
- Loss calculation confusion HOT 2
- nomoudule name SOAPpy HOT 1
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 dlkcat.