Skip to content

Commit 715bc33

Browse files
committed
update doc
1 parent c11db9c commit 715bc33

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pahelix/model_zoo/seq_vae_model.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ def sample_z_prior(self, n_batch):
151151
Args:
152152
n_batch: number of batches
153153
154-
Returns:
155-
(n_batch, d_z) of floats, sample of latent z
154+
Returns:
155+
(n_batch, d_z) of floats, sample of latent z
156156
"""
157157
return paddle.randn([n_batch, self.q_mu.weight.shape[1]])
158158

@@ -166,16 +166,15 @@ def tensor2string(self, tensor):
166166
return string
167167

168168
def sample(self, n_batch, max_len=100, z=None, temp=1.0):
169-
"""Generating n_batch samples in eval mode (`z` could be
170-
not on same device)
169+
"""Generating n_batch samples in eval mode (z could be not on same device)
171170
172171
Args:
173172
n_batch: number of sentences to generate
174173
max_len: max len of samples
175174
z: (n_batch, d_z) of floats, latent vector z or None
176175
temp: temperature of softmax
177176
178-
Returns:
177+
Returns:
179178
list of tensors of strings, samples sequence x
180179
"""
181180

0 commit comments

Comments
 (0)