Comments (5)
I have the same problem running this demo and sometimes with my code.
It's strange that in my code I can overcome this by disabling simplifications.
Meanwhile, 7 tests fail with the same error.
from cgt.
What did you use for your CUDA
build settings? I enabled CUDA
& CUDNN
and am running v7
of CUDA
from cgt.
I don't use CUDA at all and I'm not sure that this error is related to it.
I tried to debug my code which fails with the same error and find what causes it.
def py_numeric_apply(node, vals):
...
#vals is np.array with dtype=float32
out = alloc_output(node,vals)
#out is np.array with dtype=int64 because node.typ.dtype is so
callable.call(vals, out)
# this causes the error since np.ceil always returns floats (even if the input is integer)
# which cannot be written to int64 array
If got it right according to UNARY_INFO
the iceil
operation should cast it's result to integer somehow, but it doesn't.
from cgt.
Changing
def _nu_iceil(x,out=None):
if out is None:
return np.ceil(x)
else:
np.ceil(x, out)
to
def _nu_iceil(x,out=None):
if out is None:
return np.ceil(x)
else:
out[...] = np.ceil(x)
helps me and allows to run the demo. My code however fails with the following error:
Python(87053,0x7fff71141000) malloc: *** mach_vm_map(size=140458053210112) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Segmentation fault: 11
from cgt.
This is now fixed with the commit from @sbos [ #46 ]
from cgt.
Related Issues (20)
- Product of diagonal elements may be `nan` HOT 1
- cgt.stack only supports stacking scalars HOT 1
- Error on tutorial
- Bug in graph simplification HOT 2
- OSX: Build fails with OpenBLAS dependency HOT 1
- Questions about Installation : cmake and windows HOT 1
- Memory consumption of native backend on Linux
- Random number generation and graph simplification HOT 2
- Negative reshaping check not enforced sometimes HOT 1
- Parameter indexing leads to an assertion error in module definition HOT 1
- Issues with shared scalar HOT 2
- Random number generation and modules (and simplification again)
- CIFAR Demo Error when using GPU
- Installation with anaconda
- Support for square root operation on Node HOT 2
- Simple operation breaks CGT
- Berkely BidMach and CGT
- How to build with python 3?
- Any reference to read? HOT 1
- Links in read-me are dead
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 cgt.