Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[frontend][keras] Add support for TimeDistributed #7006

Merged
merged 20 commits into from
Jan 21, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simplify further
  • Loading branch information
slyubomirsky committed Jan 21, 2022
commit d83d8cfddbf6cd8f657124c720c91a0255fd94eb
4 changes: 2 additions & 2 deletions python/tvm/relay/frontend/keras.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ def _convert_repeat_vector(
return out


def _convert_l2_normalize(inexpr, keras_layer, _, data_layout):
def _convert_l2_normalize(inexpr, keras_layer, data_layout):
l2_normalize_is_loaded = False
param_list = []
for i in dis.get_instructions(keras_layer.function):
Expand Down Expand Up @@ -1171,7 +1171,7 @@ def _convert_lambda(inexpr, keras_layer, etab, data_layout):
and len(fcode.co_names) > 0
and fcode.co_names[-1] == "l2_normalize"
):
return _convert_l2_normalize(inexpr, keras_layer, etab, data_layout)
return _convert_l2_normalize(inexpr, keras_layer, data_layout)
raise tvm.error.OpNotImplemented(
"Function {} used in Lambda layer is not supported in frontend Keras.".format(
fcode.co_names
Expand Down