Closed
Description
If I try to check if an NDArray is null, I get strange behavior:
NDArray n = null;
bool b1 = n is null; // TRUE
bool b2 = n == null; // FALSE!
I saw in NDArray.Operators.cs that if the second value is null, the result is false:
TensorFlow.NET/src/TensorFlowNET.Core/NumPy/NDArray.Operators.cs
Lines 28 to 29 in ce3ddb2
Is that a wanted behavior? I think that if both values are null, the result should be true.
Metadata
Metadata
Assignees
Labels
No labels