From c44e1ec9b24a70cc30de5682bf1855afe5eb0485 Mon Sep 17 00:00:00 2001 From: Hiroshiba Kazuyuki Date: Thu, 25 Jan 2018 20:10:01 +0900 Subject: mypy & harvest追加 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- become_yukarin/model/sr_model.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'become_yukarin/model/sr_model.py') diff --git a/become_yukarin/model/sr_model.py b/become_yukarin/model/sr_model.py index 2e83526..f8e55d6 100644 --- a/become_yukarin/model/sr_model.py +++ b/become_yukarin/model/sr_model.py @@ -6,7 +6,7 @@ from become_yukarin.config.sr_config import SRModelConfig class CBR(chainer.Chain): - def __init__(self, ch0, ch1, bn=True, sample='down', activation=F.relu, dropout=False): + def __init__(self, ch0, ch1, bn=True, sample='down', activation=F.relu, dropout=False) -> None: super().__init__() self.bn = bn self.activation = activation @@ -33,7 +33,7 @@ class CBR(chainer.Chain): class Encoder(chainer.Chain): - def __init__(self, in_ch): + def __init__(self, in_ch) -> None: super().__init__() w = chainer.initializers.Normal(0.02) with self.init_scope(): @@ -54,7 +54,7 @@ class Encoder(chainer.Chain): class Decoder(chainer.Chain): - def __init__(self, out_ch): + def __init__(self, out_ch) -> None: super().__init__() w = chainer.initializers.Normal(0.02) with self.init_scope(): @@ -79,7 +79,7 @@ class Decoder(chainer.Chain): class SRPredictor(chainer.Chain): - def __init__(self, in_ch, out_ch): + def __init__(self, in_ch, out_ch) -> None: super().__init__() with self.init_scope(): self.encoder = Encoder(in_ch) @@ -90,7 +90,7 @@ class SRPredictor(chainer.Chain): class SRDiscriminator(chainer.Chain): - def __init__(self, in_ch, out_ch): + def __init__(self, in_ch, out_ch) -> None: super().__init__() w = chainer.initializers.Normal(0.02) with self.init_scope(): -- cgit v1.2.3-70-g09d2