Skip to content

[BUG Report]: NumPy amin and amax function are incorrectly mapped #1151

Closed
@OliBomby

Description

@OliBomby

Description

amin and amax are aliases for min and max in numpy. They don't do the same as argmin or argmax. Refer to the documentation:
https://numpy.org/doc/stable/reference/generated/numpy.amin.html
https://numpy.org/doc/stable/reference/generated/numpy.amax.html

They should map to tf.min and tf.max

Relevant source file:
https://github.com/SciSharp/TensorFlow.NET/blob/master/src/TensorFlowNET.Core/NumPy/NumPy.Statistics.cs

Reproduction Steps

use np.amin and notice everything go up in flames

Known Workarounds

No response

Configuration and Other Information

  • TensorFlow.NET 0.110.2
  • TensorFlow.Keras 0.11.2
  • .NET 6
  • Windows 10

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions