Skip to content

Commit

Permalink
Fix after review #4
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Kazantsev <[email protected]>
  • Loading branch information
rkazants committed Aug 28, 2020
1 parent 5027645 commit 87026e3
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def test1(self):
nodes_with_edges_only=True)

(flag, resp) = compare_graphs(graph, graph_ref, 'last', check_op_attrs=True)
self.assertEqual(graph.get_op_nodes(op='Cast')[0]['name'], 'sparse_to_dense',
self.assertEqual(len(graph.get_op_nodes(op='Cast')) == 1 and
graph.get_op_nodes(op='Cast')[0]['name'] == 'sparse_to_dense', True,
'Name is not inherited from original node for CTCGreedyDecoderReplacement')
self.assertTrue(flag, resp)

Expand Down Expand Up @@ -158,6 +159,7 @@ def test2(self):
nodes_with_edges_only=True)

(flag, resp) = compare_graphs(graph, graph_ref, 'last', check_op_attrs=True)
self.assertEqual(graph.get_op_nodes(op='Cast')[0]['name'], 'sparse_to_dense',
self.assertEqual(len(graph.get_op_nodes(op='Cast')) == 1 and
graph.get_op_nodes(op='Cast')[0]['name'] == 'sparse_to_dense', True,
'Name is not inherited from original node for CTCGreedyDecoderReplacement2')
self.assertTrue(flag, resp)

0 comments on commit 87026e3

Please sign in to comment.