thrownewIllegalArgumentException("The image has an unsupported type: "+ndarray.dataType().toString());
thrownewIllegalArgumentException("The image has an unsupported type: "+Util.getTypeFromInterval(rai).getClass().toString());
}
}
}
}
/**
/**
* Creates a unsigned byte-typed {@link Tensor} based on the provided {@link INDArray} and the desired dimension order for the resulting tensor.
* Creates a unsigned byte-typed {@link Tensor} based on the provided {@link RandomAccessibleInterval} and the desired dimension order for the resulting tensor.
*
*
* @param ndarray
* @param ndarray
* The sequence to be converted.
* The sequence to be converted.
...
@@ -68,17 +79,16 @@ public final class TensorBuilder
...
@@ -68,17 +79,16 @@ public final class TensorBuilder
* Creates a integer-typed {@link Tensor} based on the provided {@link INDArray} and the desired dimension order for the resulting tensor.
* Creates a integer-typed {@link Tensor} based on the provided {@link RandomAccessibleInterval} and the desired dimension order for the resulting tensor.
*
*
* @param ndarray
* @param ndarray
* The sequence to be converted.
* The sequence to be converted.
...
@@ -86,17 +96,16 @@ public final class TensorBuilder
...
@@ -86,17 +96,16 @@ public final class TensorBuilder
* Creates a float-typed {@link Tensor} based on the provided {@link INDArray} and the desired dimension order for the resulting tensor.
* Creates a float-typed {@link Tensor} based on the provided {@link RandomAccessibleInterval} and the desired dimension order for the resulting tensor.
*
*
* @param ndarray
* @param ndarray
* The sequence to be converted.
* The sequence to be converted.
...
@@ -104,17 +113,16 @@ public final class TensorBuilder
...
@@ -104,17 +113,16 @@ public final class TensorBuilder
* Creates a double-typed {@link Tensor} based on the provided {@link INDArray} and the desired dimension order for the resulting tensor.
* Creates a double-typed {@link Tensor} based on the provided {@link RandomAccessibleInterval} and the desired dimension order for the resulting tensor.
*
*
* @param ndarray
* @param ndarray
* The ndarray to be converted.
* The ndarray to be converted.
...
@@ -122,12 +130,11 @@ public final class TensorBuilder
...
@@ -122,12 +130,11 @@ public final class TensorBuilder