Skip to content

Commit

Permalink
try cast unchecked
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Sep 30, 2024
1 parent 07bd676 commit ff30810
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import net.imglib2.type.NativeType;
import net.imglib2.type.numeric.RealType;
import net.imglib2.type.numeric.real.FloatType;
import net.imglib2.util.Cast;
import net.imglib2.util.Util;

/**
Expand Down Expand Up @@ -135,7 +136,7 @@ void loadAndRunTf2() throws LoadEngineException, Exception {
// and add it to the list of input tensors
Tensor<FloatType> inpTensor = Tensor.build("input_1", "bxyc", img1);
List<Tensor<T>> inputs = new ArrayList<Tensor<T>>();
inputs.add((Tensor<T>) inpTensor);
inputs.add(Cast.unchecked(inpTensor));

// Create the output tensors defined in the rdf.yaml file with their corresponding
// name and axes and add them to the output list of tensors.
Expand Down

0 comments on commit ff30810

Please sign in to comment.