Esempio n. 1
0
 public static ConstantTensor Constant <T>(T value)
 {
     return(TensorFlow.Constant(value, typeof(T)));
 }
Esempio n. 2
0
        public static VariableTensor Assign(VariableTensor tensor, float value)
        {
            Matrix <float> matrixValue = Matrix <float> .Build.Dense(1, 1, value);

            return(TensorFlow.Assign(tensor, matrixValue));
        }