badstu / cakt Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Traceback (most recent call last):
File "main.py", line 99, in
run_CAKT()
File "main.py", line 27, in run_CAKT
issave=False)
File "/home/D1/kt/KT/experiment/CAKT_experiment.py", line 124, in CAKT_main
optimizer)
File "/home/D1/kt/KT/run/run_cakt.py", line 61, in train_cakt
output, hidden_state, _ = model(batch_seq, batch_past_counts, batch_repeat_gaps).to(opt.device)
File "/home/D1/miniconda3/envs/CAKT/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/D1/kt/KT/model/CAKT.py", line 270, in forward
embed_output = self.embedding(x) # [batch_size, max_seq_len, 205] embed_dim=205
File "/home/D1/miniconda3/envs/CAKT/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/D1/miniconda3/envs/CAKT/lib/python3.7/site-packages/torch/nn/modules/sparse.py", line 160, in forward
self.norm_type, self.scale_grad_by_freq, self.sparse)
File "/home/D1/miniconda3/envs/CAKT/lib/python3.7/site-packages/torch/nn/functional.py", line 2044, in embedding
return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument index in method wrapper__index_select)
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.