• Prevent potential resource leaks
  • Wrap OnnxTensor creation in try-with-resources block
  • Explicitly close inputIds, attentionMask, and tokenTypeIds tensors

Resolves #1427

Comment From: markpollack

merged in 7ed73e847807160c4cf64d8a8af7beaa255c1d57