示例#1
0
 public static void LoadConfig(this UpSampling2D layer, KerasLayerConfigJson config)
 {
     layer.Size = new Vector2Int(config.size[0], config.size[1]);
 }
示例#2
0
 public static void LoadConfig(this InputLayer layer, KerasLayerConfigJson config)
 {
     layer.InputChannels = int.Parse(config.batch_input_shape[3]);
 }
示例#3
0
 public static void LoadConfig(this LeakyReLU layer, KerasLayerConfigJson config)
 {
     layer.Alpha = config.alpha;
 }
示例#4
0
 public static void LoadConfig(this Conv2D layer, KerasLayerConfigJson config)
 {
     layer.Filters    = config.filters;
     layer.KernalSize = new Vector2Int(config.kernel_size[0], config.kernel_size[1]);
     layer.Stride     = new Vector2Int(config.strides[0], config.strides[1]);
 }