mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01: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
12 lines
291 B
Python
12 lines
291 B
Python
import torch
|
|
import jit.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(object):
|
|
def __init__(self, x):
|
|
self.x = x
|
|
self.nested = jit.bar.FooSameName(x)
|