Skip to content

test for concat op on matrix with zero dim - #2433

Merged
rybakov merged 2 commits into
mainfrom
rybakov-patch-1
Jul 7, 2020
Merged

rybakov merged 2 commits into
mainfrom
rybakov-patch-1

Conversation

@rybakov

@rybakov rybakov commented Jul 7, 2020

Copy link
Copy Markdown
Contributor

Closes #2432

@rybakov
rybakov marked this pull request as ready for review July 7, 2020 21:22
@ScottTodd
ScottTodd requested a review from asaadaldien July 7, 2020 21:28
@ScottTodd ScottTodd added the integrations/tensorflow TensorFlow model import and conversion label Jul 7, 2020
@rybakov rybakov self-assigned this Jul 7, 2020
def test_concat_zero_dim(self):
tf_test_utils.set_random_seed()
m = self.modules.mat.all
a = tf.random.uniform([1, 5, 0], dtype=tf.float32)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually will result an empty tensors.

@rybakov rybakov Jul 7, 2020 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it will be empty with shape TensorShape([Dimension(1), Dimension(5), Dimension(0)])

@rybakov
rybakov merged commit c242129 into main Jul 7, 2020
@rybakov
rybakov deleted the rybakov-patch-1 branch July 7, 2020 22:45
@GMNGeoffrey GMNGeoffrey mentioned this pull request Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integrations/tensorflow TensorFlow model import and conversion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test for concat op on matrix with zero dim

3 participants