Skip to content

Commit 6375b7c

Browse files
committed
correct switch
1 parent e74afb2 commit 6375b7c

File tree

1 file changed

+5
-0
lines changed
  • src/main/java/io/bioimage/modelrunner/tensorflow/v2/api020/shm

1 file changed

+5
-0
lines changed

Diff for: src/main/java/io/bioimage/modelrunner/tensorflow/v2/api020/shm/ShmBuilder.java

+5
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,19 @@ public static void build(Tensor<? extends TType> tensor, String memoryName) thr
7373
{
7474
case TUint8.NAME:
7575
buildFromTensorUByte((Tensor<TUint8>) tensor, memoryName);
76+
break;
7677
case TInt32.NAME:
7778
buildFromTensorInt((Tensor<TInt32>) tensor, memoryName);
79+
break;
7880
case TFloat32.NAME:
7981
buildFromTensorFloat((Tensor<TFloat32>) tensor, memoryName);
82+
break;
8083
case TFloat64.NAME:
8184
buildFromTensorDouble((Tensor<TFloat64>) tensor, memoryName);
85+
break;
8286
case TInt64.NAME:
8387
buildFromTensorLong((Tensor<TInt64>) tensor, memoryName);
88+
break;
8489
default:
8590
throw new IllegalArgumentException("Unsupported tensor type: " + tensor.dataType().name());
8691
}

0 commit comments

Comments
 (0)