Skip to content

Commit 77835f7

Browse files
committed
update
1 parent 19eec23 commit 77835f7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.pylintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,6 @@ disable=raw-checker-failed,
449449
C0116,
450450
C0114,
451451
W0621,
452-
E0601,
453452
W0718,
454453
R0801
455454

train.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ def training_step(
9494
# update emb layer when using num tokenizer
9595
path_sample = path.sample(x_0, x_1, t)
9696
x_t = path_sample.x_t
97+
else:
98+
x_t = None
9799

98100
# text_token_mask==1 ==> generated text token
99101
x_t = x_t * data_info['text_token_mask'] + x_1 * (1 - data_info['text_token_mask'])

0 commit comments

Comments
 (0)