Skip to content

Commit

Permalink
[numpy] Fix users of NumPy APIs that are removed in NumPy 2.0.
Browse files Browse the repository at this point in the history
This change migrates users of APIs removed in NumPy 2.0 to their recommended replacements (https://numpy.org/devdocs/numpy_2_0_migration_guide.html).

PiperOrigin-RevId: 657176440
  • Loading branch information
hawkinsp authored and edward-bot committed Jul 29, 2024
1 parent 858ac65 commit 4d9bc5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edward2/tensorflow/layers/heteroscedastic_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def train_step(inputs, labels, model):

if kwargs.get('tune_temperature'):
contains_temperature = False
pre_sigmoid_temperature = np.NaN
pre_sigmoid_temperature = np.nan
for w in classifier.trainable_weights:
if 'pre_sigmoid_temperature' in w.name:
contains_temperature = True
Expand Down

0 comments on commit 4d9bc5a

Please sign in to comment.