提交 76138a6f authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Ignore flaky Mypy + pre-commit inference

上级 a1679df8
...@@ -745,13 +745,13 @@ class UnShapeOptimizer(GraphRewriter): ...@@ -745,13 +745,13 @@ class UnShapeOptimizer(GraphRewriter):
# Register it after merge1 optimization at 0. We don't want to track # Register it after merge1 optimization at 0. We don't want to track
# the shape of merged node. # the shape of merged node.
aesara.compile.mode.optdb.register( aesara.compile.mode.optdb.register( # type: ignore
"ShapeOpt", ShapeOptimizer(), "fast_run", "fast_compile", position=0.1 "ShapeOpt", ShapeOptimizer(), "fast_run", "fast_compile", position=0.1
) )
# Not enabled by default for now. Some crossentropy opt use the # Not enabled by default for now. Some crossentropy opt use the
# shape_feature. They are at step 2.01. uncanonicalize is at step # shape_feature. They are at step 2.01. uncanonicalize is at step
# 3. After it goes to 48.5 that move to the gpu. So 10 seems reasonable. # 3. After it goes to 48.5 that move to the gpu. So 10 seems reasonable.
aesara.compile.mode.optdb.register("UnShapeOpt", UnShapeOptimizer(), position=10) aesara.compile.mode.optdb.register("UnShapeOpt", UnShapeOptimizer(), position=10) # type: ignore
def local_reshape_chain(op): def local_reshape_chain(op):
......
...@@ -250,6 +250,12 @@ check_untyped_defs = False ...@@ -250,6 +250,12 @@ check_untyped_defs = False
ignore_errors = True ignore_errors = True
check_untyped_defs = False check_untyped_defs = False
[mypy-aesara.tensor.rewriting.shape]
warn_unused_ignores = False
[mypy-aesara.tensor.rewriting.elemwise]
warn_unused_ignores = False
[mypy-aesara.tensor.subtensor] [mypy-aesara.tensor.subtensor]
ignore_errors = True ignore_errors = True
check_untyped_defs = False check_untyped_defs = False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论