Comments (5)
Sorry you are having problems.
What version of Ubuntu are you using?
One possible solution may be to install PyTorch inside a conda environment (download from https://conda.io/miniconda.html) and then run 'python setup.py develop' in the conda environment.
Ben
from sparseconvnet.
Thanks for your response Mr. @btgraham. The Ubutntu version of mine is 16.04. My installation procedure is as same as your suggestion. I have installed the Anaconda and then create a virtual environment called sparse in that and activate it using source activate sparse
. Then I have run following commands
sudo apt-get install libsparsehash-dev
git clone [email protected]:facebookresearch/SparseConvNet.git
cd SparseConvNet/PyTorch/
python setup.py develop
I think the installation did not have any problems and also no warnings and errors. But when I want to import sparseconvnet for example in an ipython, it generates the aforementioned error.
Here is the stack trace:
ImportError Traceback (most recent call last)
in ()
----> 1 import sparseconvnet/home/mohammad/SparseConvNet-master/PyTorch/sparseconvnet/init.py in ()
7 forward_pass_multiplyAdd_count = 0
8 forward_pass_hidden_states = 0
----> 9 from .activations import Tanh, Sigmoid, ReLU, ELU
10 from .averagePooling import AveragePooling
11 from .batchNormalization import BatchNormalization, BatchNormReLU, BatchNormLeakyReLU/home/mohammad/SparseConvNet-master/PyTorch/sparseconvnet/activations.py in ()
9 from torch.autograd import Function, Variable
10 from torch.nn import Module, Parameter
---> 11 from .utils import *
12 from .sparseConvNetTensor import SparseConvNetTensor
13 from .batchNormalization import BatchNormalization/home/mohammad/SparseConvNet-master/PyTorch/sparseconvnet/utils.py in ()
6
7 import torch
----> 8 import sparseconvnet.SCN as scn
9 from cffi import FFI
10/home/mohammad/SparseConvNet-master/PyTorch/sparseconvnet/SCN/init.py in ()
1
2 from torch.utils.ffi import _wrap_function
----> 3 from ._SCN import lib as _lib, ffi as _ffi
4
5 all = []ImportError: /home/mohammad/SparseConvNet-master/PyTorch/sparseconvnet/SCN/_SCN.so: undefined symbol: _ZNSt12length_errorC1EPKc
from sparseconvnet.
Hmm. Can you please try taking the attached file, and moving it to PyTorch/setup.py (so remove the .txt from the filename) and rerunning 'python setup.py develop' command.
from sparseconvnet.
@btgraham, Same error as above.
from sparseconvnet.
_ZN3c105ErrorC1ENS_14SourceLocationERKSs
Resolved by reinstalling PyTorch
from sparseconvnet.
Related Issues (20)
- Some questions about operational efficiency
- About the parameters of InputLayer HOT 3
- Dense to Sparse for input is quite slow
- AttributeError: module 'sparseconvnet.SCN' has no attribute 'Metadata_2' HOT 3
- RuntimeError: CUDA error: an illegal memory access was encountered HOT 2
- voxel input HOT 1
- Cloning face an error
- undefined symbol: _ZNSt15__exception_ptr13exception_ptr10_M_releaseEv HOT 2
- How to compute FLOPs for spraseconvnet HOT 3
- RuntimeError: expected scalar type Long but found Float HOT 5
- Building failure related to gcc version
- RuntimeError: expected scalar type Long but found Float
- Dilated convolution HOT 1
- Directly applying convolution HOT 1
- Rewrite for convolution operation
- Output with empty tensor
- setup.py中的C++17要改成C++14
- question from paper HOT 2
- Segment Fault due to resolution
- RuntimeError: Error compiling objects for extension
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 sparseconvnet.