|
1234567891011121314151617181920212223 |
- using System;
- using static Tensorflow.Binding;
-
- namespace Tensorflow.Keras
- {
- public partial class Activations
- {
- public Activation Tanh = (features, name) =>
- {
- if (tf.executing_eagerly())
- {
- var results = tf.Runner.TFE_FastPathExecute(tf.Context, tf.Context.DeviceName,
- "Tanh", name,
- null,
- features);
-
- return results[0];
- }
-
- throw new NotImplementedException("");
- };
- }
- }
|