Skip to content

Commit

Permalink
Assert for incorrect number of inputs
Browse files Browse the repository at this point in the history
Change-Id: I393f3b3b62be73e427498d98456fb1d5a214e0af
  • Loading branch information
mbaret committed Feb 10, 2020
1 parent 7fca345 commit 7e69839
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/tvm/relay/frontend/tflite.py
Original file line number Diff line number Diff line change
Expand Up @@ -1837,6 +1837,7 @@ def convert_detection_postprocess(self, op):
)

inputs = self.get_input_tensors(op)
assert len(inputs) == 3, "inputs length should be 3"
cls_pred = self.get_expr(inputs[1].tensor_idx)
loc_prob = self.get_expr(inputs[0].tensor_idx)
anchor_values = self.get_tensor_value(inputs[2])
Expand Down

0 comments on commit 7e69839

Please sign in to comment.