|
| 1 | +using System; |
| 2 | +using static Tensorflow.Binding; |
| 3 | + |
| 4 | +namespace Tensorflow.Keras.ArgsDefinition |
| 5 | +{ |
| 6 | + public class EinsumDenseArgs : LayerArgs |
| 7 | + { |
| 8 | + /// <summary> |
| 9 | + /// An equation describing the einsum to perform. This equation must |
| 10 | + /// be a valid einsum string of the form `ab,bc->ac`, `...ab,bc->...ac`, or |
| 11 | + /// `ab...,bc->ac...` where 'ab', 'bc', and 'ac' can be any valid einsum axis |
| 12 | + /// expression sequence. |
| 13 | + /// </summary> |
| 14 | + public string Equation { get; set; } |
| 15 | + |
| 16 | + /// <summary> |
| 17 | + /// The expected shape of the output tensor (excluding the batch |
| 18 | + /// dimension and any dimensions represented by ellipses). You can specify |
| 19 | + /// None for any dimension that is unknown or can be inferred from the input |
| 20 | + /// shape. |
| 21 | + /// </summary> |
| 22 | + public Shape OutputShape { get; set; } |
| 23 | + |
| 24 | + /// <summary> |
| 25 | + /// A string containing the output dimension(s) to apply a bias to. |
| 26 | + /// Each character in the `bias_axes` string should correspond to a character |
| 27 | + /// in the output portion of the `equation` string. |
| 28 | + /// </summary> |
| 29 | + public string BiasAxes { get; set; } = null; |
| 30 | + |
| 31 | + /// <summary> |
| 32 | + /// Activation function to use. |
| 33 | + /// </summary> |
| 34 | + public Activation Activation { get; set; } |
| 35 | + |
| 36 | + /// <summary> |
| 37 | + /// Initializer for the `kernel` weights matrix. |
| 38 | + /// </summary> |
| 39 | + public IInitializer KernelInitializer { get; set; } = tf.glorot_uniform_initializer; |
| 40 | + |
| 41 | + /// <summary> |
| 42 | + /// Initializer for the bias vector. |
| 43 | + /// </summary> |
| 44 | + public IInitializer BiasInitializer { get; set; } = tf.zeros_initializer; |
| 45 | + |
| 46 | + /// <summary> |
| 47 | + /// Regularizer function applied to the `kernel` weights matrix. |
| 48 | + /// </summary> |
| 49 | + public IRegularizer KernelRegularizer { get; set; } |
| 50 | + |
| 51 | + /// <summary> |
| 52 | + /// Regularizer function applied to the bias vector. |
| 53 | + /// </summary> |
| 54 | + public IRegularizer BiasRegularizer { get; set; } |
| 55 | + |
| 56 | + /// <summary> |
| 57 | + /// Constraint function applied to the `kernel` weights matrix. |
| 58 | + /// </summary> |
| 59 | + public Action KernelConstraint { get; set; } |
| 60 | + |
| 61 | + /// <summary> |
| 62 | + /// Constraint function applied to the bias vector. |
| 63 | + /// </summary> |
| 64 | + public Action BiasConstraint { get; set; } |
| 65 | + } |
| 66 | +} |
0 commit comments