mirror of https://github.com/Jittor/Jittor
add NotImplementedError when not override execute
This commit is contained in:
parent
0d94663dee
commit
8bf423980e
|
@ -8,7 +8,7 @@
|
|||
# This file is subject to the terms and conditions defined in
|
||||
# file 'LICENSE.txt', which is part of this source code package.
|
||||
# ***************************************************************
|
||||
__version__ = '1.2.2.36'
|
||||
__version__ = '1.2.2.37'
|
||||
from . import lock
|
||||
with lock.lock_scope():
|
||||
ori_int = int
|
||||
|
@ -700,7 +700,7 @@ class Module:
|
|||
def __init__(self, *args, **kw):
|
||||
pass
|
||||
def execute(self, *args, **kw):
|
||||
pass
|
||||
raise NotImplementedError
|
||||
def __call__(self, *args, **kw):
|
||||
return self.execute(*args, **kw)
|
||||
def __repr__(self):
|
||||
|
|
Loading…
Reference in New Issue