public async Task <int> Post([FromBody] PGGANPostModel network) { PGGAN pGGAN = new PGGAN { CreatedDate = DateTime.Now, CriticSteps = 5, Channels = 1, Cashed = false, ConvolutionalActivations = ConvolutionalActivation.LeakyReLU, GeneratorOutputActivation = GeneratorOutputActivation.Tanh, HiddenShape = 256, ImageScaleX = 64, ImageScaleY = 64, ImageScaleZ = 64, //NetworkModel = File.ReadAllBytes("cwgan_generator.h5"), Optimizer = Optimizer.Adam, ReLUAlpha = 0.1f, Type = NetworkType.CWGAN, WeightInitializer = "he_normal" }; return(await _pGGANService.Create(pGGAN)); }
public void Put(int id, [FromBody] PGGANPostModel network) { PGGAN pGGAN = _mapper.Map <PGGAN>(network); _pGGANService.Update(pGGAN); }