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.

Preprocessing.Resizing.cs 739 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.IO;
  3. using Tensorflow.Keras.ArgsDefinition;
  4. using Tensorflow.Keras.Layers;
  5. using static Tensorflow.KerasApi;
  6. namespace Tensorflow.Keras
  7. {
  8. public partial class Preprocessing
  9. {
  10. /// <summary>
  11. /// Image resizing layer
  12. /// </summary>
  13. /// <param name="height"></param>
  14. /// <param name="width"></param>
  15. /// <param name="interpolation"></param>
  16. /// <returns></returns>
  17. public Resizing Resizing(int height, int width, string interpolation = "bilinear")
  18. => new Resizing(new ResizingArgs
  19. {
  20. Height = height,
  21. Width = width,
  22. Interpolation = interpolation
  23. });
  24. }
  25. }