Skip to content

[Keras] Enable Dense operator for any input dims#16526

Merged
masahi merged 1 commit intoapache:mainfrom
echuraev:echuraev/keras_enable_dense_for_ge_2d_arrays
Feb 7, 2024
Merged

[Keras] Enable Dense operator for any input dims#16526
masahi merged 1 commit intoapache:mainfrom
echuraev:echuraev/keras_enable_dense_for_ge_2d_arrays

Conversation

@echuraev
Copy link
Contributor

@echuraev echuraev commented Feb 5, 2024

Our dense op expects 2D, but there are no limitation in Keras on the shape of the input tensor. Reshaping of all "batch" axes into one was added in this commit. After that, it is possible to import Dense layer with ND input tensor from Keras to TVM.

cc: @masahi, @vvchernov, @Hzfengsy

Our dense op expects 2D, but there are no limitation in Keras on the
shape of the input tensor. Reshaping of all "batch" axes into one was
added in this commit. After that, it is possible to import Dense layer
with ND input tensor from Keras to TVM.
@masahi masahi merged commit 2dcf9ec into apache:main Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants