public static void LoadConfig(this UpSampling2D layer, KerasLayerConfigJson config) { layer.Size = new Vector2Int(config.size[0], config.size[1]); }
public static void LoadConfig(this InputLayer layer, KerasLayerConfigJson config) { layer.InputChannels = int.Parse(config.batch_input_shape[3]); }
public static void LoadConfig(this LeakyReLU layer, KerasLayerConfigJson config) { layer.Alpha = config.alpha; }
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]); }