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.

KerasApi.cs 791 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Data;
  3. using Tensorflow.Keras;
  4. using Tensorflow.Keras.ArgsDefinition;
  5. using Tensorflow.Keras.Datasets;
  6. using Tensorflow.Keras.Engine;
  7. using Tensorflow.Keras.Layers;
  8. using Tensorflow.Operations.Activation;
  9. namespace Tensorflow
  10. {
  11. public class KerasApi
  12. {
  13. public KerasDataset datasets { get; } = new KerasDataset();
  14. public Initializers initializers { get; } = new Initializers();
  15. public Layers layers { get; } = new Layers();
  16. public class Layers
  17. {
  18. public ILayer Dense(int units,
  19. IActivation activation = null)
  20. => new Dense(new DenseArgs
  21. {
  22. Units = units,
  23. Activation = activation
  24. });
  25. }
  26. }
  27. }