|
|
|
@ -51,7 +51,9 @@ class InferenceTranspiler(object):
|
|
|
|
|
place (Place): inference place
|
|
|
|
|
scope (Scope|None): inference Scope
|
|
|
|
|
'''
|
|
|
|
|
sys.stderr.write('InferenceTranspiler is deprecated.\n')
|
|
|
|
|
sys.stderr.write("InferenceTranspiler is deprecated since it's not "
|
|
|
|
|
"safe. Users should be "
|
|
|
|
|
"responsible for constructing the inference program\n")
|
|
|
|
|
if not isinstance(program, Program):
|
|
|
|
|
raise TypeError("program should be as Program type")
|
|
|
|
|
if not isinstance(place, core.CPUPlace) and not isinstance(
|
|
|
|
|