Skip to content

Commit 22985bb

Browse files
author
zhangbaizhou
committed
Delete tests of TracedLayer class
1 parent 00eb5aa commit 22985bb

File tree

4 files changed

+0
-391
lines changed

4 files changed

+0
-391
lines changed

python/paddle/jit/api.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@
3636
)
3737
from paddle.base.executor import Executor, scope_guard
3838
from paddle.base.framework import (
39-
Block,
4039
EagerParamBase,
4140
Parameter,
42-
Program,
4341
Variable,
4442
_current_expected_place,
4543
dygraph_only,
@@ -79,14 +77,6 @@ def sot_mode_guard(value: bool):
7977
yield
8078

8179

82-
def create_program_from_desc(program_desc):
83-
program = Program()
84-
program.desc = program_desc
85-
program.blocks = [Block(program, 0)]
86-
program._sync_with_cpp()
87-
return program
88-
89-
9080
def copy_decorator_attrs(original_func, decorated_obj):
9181
"""
9282
Copies some necessary attributes from original function into decorated function.

test/legacy_test/test_imperative_trace_non_persistable_inputs.py

Lines changed: 0 additions & 101 deletions
This file was deleted.

test/legacy_test/test_op_function_generator.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@
2121
from paddle import _legacy_C_ops, base
2222

2323

24-
class TestTracedLayer(paddle.nn.Layer):
25-
def __init__(self, name_scope):
26-
super().__init__(name_scope)
27-
28-
def forward(self, input):
29-
return _legacy_C_ops.relu(input)
30-
31-
3224
class TestVariable(unittest.TestCase):
3325
def setUp(self):
3426
self.shape = [512, 768]

0 commit comments

Comments
 (0)