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.

GlobalPooling2D.cs 637 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using Tensorflow.Keras.ArgsDefinition;
  5. using Tensorflow.Keras.Engine;
  6. using Tensorflow.Keras.Utils;
  7. namespace Tensorflow.Keras.Layers
  8. {
  9. public abstract class GlobalPooling2D : Layer
  10. {
  11. Pooling2DArgs args;
  12. protected string data_format => args.DataFormat;
  13. protected InputSpec input_spec;
  14. public GlobalPooling2D(Pooling2DArgs args) : base(args)
  15. {
  16. this.args = args;
  17. args.DataFormat = conv_utils.normalize_data_format(data_format);
  18. input_spec = new InputSpec(ndim: 4);
  19. }
  20. }
  21. }