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.

Binding.FuncTools.cs 616 B

12345678910111213141516171819202122232425
  1. using System;
  2. namespace Tensorflow
  3. {
  4. public static partial class Binding
  5. {
  6. public static class functools
  7. {
  8. public static PartialFunc<Tin, Tout> partial<Tin, Tout>(Func<Tin, Tout> func, Tin arg)
  9. => new PartialFunc<Tin, Tout>
  10. {
  11. args = arg,
  12. invoke = func
  13. };
  14. }
  15. public class PartialFunc<Tin, Tout>
  16. {
  17. public Tin args { get; set; }
  18. public object[] keywords { get; set; }
  19. public Func<Tin, Tout> invoke { get; set; }
  20. }
  21. }
  22. }