tf_chatbot_seq2seq_antilm
tf_chatbot_seq2seq_antilm copied to clipboard
ValueError: number of bits must be greater than zero
reading data line 4600000 reading data line 4700000 reading data line 4800000 reading data line 4900000 reading data line 5000000 I tensorflow/core/common_runtime/gpu/pool_allocator.cc:247] PoolAllocator: After 5476 get requests, put_count=2291 evicted_count=1000 eviction_rate=0.436491 and unsatisfied allocation rate=0.782505 I tensorflow/core/common_runtime/gpu/pool_allocator.cc:259] Raising pool_size_limit_ from 100 to 110 I tensorflow/core/common_runtime/gpu/pool_allocator.cc:247] PoolAllocator: After 0 get requests, put_count=2012 evicted_count=2000 eviction_rate=0.994036 and unsatisfied allocation rate=0 ...... ...... I tensorflow/core/common_runtime/gpu/pool_allocator.cc:247] PoolAllocator: After 0 get requests, put_count=1482 evicted_count=1000 eviction_rate=0.674764 and unsatisfied allocation rate=0 I tensorflow/core/common_runtime/gpu/pool_allocator.cc:247] PoolAllocator: After 27358 get requests, put_count=27432 evicted_count=1000 eviction_rate=0.0364538 and unsatisfied allocation rate=0.0596169 I tensorflow/core/common_runtime/gpu/pool_allocator.cc:259] Raising pool_size_limit_ from 7764 to 8540 global step 500 learning rate 0.5000 step-time 0.31 perplexity 1069.21 @ 2017-06-03 15:21:14.241907 Traceback (most recent call last): File "/usr/local/lib/python3.6/random.py", line 253, in choice i = self._randbelow(len(seq)) File "/usr/local/lib/python3.6/random.py", line 230, in _randbelow r = getrandbits(k) # 0 <= r < 2**k ValueError: number of bits must be greater than zero
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 28, in
what I found is:
at encoder_input, decoder_input = random.choice(data[bucket_id])
the data contains a [], so it cause a call like random.choice([]) which raise the error
Same issue