mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/19239 ghimport-source-id: 830aad6dc11d2a7247760a9c7c9fc8556f70a706 Differential Revision: D14928293 Reviewed By: eellison Pulled By: suo fbshipit-source-id: d2efa5d7f7397526083278d6650b9cee8d967b1a
10 lines
231 B
Python
10 lines
231 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(object):
|
|
def __init__(self, y):
|
|
self.y = y
|