Skip to content

Add TensorFlow stubs #11306

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

Closed
wants to merge 77 commits into from
Closed

Conversation

hoel-bagard
Copy link
Contributor

This PR adds some functions and classes to the TensorFlow stubs (maybe most notably tensorflow.keras.models.Model).

This PR is stacked on top of #11292.

This comment has been minimized.

@hoel-bagard hoel-bagard marked this pull request as draft January 24, 2024 13:36

This comment has been minimized.

1 similar comment

This comment has been minimized.

This comment has been minimized.

1 similar comment

This comment has been minimized.

This comment has been minimized.

6 similar comments

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@hmc-cs-mdrissi
Copy link
Contributor

Ping me when you think this is ready for a review pass. Mainly cross reference it with stubs I shared as those tend to have broader types.

hoel-bagard and others added 25 commits January 27, 2024 17:13
…enerator, evaluate_generator and predict_generator
This is not written in t he doc, but is used by jax
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

jax (https://github.com/google/jax)
+ jax/experimental/jax2tf/jax2tf.py:2912: error: Incompatible types in assignment (expression has type "Tensor", variable has type "tuple[Any, ...]")  [assignment]
+ jax/experimental/jax2tf/jax2tf.py:2933: error: Incompatible types in assignment (expression has type "Tensor", variable has type "tuple[Any, ...]")  [assignment]
+ jax/experimental/jax2tf/impl_no_xla.py:915: error: Argument 2 to "_clip" has incompatible type "Tensor"; expected "Sequence[Any]"  [arg-type]

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