Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Map2SequenceLayer"/> class, using the specified architecture.
 /// </summary>
 /// <param name="shape">The shape of the layer's input tensor.</param>
 /// <param name="architecture">The layer architecture.</param>
 /// <param name="random">The random numbers generator.</param>
 public Map2SequenceLayer(Shape shape, string architecture, RandomNumberGenerator <float> random)
     : base(1, Map2SequenceLayer.CalculateOutputShape(shape))
 {
     Layer.ParseArchitecture(architecture, Map2SequenceLayer.ArchitecturePattern);
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Map2SequenceLayer"/> class, using the existing <see cref="Map2SequenceLayer"/> object.
 /// </summary>
 /// <param name="other">The <see cref="Map2SequenceLayer"/> to copy the data from.</param>
 public Map2SequenceLayer(Map2SequenceLayer other)
     : base(other)
 {
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Map2SequenceLayer"/> class.
 /// </summary>
 /// <param name="shape">The shape of the layer's input tensor.</param>
 public Map2SequenceLayer(Shape shape)
     : base(1, Map2SequenceLayer.CalculateOutputShape(shape))
 {
 }