@@ -14,6 +14,7 @@ You may obtain a copy of the License at
1414 limitations under the License.
1515******************************************************************************/
1616
17+ using Tensorflow . NumPy ;
1718using Tensorflow . Operations ;
1819
1920namespace Tensorflow
@@ -42,7 +43,6 @@ public Tensor erf(Tensor x, string name = null)
4243
4344 public Tensor multiply ( Tensor x , Tensor y , string name = null )
4445 => math_ops . multiply ( x , y , name : name ) ;
45-
4646 public Tensor divide_no_nan ( Tensor a , Tensor b , string name = null )
4747 => math_ops . div_no_nan ( a , b ) ;
4848
@@ -452,7 +452,18 @@ public Tensor multiply(Tensor x, Tensor y, string name = null)
452452 /// <returns></returns>
453453 public Tensor multiply < Tx , Ty > ( Tx x , Ty y , string name = null )
454454 => gen_math_ops . mul ( ops . convert_to_tensor ( x ) , ops . convert_to_tensor ( y ) , name : name ) ;
455-
455+ /// <summary>
456+ /// return scalar product
457+ /// </summary>
458+ /// <typeparam name="Tx"></typeparam>
459+ /// <typeparam name="Ty"></typeparam>
460+ /// <param name="x"></param>
461+ /// <param name="y"></param>
462+ /// <param name="axes"></param>
463+ /// <param name="name"></param>
464+ /// <returns></returns>
465+ public Tensor dot_prod < Tx , Ty > ( Tx x , Ty y , NDArray axes , string name = null )
466+ => math_ops . tensordot ( convert_to_tensor ( x ) , convert_to_tensor ( y ) , axes , name : name ) ;
456467 public Tensor negative ( Tensor x , string name = null )
457468 => gen_math_ops . neg ( x , name ) ;
458469
0 commit comments