Пример #1
0
            public void GetOutputs()
            {
                Assert.ThrowsException <IndexOutOfRangeException>(
                    () => Net.GetOutput(1));
                Net.SetState(new float[] { 0, 5, 0, 0 });
                var output = Net.GetOutput(0);

                Assert.AreEqual(5, output);
                var allOuts = Net.GetOutputs();

                Assert.AreEqual(1, allOuts.Length);
                Assert.AreEqual(5, allOuts[0]);
            }