Skip to content

Commit abec5f2

Browse files
committed
add unittest, test=develop
1 parent 2983520 commit abec5f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/paddle/fluid/tests/unittests/ir/test_ir_generate_pass.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ def convert_ops_to_op_dicts(self, ops):
123123
op_dicts[op.type] = [op]
124124
return op_dicts
125125

126+
def test_has_attr(self):
127+
self.assertFalse(hasattr(ir.PassDesc.OP, '__name__'))
128+
126129
def test_generate_fc_fuse(self):
127130
def _check_fc_fuse_pass(pass_desc, with_relu):
128131
pattern_op_dicts = self.convert_ops_to_op_dicts(

0 commit comments

Comments
 (0)