tensorflow / graphics

TensorFlow Graphics: Differentiable Graphics Layers for TensorFlow
Apache License 2.0
2.75k stars 361 forks source link

[numpy] Fix users of NumPy APIs that are removed in NumPy 2.0. #733

Closed copybara-service[bot] closed 2 months ago

copybara-service[bot] commented 2 months ago

[numpy] Fix users of NumPy APIs that are removed in NumPy 2.0.

This change migrates users of APIs removed in NumPy 2.0 to their recommended replacements (https://numpy.org/doc/stable/numpy_2_0_migration_guide.html).

This change replaces uses of np.math, which is a deprecated alias for the builtin math module, with the builtin math module. np.math is removed in NumPy 2.0.