Example #1
0
        public void TestDropoutEmpty()
        {
            var forwardInput     = _cpu.CreateMatrix(SIZE, SIZE, _DefaultInit).AsIndexable();
            var expectedOutput   = _cpu.CreateMatrix(SIZE, SIZE, (i, j) => 0f);
            var backwardInput    = _cpu.CreateMatrix(SIZE, SIZE, _DefaultInit).AsIndexable();
            var expectedBpOutput = _cpu.CreateMatrix(SIZE, SIZE, (i, j) => 0f);

            _TestNode(_factory.CreateDropOut(1f), forwardInput, expectedOutput, backwardInput,
                      expectedBpOutput);
        }