mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Partially addresses #123062 Ran lintrunner on: - `test/jit` with command: ```bash lintrunner -a --take UFMT --all-files ``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/123623 Approved by: https://github.com/ezyang
11 lines
238 B
Python
11 lines
238 B
Python
import torch
|
|
|
|
# This file contains definitions of script classes.
|
|
# They are used by test_jit.py to test ScriptClass imports
|
|
|
|
|
|
@torch.jit.script # noqa: B903
|
|
class FooSameName: # noqa: B903
|
|
def __init__(self, y):
|
|
self.y = y
|