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.

EagerOperation.cs 1.1 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Tensorflow.Eager
  5. {
  6. public class EagerOperation : Operation
  7. {
  8. public int NumInputs;
  9. public Tensor[] Inputs { get; set; }
  10. public int NumOutputs;
  11. public Tensor[] Outputs { get; set; }
  12. public int[] SkipInputIndices { get; set; }
  13. public EagerOperation() : base(IntPtr.Zero) { }
  14. public override InputList inputs
  15. {
  16. get
  17. {
  18. if (_inputs_val == null)
  19. {
  20. var retval = new Tensor[NumInputs];
  21. for (int i = 0; i < NumInputs; i++)
  22. {
  23. }
  24. _inputs_val = new InputList(Inputs);
  25. }
  26. return _inputs_val;
  27. }
  28. }
  29. public override Tensor[] outputs
  30. {
  31. get
  32. {
  33. if (_outputs == null)
  34. {
  35. _outputs = Outputs;
  36. }
  37. return _outputs;
  38. }
  39. }
  40. }
  41. }