Esempio n. 1
0
 /// <inheritdoc/>
 Tensor IOps.ConstantOfShape(TensorShape X, DataType type, float value)
 {
     LogLayerSummary($"ConstantOfShape {value}");
     var O = m_Ops.ConstantOfShape(X, type, value);
     LogOutputTensorSummary(O, Prefix + nameof(IOps.ConstantOfShape));
     return O;
 }
Esempio n. 2
0
        /// <inheritdoc/>
        Tensor IOps.ConstantOfShape(TensorShape X, float value)
        {
            var O = m_Ops.ConstantOfShape(X, value);

            Elementwise(O);
            return(O);
        }
Esempio n. 3
0
        /// <inheritdoc/>
        Tensor IOps.ConstantOfShape(TensorShape X, float value)
        {
            var Y = m_Ops1.ConstantOfShape(X, value);
            var Z = m_Ops2.ConstantOfShape(X, value);

            CheckSame(Y, Z, Layer.Type.ConstantOfShape);
            return(Y);
        }
        /// <inheritdoc/>
        Tensor IOps.ConstantOfShape(TensorShape X, float value)
        {
            Debug.Log($"ConstantOfShape {value}");
            var O = m_Ops.ConstantOfShape(X, value);

            O.PrintDataPart(32, Prefix + nameof(IOps.ConstantOfShape));
            return(O);
        }
Esempio n. 5
0
        /// <inheritdoc/>
        Tensor IOps.ConstantOfShape(TensorShape X, float value)
        {
            var O = m_Ops.ConstantOfShape(X, value);

            Elementwise(O);
            RegisterLayerStats();
            return(O);
        }