Skip to content

Conversation

@hoel-bagard
Copy link
Contributor

The documentation says Tensor, but in practice this code works.

import tensorflow as tf

a = tf.constant([[1,2,3],[4,5,6]], tf.int32)
b = [1, 2]  # Tuple is also fine
tf.tile(a,b)

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit a3568ac into python:main Jan 20, 2026
86 of 87 checks passed
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.

2 participants