예제 #1
0
 /// <summary>
 /// Evaluates the specified write target.
 /// </summary>
 /// <param name="writeTarget">The write target.</param>
 /// <returns>Tensor.</returns>
 public override NDArray Evaluate(NDArray writeTarget)
 {
     if (writeTarget != null)
     {
         writeTarget.CopyFrom(array);
         return(writeTarget);
     }
     else
     {
         return(NDArray.FromArray(allocator, array));
     }
 }