Skip to content

Instantly share code, notes, and snippets.

@justanhduc
Created December 13, 2019 05:01
Show Gist options
  • Save justanhduc/d5fbf2d6eeca92a660b3db2c2898faef to your computer and use it in GitHub Desktop.
Save justanhduc/d5fbf2d6eeca92a660b3db2c2898faef to your computer and use it in GitHub Desktop.
error building nested tensor
(base) justanhduc@insight-SIM3:~/Downloads/nestedtensor$ python setup.py develop
Building wheel nestedtensor-0.0.1.dev201912134+bef337d
running develop
running egg_info
creating nestedtensor.egg-info
writing nestedtensor.egg-info/PKG-INFO
writing dependency_links to nestedtensor.egg-info/dependency_links.txt
writing requirements to nestedtensor.egg-info/requires.txt
writing top-level names to nestedtensor.egg-info/top_level.txt
writing manifest file 'nestedtensor.egg-info/SOURCES.txt'
reading manifest file 'nestedtensor.egg-info/SOURCES.txt'
writing manifest file 'nestedtensor.egg-info/SOURCES.txt'
running build_ext
building 'nestedtensor._C' extension
creating build
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/home
creating build/temp.linux-x86_64-3.7/home/justanhduc
creating build/temp.linux-x86_64-3.7/home/justanhduc/Downloads
creating build/temp.linux-x86_64-3.7/home/justanhduc/Downloads/nestedtensor
creating build/temp.linux-x86_64-3.7/home/justanhduc/Downloads/nestedtensor/nestedtensor
creating build/temp.linux-x86_64-3.7/home/justanhduc/Downloads/nestedtensor/nestedtensor/csrc
gcc -pthread -B /home/justanhduc/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/justanhduc/Downloads/nestedtensor/nestedtensor/csrc -I/home/justanhduc/anaconda3/lib/python3.7/site-packages/torch/include -I/home/justanhduc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/justanhduc/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/justanhduc/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/home/justanhduc/cuda-10.0/include -I/home/justanhduc/anaconda3/include/python3.7m -c /home/justanhduc/Downloads/nestedtensor/nestedtensor/csrc/py_init.cpp -o build/temp.linux-x86_64-3.7/home/justanhduc/Downloads/nestedtensor/nestedtensor/csrc/py_init.o -O0 -g -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/justanhduc/Downloads/nestedtensor/nestedtensor/csrc/python_list_nested_tensor.h:3:0,
from /home/justanhduc/Downloads/nestedtensor/nestedtensor/csrc/py_init.cpp:2:
/home/justanhduc/Downloads/nestedtensor/nestedtensor/csrc/list_nested_tensor.h: In member function ‘bool torch::nested_tensor::_ListNestedTensor::is_pinned()’:
/home/justanhduc/Downloads/nestedtensor/nestedtensor/csrc/list_nested_tensor.h:113:28: error: ‘class at::Tensor’ has no member named ‘is_pinned’
return _first_variable.is_pinned();
^
error: command 'gcc' failed with exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment