Update tensorflow requirement from <2.12.0 to <2.15.0
Created by: dependabot[bot]
Updates the requirements on tensorflow to permit the latest version.
Release notes
Sourced from tensorflow's releases.
TensorFlow 2.14.0
Release 2.14.0
Tensorflow
Breaking Changes
Support for Python 3.8 has been removed starting with TF 2.14. The TensorFlow 2.13.1 patch release will still have Python 3.8 support.
tf.Tensor
- The class hierarchy for
tf.Tensorhas changed, and there are now explicitEagerTensorandSymbolicTensorclasses for eager and tf.function respectively. Users who relied on the exact type of Tensor (e.g.type(t) == tf.Tensor) will need to update their code to useisinstance(t, tf.Tensor). Thetf.is_symbolic_tensorhelper added in 2.13 may be used when it is necessary to determine if a value is specifically a symbolic tensor.
tf.compat.v1.Session
tf.compat.v1.Session.partial_runandtf.compat.v1.Session.partial_run_setupwill be deprecated in the next release.Known Caveats
tf.lite
- when converter flag "_experimenal_use_buffer_offset" is enabled, additional metadata is automatically excluded from the generated model. The behaviour is the same as "exclude_conversion_metadata" is set
- If the model is larger than 2GB, then we also require "exclude_conversion_metadata" flag to be set
Major Features and Improvements
The
tensorflowpip package has a new, optional installation method for Linux that installs necessary Nvidia CUDA libraries through pip. As long as the Nvidia driver is already installed on the system, you may now runpip install tensorflow[and-cuda]to install TensorFlow's Nvidia CUDA library dependencies in the Python environment. Aside from the Nvidia driver, no other pre-existing Nvidia CUDA packages are necessary.Enable JIT-compiled i64-indexed kernels on GPU for large tensors with more than 2**32 elements.
- Unary GPU kernels: Abs, Atanh, Acos, Acosh, Asin, Asinh, Atan, Cos, Cosh, Sin, Sinh, Tan, Tanh.
- Binary GPU kernels: AddV2, Sub, Div, DivNoNan, Mul, MulNoNan, FloorDiv, Equal, NotEqual, Greater, GreaterEqual, LessEqual, Less.
tf.lite
- Add experimental supports conversion of models that may be larger than 2GB before buffer deduplication
Bug Fixes and Other Changes
tf.py_functionandtf.numpy_functioncan now be used as function decorators for clearer code:@tf.py_function(Tout=tf.float32) def my_fun(x): print("This always executes eagerly.") return x+1
tf.lite
- Strided_Slice now supports
UINT32.
tf.config.experimental.enable_tensor_float_32_execution
- Disabling TensorFloat-32 execution now causes TPUs to use float32 precision for float32 matmuls and other ops. TPUs have always used bfloat16 precision for certain ops, like matmul, when such ops had float32 inputs. Now, disabling TensorFloat-32 by calling
tf.config.experimental.enable_tensor_float_32_execution(False)will cause TPUs to use float32 precision for such ops instead of bfloat16.
tf.experimental.dtensor
- API changes for Relayout. Added a new API,
dtensor.relayout_like, for relayouting a tensor according to the layout of another tensor.
... (truncated)
Changelog
Sourced from tensorflow's changelog.
Release 2.14.0
Tensorflow
Breaking Changes
Support for Python 3.8 has been removed starting with TF 2.14. The TensorFlow 2.13.1 patch release will still have Python 3.8 support.
tf.Tensor
- The class hierarchy for
tf.Tensorhas changed, and there are now explicitEagerTensorandSymbolicTensorclasses for eager and tf.function respectively. Users who relied on the exact type of Tensor (e.g.type(t) == tf.Tensor) will need to update their code to useisinstance(t, tf.Tensor). Thetf.is_symbolic_tensorhelper added in 2.13 may be used when it is necessary to determine if a value is specifically a symbolic tensor.
tf.compat.v1.Session
tf.compat.v1.Session.partial_runandtf.compat.v1.Session.partial_run_setupwill be deprecated in the next release.Known Caveats
tf.lite
- when converter flag "_experimenal_use_buffer_offset" is enabled, additional metadata is automatically excluded from the generated model. The behaviour is the same as "exclude_conversion_metadata" is set
- If the model is larger than 2GB, then we also require "exclude_conversion_metadata" flag to be set
Major Features and Improvements
The
tensorflowpip package has a new, optional installation method for Linux that installs necessary Nvidia CUDA libraries through pip. As long as the Nvidia driver is already installed on the system, you may now runpip install tensorflow[and-cuda]to install TensorFlow's Nvidia CUDA library dependencies in the Python environment. Aside from the Nvidia driver, no other pre-existing Nvidia CUDA packages are necessary.Enable JIT-compiled i64-indexed kernels on GPU for large tensors with more than 2**32 elements.
- Unary GPU kernels: Abs, Atanh, Acos, Acosh, Asin, Asinh, Atan, Cos, Cosh, Sin, Sinh, Tan, Tanh.
- Binary GPU kernels: AddV2, Sub, Div, DivNoNan, Mul, MulNoNan, FloorDiv, Equal, NotEqual, Greater, GreaterEqual, LessEqual, Less.
tf.lite
- Add experimental supports conversion of models that may be larger than 2GB before buffer deduplication
Bug Fixes and Other Changes
tf.py_functionandtf.numpy_functioncan now be used as function decorators for clearer code:@tf.py_function(Tout=tf.float32) def my_fun(x): print("This always executes eagerly.") return x+1
tf.lite
- Strided_Slice now supports
UINT32.
tf.config.experimental.enable_tensor_float_32_execution
- Disabling TensorFloat-32 execution now causes TPUs to use float32 precision for float32 matmuls and other ops. TPUs have always used bfloat16 precision for certain ops, like matmul, when such ops had float32 inputs. Now, disabling TensorFloat-32 by calling
tf.config.experimental.enable_tensor_float_32_execution(False)will cause TPUs to use float32 precision for such ops instead of bfloat16.
tf.experimental.dtensor
- API changes for Relayout. Added a new API,
dtensor.relayout_like, for relayouting a tensor according to the layout of another tensor.- Added
dtensor.get_default_mesh, for retrieving the current default mesh under the dtensor context.
... (truncated)
Commits
-
4dacf3fMerge pull request #61943 from georgiyekkert/r2.14 -
0025df9Pin ml_dtypes -
25ffb73Merge pull request #61930 from tensorflow/r2.14-0e3480236ce -
d9f5428Update RELEASE.md to remove estimator deprecation notice (#61931) -
656737binclude THIRD_PARTY_NOTICES.txt in the wheel. -
30d843dMerge pull request #61929 from tensorflow/r2.14-d03c477d727 -
4e2744bAdd licenses and notices for third party libraries -
9b87467Merge pull request #61838 from rtg0795/r2.14 -
d5e6de1Update RELEASE.md for 2.14.0 release -
e9a1d03Merge pull request #61837 from rtg0795/r2.14 - Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)