Skip to content

Commit 1069c05

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f9fede7 commit 1069c05

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

thunder/core/jit_ext.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ class JITSharpEdgeError(RuntimeError):
146146
def _general_jit_sharp_edge(desc: str, value: Any, /) -> Any | INTERPRETER_SIGNALS:
147147
sharp_edges: SHARP_EDGES_OPTIONS = get_jit_ctx().sharp_edges
148148

149-
s: str = f"{desc} This is currently considered a sharp edge even with interpretation=INTERPRETATION_OPTIONS.TRANSLATE_PYTHON. For cases in which we are overly strict, please file an issue. Thank you!"
149+
s: str = (
150+
f"{desc} This is currently considered a sharp edge even with interpretation=INTERPRETATION_OPTIONS.TRANSLATE_PYTHON. For cases in which we are overly strict, please file an issue. Thank you!"
151+
)
150152

151153
if sharp_edges is SHARP_EDGES_OPTIONS.ERROR:
152154
return do_raise(JITSharpEdgeError(s))

thunder/torch/__init__.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3156,18 +3156,15 @@ def amin(a, /, dim=None, keepdim: bool = False):
31563156

31573157
# NOTE: Using name `torch_max` to avoid conflict with Python's `max`
31583158
@overload
3159-
def torch_max(a: TensorLike, /) -> TensorLike:
3160-
...
3159+
def torch_max(a: TensorLike, /) -> TensorLike: ...
31613160

31623161

31633162
@overload
3164-
def torch_max(a: TensorLike, /, dim: NumberLike, keepdim: bool = False) -> tuple[TensorLike, TensorLike]:
3165-
...
3163+
def torch_max(a: TensorLike, /, dim: NumberLike, keepdim: bool = False) -> tuple[TensorLike, TensorLike]: ...
31663164

31673165

31683166
@overload
3169-
def torch_max(a: TensorLike, b: TensorLike, /) -> TensorLike:
3170-
...
3167+
def torch_max(a: TensorLike, b: TensorLike, /) -> TensorLike: ...
31713168

31723169

31733170
@torchsymbol(torch.max, is_method=True, method_name="max", id="torch.max")

0 commit comments

Comments
 (0)