Assumption handler for Eye fails on a Blockwise Eye: unpacks batched output shape
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- backend, machine-learning
Hướng nghiên cứu
Start with pytensor/assumptions/selection.py and the _eye handler; compare its shape unpacking with the delegation in pytensor/assumptions/blockwise.py. Reproduce the issue with the vectorized example in the report, then check that compiling it no longer logs the rewrite failure. Pull request #2688 is already open against this issue.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Compiling a vectorized graph that adds pt.identity_like to a matrix before cholesky and cho_solve logs a rewrite failure from orthogonal_solve_to_transpose_matmul. The Blockwise handler in pytensor/assumptions/blockwise.py hands the batched node to the core Eye handler, _eye. That handler does rows, cols = node.outputs[0].type.shape, which raises ValueError on the 3D output.
import pytensor
import pytensor.tensor as pt
def jittered_cho_solve(F, v):
L = pt.linalg.cholesky(F + pt.identity_like(F) * 1e-8)
return pt.linalg.cho_solve((L, True), v)
F = pt.tensor("F", shape=(4, 2, 2))
v = pt.tensor("v", shape=(4, 2))
out = pt.vectorize(jittered_cho_solve, signature="(p,p),(p)->(p)")(F, v)
pytensor.function([F, v], out) # logs "Rewrite failure due to: orthogonal_solve_to_transpose_matmul"
traceback
Rewrite failure due to: orthogonal_solve_to_transpose_matmul
node: Blockwise{CholeskySolve{lower=True, b_ndim=1, overwrite_b=False}, (m,m),(m)->(m)}(Blockwise{Cholesky{lower=True, overwrite_a=False}, (m,m)->(m,m)}.0, v)
TRACEBACK:
Traceback (most recent call last):
...
File ".../pytensor/assumptions/blockwise.py", line 11, in _blockwise_delegate
return infer_assumption_for_node(
File ".../pytensor/assumptions/core.py", line 411, in infer_assumption_for_node
output_states = fn(key, op, feature, fgraph, node, input_states)
File ".../pytensor/assumptions/selection.py", line 89, in _eye
rows, cols = node.outputs[0].type.shape
ValueError: too many values to unpack (expected 2, got 3)
- Ngôn ngữ chính
- Python
- Star
- 654
- Fork
- 258
- Merge trung bình
- 3 ngày 41 phút
- Pull request đã merge (30 ngày)
- 42
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pymc-devs/pytensor
-
Docs of mode still mentions C/CVM as the default with FAST_RUNCó thể đã có người làm @ADITYASINGH1206 đã nhận 8 ngày trước. Đang mởdocs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
pymc-devs/pytensor#2641 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update conditions page in docsĐang mởdocs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
BUG: geomspace returns wrong sign for the endpoints when start and stop are negativeCó thể đã có người làm @mayuriphad đã nhận 27 ngày trước. Đang mở
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Reciprocal.impl computes np.float32(1.0) / x: float32 precision for float64 scalars under NEP 50 (Python linker)Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
pymc-devs/pytensor#2430 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pymc-devs/pytensor#2428 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pymc-devs/pytensor
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
dgunning/edgartools#2019 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
topoteretes/cognee#6818 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
source_verification_agent: no outcome when the publisher confirms a work but its DOI resolves to a different recordCó thể đã có người làm @pinjun99 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Imbad0202/academic-research-skills#1159 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: DoubleMLData.from_arrays checks the treatment d with force_all_x_finite instead of force_all_d_finiteCó thể đã có người làm @leninworld đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
DoubleML/doubleml-for-py#471 ·
Maintainer thường phản hồi trong vòng 1 ngày