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.

Activations.Tanh.cs 547 B

5 years ago
1234567891011121314151617181920212223
  1. using System;
  2. using static Tensorflow.Binding;
  3. namespace Tensorflow.Keras
  4. {
  5. public partial class Activations
  6. {
  7. public Activation Tanh = (features, name) =>
  8. {
  9. if (tf.executing_eagerly())
  10. {
  11. var results = tf.Runner.TFE_FastPathExecute(tf.Context, tf.Context.DeviceName,
  12. "Tanh", name,
  13. null,
  14. features);
  15. return results[0];
  16. }
  17. throw new NotImplementedException("");
  18. };
  19. }
  20. }