Skip to content

Conversation

@tzolov
Copy link
Contributor

@tzolov tzolov commented Oct 8, 2024

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

Resolves #1427

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

 Resolves spring-projects#1427
@tzolov tzolov added bug Something isn't working embedding onxx labels Oct 8, 2024
@tzolov tzolov added this to the 1.0.0-M3 milestone Oct 8, 2024
@markpollack
Copy link
Member

merged in 7ed73e8

@markpollack markpollack closed this Oct 8, 2024
@markpollack markpollack self-assigned this Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working embedding onxx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native Memory Leak by EmbeddingModel.embed(someText)

2 participants