-
-
Notifications
You must be signed in to change notification settings - Fork 152
Fix subtensor shape inference #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix subtensor shape inference #39
Conversation
7da5dc8
to
82dc232
Compare
Currently, I'm stuck considering whether or not we should attempt to use This can arise when We could use an |
I don't see the numpy-incompatibility here as a blocker and the assert node (even with a different exception) is a reasonable solution. |
213369f
to
09897cc
Compare
09897cc
to
ac5a8b5
Compare
The merge-based functions were moved to `toolbox` to reduce unnecessary cross-module dependencies (especially among core modules). `equal_computations` was moved from `scan_module` because it provides a basic graph object `__eq__` implementation and it has multiple references outside of its own module/sub-package.
ac5a8b5
to
9d251af
Compare
9d251af
to
9895ef3
Compare
8a7e2ce
to
5bc5198
Compare
5bc5198
to
710b3ee
Compare
Now, when `as_tensor_variable` is given `Constant` types, it will return the same result as a call with the underlying non-`Variable` data. Closes Theano#98
710b3ee
to
eaf1470
Compare
This PR has grown to include quite a few independently important changes that were needed along the way—as well as some helpful refactoring. Due to the general importance of these changes, I'm going to consider this PR finished once the tests pass and continue the boolean indexing changes in another PR. |
Well, this recent run included the removal of constant caching (i.e. #99), and I don't see any noticeable changes in the speed of the tests. The claim was that that it would speed up the Locally, I'm also not seeing any real changes in memory use. It obviously wouldn't hurt to directly profile this change, but, given the simplicity now provided by the removal of constant caching, I believe we should move forward with this change. |
This PR adds generic shape inference for basic and advanced NumPy indexing on Theano tensors.
Note: the boolean case isn't covered, yet.