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.

SafeFuncGraphHandle.cs 396 B

12345678910111213141516171819202122
  1. using Tensorflow.Util;
  2. namespace Tensorflow;
  3. public sealed class SafeFuncGraphHandle : SafeTensorflowHandle
  4. {
  5. private SafeFuncGraphHandle()
  6. {
  7. }
  8. public SafeFuncGraphHandle(IntPtr handle)
  9. : base(handle)
  10. {
  11. }
  12. protected override bool ReleaseHandle()
  13. {
  14. c_api.TF_DeleteFunction(handle);
  15. SetHandle(IntPtr.Zero);
  16. return true;
  17. }
  18. }