  
  
  def predict_rnn(prefix, num_chars, rnn, params, init_rnn_state,
                  num_hiddens, vocab_size, ctx, idx_to_char, char_to_idx):
      """Predict next chars with a RNN model"""
      state = init_rnn_state(1, num_hiddens, ctx)
      output = [char_to_idx[prefix[0]]]
      for t in range(num_chars + len(prefix) - 1):
 
</s> remove __version__ = '0.8.4'
 </s> add __version__ = '0.8.5' </s> remove   - gluonbook==0.8.4
 </s> add   - gluonbook==0.8.5 </s> remove   - gluonbook==0.8.4
 </s> add   - gluonbook==0.8.5 </s> remove   - gluonbook==0.8.4
 </s> add   - gluonbook==0.8.5 </s> remove build/%.ipynb: %.md build/build.yml build/md2ipynb.py $(wildcard gluonbook/*)
 </s> add build/%.ipynb: %.md build/md2ipynb.py
def mkdir_if_not_exist(path):
    """Make a directory if it does not exist."""
    if not os.path.exists(os.path.join(*path)):
        os.makedirs(os.path.join(*path))


  
  
def mkdir_if_not_exist(path):
    """Make a directory if it does not exist."""
    if not os.path.exists(os.path.join(*path)):
        os.makedirs(os.path.join(*path))


  def predict_rnn(prefix, num_chars, rnn, params, init_rnn_state,
                  num_hiddens, vocab_size, ctx, idx_to_char, char_to_idx):
      """Predict next chars with a RNN model"""
      state = init_rnn_state(1, num_hiddens, ctx)
      output = [char_to_idx[prefix[0]]]
      for t in range(num_chars + len(prefix) - 1):
keep add keep keep keep keep keep keep
 [TAG] Chapter 9 finalized for press and localization, gb 0.8.5 
gluonbook/utils.py