Ejemplo n.º 1
0
        public void TestDropConnectEmpty()
        {
            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.CreateDropConnect(1f, SIZE, SIZE), forwardInput, expectedOutput,
                      backwardInput, expectedBpOutput);
        }