Beispiel #1
0
 /// <summary>
 /// Products all.
 /// </summary>
 /// <param name="result">The result.</param>
 /// <param name="src">The source.</param>
 /// <returns>Tensor.</returns>
 public static NDArray Prod(NDArray src)
 {
     return((NDArray)OpRegistry.Invoke("prodall", null, src));
 }
Beispiel #2
0
 public static Tensor Pow(Tensor result, Tensor src, float value)
 {
     return((Tensor)OpRegistry.Invoke("pow", result, src, value));
 }
Beispiel #3
0
 public static Tensor Lerp(Tensor result, Tensor srcA, Tensor srcB, float weight)
 {
     return((Tensor)OpRegistry.Invoke("lerp", result, srcA, srcB));
 }
Beispiel #4
0
 public static Tensor AddTanh(Tensor result, Tensor x, Tensor y)
 {
     return((Tensor)OpRegistry.Invoke("addtanh", result, x, y));
 }
Beispiel #5
0
 public static Tensor AddMulV(Tensor result, Tensor x, Tensor y, float z)
 {
     return((Tensor)OpRegistry.Invoke("addmulv", result, x, y, z));
 }
Beispiel #6
0
 public static Tensor Tanh(Tensor result, Tensor src)
 {
     return((Tensor)OpRegistry.Invoke("tanh", result, src));
 }
Beispiel #7
0
 public static Tensor SigmoidD(Tensor result, Tensor resW, Tensor resG)
 {
     return((Tensor)OpRegistry.Invoke("sigmoidD", result, resW, resG));
 }
Beispiel #8
0
 public static Tensor Rsqrt(Tensor result, Tensor src)
 {
     return((Tensor)OpRegistry.Invoke("rsqrt", result, src));
 }
Beispiel #9
0
 public static Tensor Exp(Tensor result, Tensor src)
 {
     return((Tensor)OpRegistry.Invoke("exp", result, src));
 }
Beispiel #10
0
 public static Tensor Relu(Tensor result, Tensor src)
 {
     return((Tensor)OpRegistry.Invoke("relu", result, src));
 }
Beispiel #11
0
 public static Tensor AddReluD(Tensor result, Tensor t, Tensor w, Tensor g)
 {
     return((Tensor)OpRegistry.Invoke("addrelud", result, t, w, g));
 }
Beispiel #12
0
 public static Tensor Neg(Tensor result, Tensor src)
 {
     return((Tensor)OpRegistry.Invoke("neg", result, src));
 }
Beispiel #13
0
 public static Tensor AddmmBatch(Tensor result, float beta, Tensor src, float alpha, Tensor m1, Tensor m2)
 {
     return((Tensor)OpRegistry.Invoke("addmmbatch", result, beta, src, alpha, m1, m2));
 }
Beispiel #14
0
 /// <summary>
 /// Maximums all.
 /// </summary>
 /// <param name="result">The result.</param>
 /// <param name="src">The source.</param>
 /// <returns>Tensor.</returns>
 public static NDArray Max(NDArray src)
 {
     return((NDArray)OpRegistry.Invoke("maxall", null, src));
 }
Beispiel #15
0
 public static Tensor Atan(Tensor result, Tensor src)
 {
     return((Tensor)OpRegistry.Invoke("atan", result, src));
 }
Beispiel #16
0
 public static Tensor Log1p(Tensor result, Tensor src)
 {
     return((Tensor)OpRegistry.Invoke("log1p", result, src));
 }
Beispiel #17
0
 public static Tensor Cosh(Tensor result, Tensor src)
 {
     return((Tensor)OpRegistry.Invoke("cosh", result, src));
 }
Beispiel #18
0
 public static Tensor Floor(Tensor result, Tensor src)
 {
     return((Tensor)OpRegistry.Invoke("floor", result, src));
 }
Beispiel #19
0
 public static Tensor Sigmoid(Tensor result, Tensor src)
 {
     return((Tensor)OpRegistry.Invoke("sigmoid", result, src));
 }
Beispiel #20
0
 public static Tensor Ceil(Tensor result, Tensor src)
 {
     return((Tensor)OpRegistry.Invoke("ceil", result, src));
 }
Beispiel #21
0
 public static Tensor TanhD(Tensor result, Tensor resW, Tensor resG)
 {
     return((Tensor)OpRegistry.Invoke("tanhD", result, resW, resG));
 }
Beispiel #22
0
 public static Tensor Round(Tensor result, Tensor src)
 {
     return((Tensor)OpRegistry.Invoke("round", result, src));
 }
Beispiel #23
0
 public static Tensor MulMulAdd(Tensor result, Tensor x, Tensor y, Tensor z, Tensor w)
 {
     return((Tensor)OpRegistry.Invoke("mulmuladd", result, x, y, z, w));
 }
Beispiel #24
0
 public static Tensor Trunc(Tensor result, Tensor src)
 {
     return((Tensor)OpRegistry.Invoke("trunc", result, src));
 }
Beispiel #25
0
 public static Tensor Atan2(Tensor result, Tensor srcY, Tensor srcX)
 {
     return((Tensor)OpRegistry.Invoke("atan2", result, srcY, srcX));
 }
Beispiel #26
0
 public static Tensor Frac(Tensor result, Tensor src)
 {
     return((Tensor)OpRegistry.Invoke("frac", result, src));
 }
Beispiel #27
0
 public static Tensor Tpow(Tensor result, float value, Tensor src)
 {
     return((Tensor)OpRegistry.Invoke("tpow", result, value, src));
 }
Beispiel #28
0
 public static Tensor Acos(Tensor result, Tensor src)
 {
     return((Tensor)OpRegistry.Invoke("acos", result, src));
 }
Beispiel #29
0
 public static Tensor Clamp(Tensor result, Tensor src, float min, float max)
 {
     return((Tensor)OpRegistry.Invoke("clamp", result, src, min, max));
 }
Beispiel #30
0
 /// <summary>
 /// Sums all.
 /// </summary>
 /// <param name="result">The result.</param>
 /// <param name="src">The source.</param>
 /// <returns>Tensor.</returns>
 public static NDArray Sum(NDArray src)
 {
     return((NDArray)OpRegistry.Invoke("sumall", null, src));
 }