Esempio n. 1
0
        public void Dense_No_Bias()
        {
            var data          = new float[] { 1, 1 };
            var inputVariable = CNTKLib.InputVariable(new int[] { data.Length }, m_dataType);

            var sut = Layers.Dense(inputVariable, 2,
                                   weightInitializer: Initializers.One(), biasInitializer: Initializers.None(),
                                   device: m_device,
                                   dataType: m_dataType);

            var actual = Evaluate(sut, inputVariable, data);

            var expected = new float[] { 2, 2 };

            CollectionAssert.AreEqual(expected, actual);
        }