Skip to content

Proposal to infer Torch's generator state from the Numpy one

Codecov / codecov/project succeeded Dec 8, 2024 in 0s

82.11% (+0.00%) compared to 07bd48d

View this Pull Request on Codecov

82.11% (+0.00%) compared to 07bd48d

Details

Codecov Report

Attention: Patch coverage is 87.23404% with 6 lines in your changes missing coverage. Please review.

Project coverage is 82.11%. Comparing base (07bd48d) to head (1c8dc80).

Files with missing lines Patch % Lines
pytensor/link/pytorch/dispatch/random.py 89.18% 4 Missing ⚠️
pytensor/link/pytorch/dispatch/basic.py 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1075   +/-   ##
=======================================
  Coverage   82.10%   82.11%           
=======================================
  Files         185      186    +1     
  Lines       48089    48134   +45     
  Branches     8659     8661    +2     
=======================================
+ Hits        39485    39525   +40     
- Misses       6439     6443    +4     
- Partials     2165     2166    +1     
Files with missing lines Coverage Δ
pytensor/link/pytorch/dispatch/__init__.py 100.00% <100.00%> (ø)
pytensor/link/pytorch/linker.py 100.00% <100.00%> (ø)
pytensor/link/pytorch/dispatch/basic.py 93.69% <50.00%> (-0.81%) ⬇️
pytensor/link/pytorch/dispatch/random.py 89.18% <89.18%> (ø)