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.

SessionRunContext.cs 714 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Tensorflow.Train
  5. {
  6. public class SessionRunContext
  7. {
  8. SessionRunArgs _original_args;
  9. public SessionRunArgs original_args => _original_args;
  10. Session _session;
  11. public Session session => _session;
  12. bool _stop_requested;
  13. public bool stop_requested => _stop_requested;
  14. public SessionRunContext(SessionRunArgs original_args, Session session)
  15. {
  16. _original_args = original_args;
  17. _session = session;
  18. _stop_requested = false;
  19. }
  20. public void request_stop()
  21. {
  22. _stop_requested = true;
  23. }
  24. }
  25. }