Comments (12)
Use int64 in that case. This is what we use for the infer_shape.
For safety, we should use run Theano tests on windows for that PR.
from theano.
For safety, test on windows and with a 32-bit python
from theano.
This issue should be closed as we don't do this anymore.
from theano.
Why did you close this? We still do this. Just grep the file tensor/raw_random.py for int32.
from theano.
@nouiz is right, we are still doing that for the provided shape
argument (not for the infer_shape
mechanism).
from theano.
The cast there https://github.com/Theano/Theano/blob/master/theano/tensor/raw_random.py#L187 is only done when shape == ().
Unless you mean something else.
from theano.
Theano/theano/tensor/raw_random.py
Line 397 in 575c7a9
Theano/theano/tensor/raw_random.py
Line 521 in 575c7a9
from theano.
Oh, ok.
from theano.
Actually, we also do that in theano/sandbox/rng_mrg.py
(l. 334, l. 542, l. 784), and we assert that the dtype is int32 in the C code (l. 425, l. 674, l. 932).
I'm not sure what we should do for that case.
from theano.
So, for rng_mrg.py
, here is what we should do, at all 3 places:
- In the graph, make sure shapes are
int64
. - In the C code, expect int64, and check the values when setting
odims[i]
to make sure it fits in int32, raise aValueError
if it does not.
@yaoli this is your ticket.
from theano.
I'd appreciate if someone has a chat with me of this problem as I'm not sure if I understand it correctly.
from theano.
@yaoli We can chat on google hangout
from theano.
Related Issues (20)
- Theano crash when LSTM layer's hidden size is 1 using Keras backend
- matplotlib and keyring should be added to configuration files HOT 2
- deeplearning.net is DOWN
- Guided Backpropagation in Theano/Lasagne
- ImportError: cannot import name 'is_same_graph' HOT 2
- configparser.NoSectionError: No section: 'blas' (Theano does not run probably on Python 3.9 and Numpy 1.22.2) HOT 4
- Error while using pymc3 and Theano-PyMC package
- unexpected behaviour in dimension expansion
- theano error cannot convert 'cudnnConvolutionFwdAlgo_t*' to 'cudnnConvolutionFwdAlgoPerf_t
- TypeError: ufunc 'sin' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe'' HOT 1
- Project dependencies may have API risk issues HOT 1
- Incorrect Regular Expression Ranges
- HINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.
- Use github.com/apssouza22/chatflow as a conversational layer. It would enable actual API requests to be carried out from natural language inputs. HOT 1
- theano.tensor.nnet.conv3d verify_grad fail when border_mode is "full"
- theano.gradient.verify_grad throws error if the rng parameter is not provided
- theano.tensor.nnet.bn.batch_normalization verify_grad fail
- theano.gradient.verify_grad lack of checking the validity of inputs HOT 1
- A Suspected Bug in `categorical_crossentropy`
- DepthwiseConv2D outputs normally when dilation_rate is 0
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 theano.