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 718 B

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