Skip to content

Commit

Permalink
remove try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
yotamazriel committed Dec 10, 2024
1 parent 142138b commit f44fa1f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions onnx2kerastl/elementwise_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,8 @@ def convert_where(node, params, layers, lambda_func, node_name, keras_name):
layers[node.input[1]],
tf_name=f"{params['cleaned_name']}_where_1")
else:
try:
layers[node_name] = tf_where(casted, layers[node.input[1]], layers[node.input[2]],
layers[node_name] = tf_where(casted, layers[node.input[1]], layers[node.input[2]],
tf_name=f"{params['cleaned_name']}_where_2")
except Exception as e:
print(1)


def convert_scatter_nd(node, params, layers, lambda_func, node_name, keras_name):
Expand Down

0 comments on commit f44fa1f

Please sign in to comment.