Skip to content

Commit 84510b3

Browse files
tests
1 parent 592cf52 commit 84510b3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tests/python/relay/test_json_compact.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ def test_var():
4949
{"type_key": ""},
5050
{
5151
"type_key": "relay.Var",
52-
"attrs": {"_checked_type_": "0", "span": "0", "type_annotation": "0", "vid": "2", "virtual_device_": "0"},
52+
"attrs": {
53+
"_checked_type_": "0",
54+
"span": "0",
55+
"type_annotation": "0",
56+
"vid": "2",
57+
"virtual_device_": "0",
58+
},
5359
},
5460
{"type_key": "relay.Id", "attrs": {"name_hint": "a3"}},
5561
{"type_key": "relay.TensorType", "attrs": {"dtype": "float32", "shape": "4", "span": "0"}},
@@ -130,7 +136,10 @@ def test_global_var():
130136
assert isinstance(tvar, tvm.ir.GlobalVar)
131137
nodes = [
132138
{"type_key": ""},
133-
{"type_key": "GlobalVar", "attrs": {"_checked_type_": "0", "name_hint": "x", "span": "0", "virtual_device_": "0"}},
139+
{
140+
"type_key": "GlobalVar",
141+
"attrs": {"_checked_type_": "0", "name_hint": "x", "span": "0", "virtual_device_": "0"},
142+
},
134143
]
135144
data = {
136145
"root": 1,

0 commit comments

Comments
 (0)