Comments (11)
The code is like (in function)
tmp4d.Resize(Shape4(w,x,y,z));
//Error happens
tmp4d = swapaxis<1,0>(reshape(tmp2d, Shape4(w,x,y,z)));
from mshadow.
You need to set stream for the TensorContainers as in https://github.com/dmlc/mshadow/blob/master/guide/neuralnet/convnet.cu#L46
from mshadow.
Thanks, but I've set the stream.
from mshadow.
Just in case,
didn't you forget to init the tensor engine?
from mshadow.
@zhangchen-qinyinghua
what do you mean?
the stream setting is in the construct function.
from mshadow.
@DrustZ
I mean,
InitTensorEngine();
Once I got the same error output, just because I forgot to init the tensor engine.
Also, following two behaviors:
-forget to set the stream
-accidentally change the GPU memory by hand
seems to give the same output.
from mshadow.
@zhangchen-qinyinghua
But in the sample .cu(the convnet.cu), there seems no InitTensorEngine() function?
Thanks~
from mshadow.
No?
https://github.com/dmlc/mshadow/blob/master/guide/neuralnet/convnet.cu#L224
By the way, if you use GPU, you don't need to init the engine.
from mshadow.
@zhangchen-qinyinghua
Sorry, I ignored it.
So this seems not the init fault.
I just added some containers and set their stream after other containers...
Yes, I use the GPU.
from mshadow.
It works now. I think there's some different between ''='' and Copy()
from mshadow.
Yes, the = operator means tensor pointer copy in mshadow, so it is the only place you need to be careful about
from mshadow.
Related Issues (20)
- About getting the shape of a tensor HOT 1
- [please delete]
- how to reduce a one-dimension tensor (vector) ? HOT 1
- why there is no kDim inference check in ExpInfo for TenaryMapExp? HOT 1
- Is this a bug of operator[] ?
- mac make errors HOT 1
- Error on compiling basic_stream.cu with CUDA 9.0 HOT 3
- Shall we add half_t support to Random<cpu, DType> HOT 2
- --start-group not supported by macOS HOT 2
- Support for Complex numbers HOT 2
- Row wise normalization of tensor HOT 1
- [Clarification] Provision for AMD HIP backend for MXNet HOT 1
- dot_engine-inl.h MSHADOW_STAND_ALONE BLASEngine<cpu, float>::gemm error HOT 1
- error: no instance of function template "mshadow::Random<mshadow::gpu, DType>::SampleUniform
- CI is failing HOT 1
- Add Scientific Linux to makefile's CentOS blas library exception HOT 1
- Is 'base.h:173:20:fatal error: cuda.h: No such file or directory' means I did't install cuda? HOT 2
- does there need some update with guide and tests? HOT 1
- [RFC] Deprecate mshadow and donate code to apache-mxnet HOT 13
- Doesn't install any files HOT 2
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 mshadow.