diff --git a/src/TensorFlowNET.Core/APIs/tf.debugging.cs b/src/TensorFlowNET.Core/APIs/tf.debugging.cs new file mode 100644 index 00000000..8e220594 --- /dev/null +++ b/src/TensorFlowNET.Core/APIs/tf.debugging.cs @@ -0,0 +1,44 @@ +/***************************************************************************** + Copyright 2018 The TensorFlow.NET Authors. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +******************************************************************************/ + +namespace Tensorflow +{ + public partial class tensorflow + { + /// + /// Assert the condition `x == y` holds element-wise. + /// + /// + /// + /// + /// + /// + /// + /// + /// + public Tensor assert_equal(T1 t1, + T2 t2, + object[] data = null, + string message = null, + string name = null) + => check_ops.assert_equal(t1, + t2, + data: data, + message: message, + name: name); + + } +} diff --git a/src/TensorFlowNET.Core/Operations/check_ops.cs b/src/TensorFlowNET.Core/Operations/check_ops.cs index 8b670640..ef2ea3b6 100644 --- a/src/TensorFlowNET.Core/Operations/check_ops.cs +++ b/src/TensorFlowNET.Core/Operations/check_ops.cs @@ -26,7 +26,7 @@ namespace Tensorflow /// /// /// - public static Operation assert_equal(object t1, object t2, object[] data = null, string message = null, string name = null) + public static Operation assert_equal(T1 t1, T2 t2, object[] data = null, string message = null, string name = null) { if (message == null) message = "";