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.

LayersApi.Attention.cs 750 B

12345678910111213141516171819202122232425
  1. using System;
  2. using Tensorflow.NumPy;
  3. using System.Collections.Generic;
  4. using Tensorflow.Keras.ArgsDefinition;
  5. using Tensorflow.Keras.Engine;
  6. using static Tensorflow.Binding;
  7. using static Tensorflow.KerasApi;
  8. namespace Tensorflow.Keras.Layers
  9. {
  10. public partial class LayersApi
  11. {
  12. public Attention Attention(bool use_scale = false,
  13. string score_mode = "dot",
  14. bool causal = false,
  15. float dropout = 0f) =>
  16. new Attention(new AttentionArgs
  17. {
  18. use_scale = use_scale,
  19. score_mode = score_mode,
  20. causal = causal,
  21. dropout = dropout
  22. });
  23. }
  24. }