Class DiffWaveNetwork<T>
DiffWave neural network with dilated convolutions.
public class DiffWaveNetwork<T>
Type Parameters
TThe numeric type.
- Inheritance
-
DiffWaveNetwork<T>
- Inherited Members
Constructors
DiffWaveNetwork(int, int, int, int, int?)
Initializes a new DiffWaveNetwork.
public DiffWaveNetwork(int residualChannels = 64, int residualLayers = 30, int dilationCycle = 10, int melChannels = 80, int? seed = null)
Parameters
Properties
ParameterCount
Gets the number of parameters.
public int ParameterCount { get; }
Property Value
Methods
Forward(Tensor<T>, int, Tensor<T>?)
Forward pass through the network.
public Tensor<T> Forward(Tensor<T> audio, int timestep, Tensor<T>? melCondition)
Parameters
audioTensor<T>timestepintmelConditionTensor<T>
Returns
- Tensor<T>
GetParameters()
Gets all parameters.
public Vector<T> GetParameters()
Returns
- Vector<T>
SetParameters(Vector<T>)
Sets all parameters.
public void SetParameters(Vector<T> parameters)
Parameters
parametersVector<T>