Skip to content

Commit

Permalink
correct compilation errror related to generics
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Oct 1, 2024
1 parent 1c8ea08 commit a646c1f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -720,11 +720,11 @@ void main(String[] args) throws LoadModelException, IOException, RunModelExcepti
try {
pi.loadModel(modelFolder, modelSourc);
RandomAccessibleInterval<FloatType> rai = ArrayImgs.floats(new long[] {1, 512, 512, 1});
Tensor<T> inp = (Tensor<T>) Tensor.build("aa", "byxc", rai);
Tensor<R> out = (Tensor<R>) Tensor.buildBlankTensor("oo", "bcyx", new long[] {1, 512, 512, 33}, new FloatType());
Tensor<FloatType> inp = Tensor.build("aa", "byxc", rai);
Tensor<FloatType> out = Tensor.buildBlankTensor("oo", "bcyx", new long[] {1, 512, 512, 33}, new FloatType());
//Tensor<?> out = Tensor.buildEmptyTensor("oo", "byxc");
List<Tensor<T>> ins = new ArrayList<Tensor<T>>();
List<Tensor<R>> ous = new ArrayList<Tensor<R>>();
List<Tensor<FloatType>> ins = new ArrayList<Tensor<FloatType>>();
List<Tensor<FloatType>> ous = new ArrayList<Tensor<FloatType>>();
ins.add(inp);
ous.add(out);
pi.run(ins, ous);
Expand Down

0 comments on commit a646c1f

Please sign in to comment.