removed IOException catch

Signed-off-by: raver119 <raver119@gmail.com>
master
raver119 2019-08-19 08:55:15 +03:00
parent 000334ea2a
commit 13529a71c7
1 changed files with 1 additions and 5 deletions

View File

@ -70,11 +70,7 @@ public class Nd4jSerializer extends Serializer<INDArray> {
@Override @Override
public INDArray read(Kryo kryo, Input input, Class<INDArray> type) { public INDArray read(Kryo kryo, Input input, Class<INDArray> type) {
DataInputStream dis = new DataInputStream(input); DataInputStream dis = new DataInputStream(input);
try { return Nd4j.read(dis);
return Nd4j.read(dis);
} catch (IOException e) {
throw new RuntimeException(e);
}
//Note: input should NOT be closed manually here - may be needed elsewhere (and closing here will cause serialization to fail) //Note: input should NOT be closed manually here - may be needed elsewhere (and closing here will cause serialization to fail)
} }