pytensor icon indicating copy to clipboard operation
pytensor copied to clipboard

PyTensor allows you to define, optimize, and efficiently evaluate mathematical expressions involving multi-dimensional arrays.

Results 395 pytensor issues
Sort by recently updated
recently updated
newest added

### Description AdvancedSubtensor1 and AdvancedIncSubtensor1 are specializations of AdvancedSubtensor and AdvancedIncSubtensor that only allow one vector of integer indexing along the first dimension. They exist to provide a C-implementation of...

backend compatibility
graph rewriting

`dvector` hardcodes `shape=(None,)`. Would be nicer to make it a partial of `vector` with the fixed dtype to still allow providing a specific static shape if the user wants to...

beginner friendly

https://github.com/pymc-devs/pytensor/blob/5d4b0c4b9a1e478dda48e912ee708a9e557e9343/pytensor/tensor/random/basic.py#L897-L903 It is not allowed to broadcast with mu so it should be aware of its shape. And should probably be eye(mu.shape[-1]), not ones. Or we can just remove it,...

beginner friendly
maintenance
random variables

## Description Added more robust docstrings and removed the Elemwise docstring that was appended to each function. ## Related Issue - [x] Closes #292 - [ ] Related to #...

### Description NumPy 2.0 introduced some breaking changes in APIs, which break code and make tests unable to run. One example is np.obj2sctype(dtype) used in pytensor/tensor/type.py:105, which was removed in...

### Description The easiest way to give PyTensor users global (not fine-grained) control over CPU/GPU for the PyTorch backend would be the `set_default_device`/`with_device`. However, this may bee too slow, according...

needs info
torch

### Description https://github.com/pymc-devs/pytensor/blob/0e29d76b3122ba4fdedf0531005a4c0ba178d270/pytensor/link/jax/dispatch/basic.py#L22-L28 (And now from copying the approach also the PyTorch Linker)

backend compatibility

## Description ## What is broken / not supported by Numba: - float16: https://github.com/numba/numba/issues/4402 - Deepcopy / copying protected outputs: https://github.com/pymc-devs/pytensor/issues/50 - Sparse operations ## Related Issue - [ ]...

numba

### Please describe the purpose of filing this issue Equivalent symbolic methods to those are missing. The Numpy `quantile` and `percentile` methods have too many options for the `interpolation` argument,...

NumPy compatibility

## Description So here, I aim to replace the output of a graph of ```x.[1]``` or ```x@[1]``` with x. I am not quite sure if this is the correct way...