Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of GPU in paysage #125

Open
Mastermind417 opened this issue Feb 28, 2020 · 0 comments
Open

Use of GPU in paysage #125

Mastermind417 opened this issue Feb 28, 2020 · 0 comments

Comments

@Mastermind417
Copy link

Hi,

I am trying to use the GPU option as in
http://physics.bu.edu/~pankajm/ML-Notebooks/HTML/NB17_CXVI_RBM_mnist.html
I have changed the config file appropriately as in the instructions.

However, with the config file changed to "pytorch" and "gpu" I get an unexpected error:
File "rbm-train.py", line 376, in
batch_reader = batch.in_memory_batch(data[phase], batch_size, train_fraction=0.95, transform=transform)
File "paysage/paysage/batch/batch.py", line 41, in in_memory_batch
return Batch({'train': in_memory.InMemoryTable(tensor_train, batch_size, transform),
File "paysage/paysage/batch/in_memory.py", line 51, in init
self.nrows, self.ncols = be.shape(self.tensor)
File "paysage/paysage/backends/pytorch_backend/matrix.py", line 136, in shape
return tuple(tensor.size())
TypeError: 'int' object is not callable

These are the PyTorch versions and CUDA I use.
torch 1.4.0
torchvision 0.5.0
CUDA 10.1

The error still preceeds when "pytorch","cpu" are used in the backends config file.
Is there something wrong with the code written for use with pytorch?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant