Library/ManagedCuda/CudaDNN/TensorDescriptor.cs
/// <summary>
/// This function returns the size of the tensor in memory in respect to the given descriptor.
/// This function can be used to know the amount of GPU memory to be allocated to hold that tensor.
/// </summary>
/// <returns>Size in bytes needed to hold the tensor in GPU memory.</returns>
This function returns the size of the tensor in memory in respect to the given descriptor.
This function can be used to know the amount of GPU memory to be allocated to hold that tensor.
This function returns the size of the tensor in memory in respect to the given descriptor . This function can be used to know the amount of GPU memory to be allocated to hold that tensor .
public SizeT GetTensorSizeInBytes()
        {
            SizeT retVal = 0;
            res = CudaDNNNativeMethods.cudnnGetTensorSizeInBytes(_desc, ref retVal);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnGetTensorSizeInBytes", res));
            if (res != cudnnStatus.Success) throw new CudaDNNException(res);
            return retVal;
        }
public SizeT GetTensorSizeInBytes ( ) { SizeT retVal = 0 ; res = CudaDNNNativeMethods . cudnnGetTensorSizeInBytes ( _desc , ref retVal ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != cudnnStatus . Success ) throw new CudaDNNException ( res ) ; return retVal ; }
This function returns the size of the tensor in memory in respect to the given descriptor.
This function returns the size of the tensor in memory in respect to the given descriptor .
Size in bytes needed to hold the tensor in GPU memory.
Size in bytes needed to hold the tensor in GPU memory .