From 422a98d7372670a7ca14c0a145e754251cbef280 Mon Sep 17 00:00:00 2001
From: carlosuc3m <100329787@alumnos.uc3m.es>
Date: Wed, 13 Jul 2022 21:38:53 +0200
Subject: [PATCH] refactor class

---
 .../icy/tensorflow/v1/tensor/TensorBuilder.java        | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/bioimageanalysis/icy/tensorflow/v1/tensor/TensorBuilder.java b/src/main/java/org/bioimageanalysis/icy/tensorflow/v1/tensor/TensorBuilder.java
index 931abdc..137533c 100644
--- a/src/main/java/org/bioimageanalysis/icy/tensorflow/v1/tensor/TensorBuilder.java
+++ b/src/main/java/org/bioimageanalysis/icy/tensorflow/v1/tensor/TensorBuilder.java
@@ -5,7 +5,7 @@ import java.nio.DoubleBuffer;
 import java.nio.FloatBuffer;
 import java.nio.IntBuffer;
 
-import org.bioimageanalysis.icy.deeplearning.tensor.RaiToArray;
+import org.bioimageanalysis.icy.deeplearning.tensor.RaiArrayUtils;
 import org.tensorflow.Tensor;
 import org.tensorflow.types.UInt8;
 
@@ -81,7 +81,7 @@ public final class TensorBuilder
      */
     private static <T extends Type<T>>  Tensor<UInt8> buildByte(RandomAccessibleInterval<ByteType> ndarray)
     {
-    	byte[] arr = RaiToArray.byteArray(ndarray);
+    	byte[] arr = RaiArrayUtils.byteArray(ndarray);
     	ByteBuffer buff = ByteBuffer.wrap(arr);
 		Tensor<UInt8> tensor = Tensor.create(UInt8.class, ndarray.dimensionsAsLongArray(), buff);
 		return tensor;
@@ -98,7 +98,7 @@ public final class TensorBuilder
      */
     private static <T extends Type<T>> Tensor<Integer> buildInt(RandomAccessibleInterval<IntType> ndarray)
     {
-    	int[] arr = RaiToArray.intArray(ndarray);
+    	int[] arr = RaiArrayUtils.intArray(ndarray);
     	IntBuffer buff = IntBuffer.wrap(arr);
 		Tensor<Integer> tensor = Tensor.create(ndarray.dimensionsAsLongArray(), buff);
 		return tensor;
@@ -115,7 +115,7 @@ public final class TensorBuilder
      */
     private static <T extends Type<T>>  Tensor<Float> buildFloat(RandomAccessibleInterval<FloatType> ndarray)
     {
-    	float[] arr = RaiToArray.floatArray(ndarray);
+    	float[] arr = RaiArrayUtils.floatArray(ndarray);
     	FloatBuffer buff = FloatBuffer.wrap(arr);
 		Tensor<Float> tensor = Tensor.create(ndarray.dimensionsAsLongArray(), buff);
 		return tensor;
@@ -132,7 +132,7 @@ public final class TensorBuilder
      */
     private static <T extends Type<T>>  Tensor<Double> buildDouble(RandomAccessibleInterval<DoubleType> ndarray)
     {
-    	double[] arr = RaiToArray.doubleArray(ndarray);
+    	double[] arr = RaiArrayUtils.doubleArray(ndarray);
     	DoubleBuffer buff = DoubleBuffer.wrap(arr);
 		Tensor<Double> tensor = Tensor.create(ndarray.dimensionsAsLongArray(), buff);
 		return tensor;
-- 
GitLab