Backends/SiaNet.Backend.TensorSharp/Cuda/KernelOps/ReductionOp.cs
/// <summary>
/// Throws if any tensor invalid.
/// </summary>
/// <param name="args">The arguments.</param>
/// <exception cref="InvalidOperationException">Tensors with dimension count > " + TSCudaContext.MaxDims + " are not supported</exception>
Throws if any tensor invalid.
Throws if any tensor invalid .
private static void ThrowIfAnyTensorInvalid(params NDArray[] args)
        {
            foreach (var tensor in args)
            {
                if (tensor.DimensionCount > TSCudaContext.MaxDims)
                    throw new InvalidOperationException("Tensors with dimension count > " + TSCudaContext.MaxDims + " are not supported");
            }
        }
private static void ThrowIfAnyTensorInvalid ( params NDArray [ ] args ) { foreach ( var tensor in args ) { if ( tensor . DimensionCount > TSCudaContext . MaxDims ) throw new InvalidOperationException ( " " + TSCudaContext . MaxDims + " " ) ; } }
Throws if any tensor invalid.
Throws if any tensor invalid .
Tensors with dimension count > " + TSCudaContext.MaxDims + " are not supported
Tensors with dimension count > " + TSCudaContext . MaxDims + " are not supported
args
None