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

SyntaxError #37

Closed
bitnom opened this issue Jan 11, 2019 · 1 comment
Closed

SyntaxError #37

bitnom opened this issue Jan 11, 2019 · 1 comment

Comments

@bitnom
Copy link

bitnom commented Jan 11, 2019

!pip install dnc
from dnc import DNC

Traceback (most recent call last):

File "/usr/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3267, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)

File "", line 1, in
from dnc import DNC

File "/usr/lib/python3.7/site-packages/dnc/init.py", line 4, in
from .dnc import DNC

File "/usr/lib/python3.7/site-packages/dnc/dnc.py", line 13, in
from .util import *

File "/usr/lib/python3.7/site-packages/dnc/util.py", line 30
return var(x.pin_memory(), requires_grad=grad).cuda(gpu_id, async=True)
^
SyntaxError: invalid syntax

@bitnom bitnom closed this as completed Jan 11, 2019
@ixaxaar
Copy link
Owner

ixaxaar commented Jan 21, 2019

Are you still getting this error? Apparently I dont:

(faiss) 11:56:39 root@manifold neural sudo pip install dnc
Requirement already satisfied: dnc in /home/ixaxaar/miniconda3/envs/faiss/lib/python3.6/site-packages (0.0.9)
Requirement already satisfied: torch in /home/ixaxaar/miniconda3/envs/faiss/lib/python3.6/site-packages (from dnc) (0.4.1)
Requirement already satisfied: pyflann3 in /home/ixaxaar/miniconda3/envs/faiss/lib/python3.6/site-packages (from dnc) (1.8.4.1)
Requirement already satisfied: numpy in /home/ixaxaar/miniconda3/envs/faiss/lib/python3.6/site-packages (from dnc) (1.14.2)
(faiss) 11:56:45 root@manifold neural 
(faiss) 11:56:46 root@manifold neural 
(faiss) 11:56:46 root@manifold neural ipython
Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 18:21:58) 
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from dnc import DNC
/home/ixaxaar/miniconda3/envs/faiss/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters

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

2 participants