tensorflow / addons

Useful extra functionality for TensorFlow 2.x maintained by SIG-addons
Apache License 2.0
1.69k stars 611 forks source link

Pure tf.functions can't have None inputs #2837

Closed faizan-m closed 1 year ago

faizan-m commented 1 year ago

Description

Brief Description of the PR: Using experimental_implements feature now enforces purity on tf.function (all inputs must be Tensors). However, the default value here is None which is not allowed.

Fixes # (issue)

Type of change

Checklist:

How Has This Been Tested?

If you're adding a bugfix or new feature please describe the tests that you ran to verify your changes: