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
14 lines
284 B
Python
14 lines
284 B
Python
import torch
|
|
|
|
from . import bar
|
|
|
|
# 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:
|
|
def __init__(self, x):
|
|
self.x = x
|
|
self.nested = bar.FooSameName(x)
|