You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

SafeTfLiteInterpreterOptionsHandle.cs 592 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using Tensorflow.Util;
  5. namespace Tensorflow.Lite
  6. {
  7. public class SafeTfLiteInterpreterOptionsHandle : SafeTensorflowHandle
  8. {
  9. protected SafeTfLiteInterpreterOptionsHandle()
  10. {
  11. }
  12. public SafeTfLiteInterpreterOptionsHandle(IntPtr handle)
  13. : base(handle)
  14. {
  15. }
  16. protected override bool ReleaseHandle()
  17. {
  18. c_api_lite.TfLiteInterpreterOptionsDelete(handle);
  19. SetHandle(IntPtr.Zero);
  20. return true;
  21. }
  22. }
  23. }