Remove unnecessary resource cleanup in TransformersEmbeddingModel
This commit is contained in:
@@ -340,17 +340,6 @@ public class TransformersEmbeddingModel extends AbstractEmbeddingModel implement
|
||||
}
|
||||
}
|
||||
}
|
||||
finally {
|
||||
if (!inputIds.isClosed()) {
|
||||
inputIds.close();
|
||||
}
|
||||
if (!attentionMask.isClosed()) {
|
||||
attentionMask.close();
|
||||
}
|
||||
if (!tokenTypeIds.isClosed()) {
|
||||
tokenTypeIds.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (OrtException ex) {
|
||||
|
||||
Reference in New Issue
Block a user