public void TestRange() { var i = T.Scalar <int>("i"); var x = T.Range(i); var f = T.Function(i, x); AssertArray.AreEqual(NN.Range(10), f(10)); }
public void MeanAcceptIntTensor() { var i = T.Scalar <int>("i"); var x = T.Range(i); var y = T.Mean(x); var f = T.Function(i, y); AssertArray.AreAlmostEqual(f(10), 4.5f); }