Browse Source

implemented math_ops.square

tags/v0.8.0
Bo Peng 6 years ago
parent
commit
4481d19055
2 changed files with 8 additions and 1 deletions
  1. +7
    -0
      src/TensorFlowNET.Core/Operations/gen_math_ops.cs
  2. +1
    -1
      src/TensorFlowNET.Core/Operations/math_ops.py.cs

+ 7
- 0
src/TensorFlowNET.Core/Operations/gen_math_ops.cs View File

@@ -48,6 +48,13 @@ namespace Tensorflow
return _op.outputs[0];
}
public static Tensor square(Tensor x, string name = null)
{
var _op = _op_def_lib._apply_op_helper("Square", name, args: new { x });
return _op.outputs[0];
}
public static Tensor cast(Tensor x, TF_DataType DstT, bool Truncate= false, string name= "")
{
var _op = _op_def_lib._apply_op_helper("Cast", name, args: new { x, DstT, Truncate });


+ 1
- 1
src/TensorFlowNET.Core/Operations/math_ops.py.cs View File

@@ -57,7 +57,7 @@ namespace Tensorflow

public static Tensor square(Tensor x, string name = null)
{
throw new NotImplementedException();
return gen_math_ops.square(x, name);
}

/// <summary>


Loading…
Cancel
Save