Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///   Computes the kth value of all the elements of the tensor along the given dimension.
/// </summary>
/// <param name="k">The value for 'k' in 'kth'.</param>
/// <param name="dimension">The dimension to process along.</param>
/// <param name="keepdim">true if the reduction dimension should be kept, false otherwise.</param>
/// <returns>A tuple containing the values and indices of the kth element of each dimension.</returns>
Computes the kth value of all the elements of the tensor along the given dimension.
Computes the kth value of all the elements of the tensor along the given dimension .
public System.Tuple<LongTensor, LongTensor> KthValue (long k, int dimension, bool keepdim)
        {
            var values = new LongTensor ();
            var indices = new LongTensor ();
            THLongTensor_kthvalue (values.handle, indices.handle, this.handle, k, dimension, keepdim?1:0);
            return new System.Tuple<LongTensor, LongTensor>(values, indices);
        }
public System . Tuple < LongTensor , LongTensor > KthValue ( long k , int dimension , bool keepdim ) { var values = new LongTensor ( ) ; var indices = new LongTensor ( ) ; THLongTensor_kthvalue ( values . handle , indices . handle , this . handle , k , dimension , keepdim ? 1 : 0 ) ; return new System . Tuple < LongTensor , LongTensor > ( values , indices ) ; }
Computes the kth value of all the elements of the tensor along the given dimension.
Computes the kth value of all the elements of the tensor along the given dimension .
A tuple containing the values and indices of the kth element of each dimension.
A tuple containing the values and indices of the kth element of each dimension .
k
long
The value for 'k' in 'kth'.
The value for ' k ' in ' kth ' .
dimension
int
The dimension to process along.
The dimension to process along .
keepdim
bool
true if the reduction dimension should be kept, false otherwise.
true if the reduction dimension should be kept false otherwise .