add set_device at experiment setup
This commit is contained in:
parent
a5f1605051
commit
a079e767df
|
@ -488,7 +488,7 @@ class ConditionalWaveFlow(nn.LayerList):
|
||||||
z, log_det_jacobian = self.decoder(audio, condition)
|
z, log_det_jacobian = self.decoder(audio, condition)
|
||||||
return z, log_det_jacobian
|
return z, log_det_jacobian
|
||||||
|
|
||||||
@paddle.fluid.dygraph.no_grad
|
@paddle.no_grad()
|
||||||
def synthesize(self, mel):
|
def synthesize(self, mel):
|
||||||
condition = self.encoder(mel, trim_conv_artifact=True) #(B, C, T)
|
condition = self.encoder(mel, trim_conv_artifact=True) #(B, C, T)
|
||||||
batch_size, _, time_steps = condition.shape
|
batch_size, _, time_steps = condition.shape
|
||||||
|
|
|
@ -59,6 +59,7 @@ class ExperimentBase(object):
|
||||||
self.args = args
|
self.args = args
|
||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
|
paddle.set_device(self.args.device)
|
||||||
if self.parallel:
|
if self.parallel:
|
||||||
self.init_parallel()
|
self.init_parallel()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue