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.

ExecuteOpArgs.cs 711 B

4 years ago
4 years ago
4 years ago
12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using System.Text;
  5. using static Tensorflow.Binding;
  6. namespace Tensorflow
  7. {
  8. public class ExecuteOpArgs
  9. {
  10. public Func<Operation, object> GetGradientAttrs { get; set; }
  11. public object[] OpInputArgs { get; set; }
  12. public Dictionary<string, object> OpAttrs { get; set; }
  13. [DebuggerStepThrough]
  14. public ExecuteOpArgs(params object[] inputArgs)
  15. {
  16. OpInputArgs = inputArgs;
  17. }
  18. [DebuggerStepThrough]
  19. public ExecuteOpArgs SetAttributes(object attrs)
  20. {
  21. OpAttrs = ConvertToDict(attrs);
  22. return this;
  23. }
  24. }
  25. }