Skip to content

Commit

Permalink
Remove assertion due to false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
minimaxir committed Jun 19, 2019
1 parent d9b673e commit 7c8e969
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion gpt_2_simple/gpt_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ def generate(sess,
if prefix:
context = tf.placeholder(tf.int32, [batch_size, None])
context_tokens = enc.encode(prefix)
assert len(context_tokens) < length

np.random.seed(seed)
tf.set_random_seed(seed)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
setup(
name='gpt_2_simple',
packages=['gpt_2_simple'], # this must be the same as the name above
version='0.5.2',
version='0.5.3',
description="Python package to easily retrain OpenAI's GPT-2 " \
"text-generating model on new texts.",
long_description=long_description,
Expand Down

0 comments on commit 7c8e969

Please sign in to comment.