public void tf_equal_test() { using (var K = new TensorFlowBackend()) { var x = K.variable(array: new double[, ] { { 1, 2, 3 }, { 4, 5, 6 } }); var y = K.variable(array: new double[, ] { { 1, 2, 3 }, { 4, 5, 6 } }); Assert.AreEqual(new bool[, ] { { true, true, true }, { true, true, true } }, (bool[, ])K.equal(x, y).eval()); x = K.variable(array: new double[, ] { { 1, 2, 3 }, { 4, 5, 6 } }); y = K.variable(array: new double[, ] { { 1, 2, 3 }, { 4, 5, 0 } }); Assert.AreEqual(new bool[, ] { { true, true, true }, { true, true, false } }, (bool[, ])K.equal(x, y).eval()); } }