fix: partially fix the bug of load_modeltags/v0.110.4-Transformer-Model
@@ -0,0 +1,10 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Tensorflow.Keras.ArgsDefinition | |||||
{ | |||||
public class ExponentialArgs : LayerArgs | |||||
{ | |||||
} | |||||
} |
@@ -0,0 +1,10 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Tensorflow.Keras.ArgsDefinition | |||||
{ | |||||
public class HardSigmoidArgs : LayerArgs | |||||
{ | |||||
} | |||||
} |
@@ -0,0 +1,11 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Tensorflow.Keras.ArgsDefinition | |||||
{ | |||||
public class SELUArgs : LayerArgs | |||||
{ | |||||
} | |||||
} |
@@ -0,0 +1,10 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Tensorflow.Keras.ArgsDefinition | |||||
{ | |||||
public class SoftplusArgs : LayerArgs | |||||
{ | |||||
} | |||||
} |
@@ -0,0 +1,10 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Tensorflow.Keras.ArgsDefinition | |||||
{ | |||||
public class SoftsignArgs : LayerArgs | |||||
{ | |||||
} | |||||
} |
@@ -0,0 +1,10 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Tensorflow.Keras.ArgsDefinition | |||||
{ | |||||
public class SwishArgs : LayerArgs | |||||
{ | |||||
} | |||||
} |
@@ -0,0 +1,10 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Tensorflow.Keras.ArgsDefinition | |||||
{ | |||||
public class TanhArgs : LayerArgs | |||||
{ | |||||
} | |||||
} |
@@ -0,0 +1,10 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Tensorflow.Keras.ArgsDefinition | |||||
{ | |||||
public class Conv2DTransposeArgs : Conv2DArgs | |||||
{ | |||||
} | |||||
} |
@@ -0,0 +1,10 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Tensorflow.Keras.ArgsDefinition | |||||
{ | |||||
public class AddArgs : MergeArgs | |||||
{ | |||||
} | |||||
} |
@@ -0,0 +1,10 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Tensorflow.Keras.ArgsDefinition | |||||
{ | |||||
public class ConcatenateArgs : MergeArgs | |||||
{ | |||||
} | |||||
} |
@@ -0,0 +1,10 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Tensorflow.Keras.ArgsDefinition | |||||
{ | |||||
public class SubtractArgs : MergeArgs | |||||
{ | |||||
} | |||||
} |
@@ -0,0 +1,10 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Tensorflow.Keras.ArgsDefinition | |||||
{ | |||||
public class GlobalAveragePooling1DArgs : Pooling1DArgs | |||||
{ | |||||
} | |||||
} |
@@ -0,0 +1,10 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Tensorflow.Keras.ArgsDefinition | |||||
{ | |||||
public class GlobalAveragePooling2DArgs : Pooling2DArgs | |||||
{ | |||||
} | |||||
} |
@@ -0,0 +1,10 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Tensorflow.Keras.ArgsDefinition | |||||
{ | |||||
public class GlobalMaxPooling1DArgs : Pooling1DArgs | |||||
{ | |||||
} | |||||
} |
@@ -0,0 +1,10 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Tensorflow.Keras.ArgsDefinition | |||||
{ | |||||
public class GlobalMaxPooling2DArgs : Pooling2DArgs | |||||
{ | |||||
} | |||||
} |
@@ -0,0 +1,10 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Tensorflow.Keras.ArgsDefinition | |||||
{ | |||||
public class MaxPooling1DArgs : Pooling1DArgs | |||||
{ | |||||
} | |||||
} |
@@ -10,14 +10,14 @@ namespace Tensorflow.Keras.Layers { | |||||
public ILayer ELU ( float alpha = 0.1f ) | public ILayer ELU ( float alpha = 0.1f ) | ||||
=> new ELU(new ELUArgs { Alpha = alpha }); | => new ELU(new ELUArgs { Alpha = alpha }); | ||||
public ILayer SELU () | public ILayer SELU () | ||||
=> new SELU(new LayerArgs { }); | |||||
=> new SELU(new SELUArgs { }); | |||||
public ILayer Softmax(int axis = -1) => new Softmax(new SoftmaxArgs { axis = axis }); | public ILayer Softmax(int axis = -1) => new Softmax(new SoftmaxArgs { axis = axis }); | ||||
public ILayer Softmax ( Axis axis ) => new Softmax(new SoftmaxArgs { axis = axis }); | public ILayer Softmax ( Axis axis ) => new Softmax(new SoftmaxArgs { axis = axis }); | ||||
public ILayer Softplus () => new Softplus(new LayerArgs { }); | |||||
public ILayer HardSigmoid () => new HardSigmoid(new LayerArgs { }); | |||||
public ILayer Softsign () => new Softsign(new LayerArgs { }); | |||||
public ILayer Swish () => new Swish(new LayerArgs { }); | |||||
public ILayer Tanh () => new Tanh(new LayerArgs { }); | |||||
public ILayer Exponential () => new Exponential(new LayerArgs { }); | |||||
public ILayer Softplus () => new Softplus(new SoftplusArgs { }); | |||||
public ILayer HardSigmoid () => new HardSigmoid(new HardSigmoidArgs { }); | |||||
public ILayer Softsign () => new Softsign(new SoftsignArgs { }); | |||||
public ILayer Swish () => new Swish(new SwishArgs { }); | |||||
public ILayer Tanh () => new Tanh(new TanhArgs { }); | |||||
public ILayer Exponential () => new Exponential(new ExponentialArgs { }); | |||||
} | } | ||||
} | } |
@@ -14,7 +14,7 @@ namespace Tensorflow.Keras.Layers | |||||
/// <param name="axis">Axis along which to concatenate.</param> | /// <param name="axis">Axis along which to concatenate.</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public ILayer Concatenate(int axis = -1) | public ILayer Concatenate(int axis = -1) | ||||
=> new Concatenate(new MergeArgs | |||||
=> new Concatenate(new ConcatenateArgs | |||||
{ | { | ||||
Axis = axis | Axis = axis | ||||
}); | }); | ||||
@@ -240,7 +240,7 @@ namespace Tensorflow.Keras.Layers | |||||
string kernel_regularizer = null, | string kernel_regularizer = null, | ||||
string bias_regularizer = null, | string bias_regularizer = null, | ||||
string activity_regularizer = null) | string activity_regularizer = null) | ||||
=> new Conv2DTranspose(new Conv2DArgs | |||||
=> new Conv2DTranspose(new Conv2DTransposeArgs | |||||
{ | { | ||||
Rank = 2, | Rank = 2, | ||||
Filters = filters, | Filters = filters, | ||||
@@ -568,7 +568,7 @@ namespace Tensorflow.Keras.Layers | |||||
int? strides = null, | int? strides = null, | ||||
string padding = "valid", | string padding = "valid", | ||||
string data_format = null) | string data_format = null) | ||||
=> new MaxPooling1D(new Pooling1DArgs | |||||
=> new MaxPooling1D(new MaxPooling1DArgs | |||||
{ | { | ||||
PoolSize = pool_size ?? 2, | PoolSize = pool_size ?? 2, | ||||
Strides = strides ?? (pool_size ?? 2), | Strides = strides ?? (pool_size ?? 2), | ||||
@@ -944,21 +944,21 @@ namespace Tensorflow.Keras.Layers | |||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public ILayer Add() | public ILayer Add() | ||||
=> new Add(new MergeArgs { }); | |||||
=> new Add(new AddArgs { }); | |||||
/// <summary> | /// <summary> | ||||
/// | /// | ||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public ILayer Subtract() | public ILayer Subtract() | ||||
=> new Subtract(new MergeArgs { }); | |||||
=> new Subtract(new SubtractArgs { }); | |||||
/// <summary> | /// <summary> | ||||
/// Global max pooling operation for spatial data. | /// Global max pooling operation for spatial data. | ||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public ILayer GlobalAveragePooling2D() | public ILayer GlobalAveragePooling2D() | ||||
=> new GlobalAveragePooling2D(new Pooling2DArgs { }); | |||||
=> new GlobalAveragePooling2D(new GlobalAveragePooling2DArgs { }); | |||||
/// <summary> | /// <summary> | ||||
/// Global average pooling operation for temporal data. | /// Global average pooling operation for temporal data. | ||||
@@ -968,7 +968,7 @@ namespace Tensorflow.Keras.Layers | |||||
/// </param> | /// </param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public ILayer GlobalAveragePooling1D(string data_format = "channels_last") | public ILayer GlobalAveragePooling1D(string data_format = "channels_last") | ||||
=> new GlobalAveragePooling1D(new Pooling1DArgs { DataFormat = data_format }); | |||||
=> new GlobalAveragePooling1D(new GlobalAveragePooling1DArgs { DataFormat = data_format }); | |||||
/// <summary> | /// <summary> | ||||
/// Global max pooling operation for spatial data. | /// Global max pooling operation for spatial data. | ||||
@@ -977,7 +977,7 @@ namespace Tensorflow.Keras.Layers | |||||
/// channels_last corresponds to inputs with shape (batch, height, width, channels) while channels_first corresponds to inputs with shape (batch, channels, height, width).</param> | /// channels_last corresponds to inputs with shape (batch, height, width, channels) while channels_first corresponds to inputs with shape (batch, channels, height, width).</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public ILayer GlobalAveragePooling2D(string data_format = "channels_last") | public ILayer GlobalAveragePooling2D(string data_format = "channels_last") | ||||
=> new GlobalAveragePooling2D(new Pooling2DArgs { DataFormat = data_format }); | |||||
=> new GlobalAveragePooling2D(new GlobalAveragePooling2DArgs { DataFormat = data_format }); | |||||
/// <summary> | /// <summary> | ||||
/// Global max pooling operation for 1D temporal data. | /// Global max pooling operation for 1D temporal data. | ||||
@@ -988,7 +988,7 @@ namespace Tensorflow.Keras.Layers | |||||
/// </param> | /// </param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public ILayer GlobalMaxPooling1D(string data_format = "channels_last") | public ILayer GlobalMaxPooling1D(string data_format = "channels_last") | ||||
=> new GlobalMaxPooling1D(new Pooling1DArgs { DataFormat = data_format }); | |||||
=> new GlobalMaxPooling1D(new GlobalMaxPooling1DArgs { DataFormat = data_format }); | |||||
/// <summary> | /// <summary> | ||||
/// Global max pooling operation for spatial data. | /// Global max pooling operation for spatial data. | ||||
@@ -997,7 +997,7 @@ namespace Tensorflow.Keras.Layers | |||||
/// channels_last corresponds to inputs with shape (batch, height, width, channels) while channels_first corresponds to inputs with shape (batch, channels, height, width).</param> | /// channels_last corresponds to inputs with shape (batch, height, width, channels) while channels_first corresponds to inputs with shape (batch, channels, height, width).</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public ILayer GlobalMaxPooling2D(string data_format = "channels_last") | public ILayer GlobalMaxPooling2D(string data_format = "channels_last") | ||||
=> new GlobalMaxPooling2D(new Pooling2DArgs { DataFormat = data_format }); | |||||
=> new GlobalMaxPooling2D(new GlobalMaxPooling2DArgs { DataFormat = data_format }); | |||||
/// <summary> | /// <summary> | ||||
/// Get an weights initializer from its name. | /// Get an weights initializer from its name. | ||||