hi, I went through the char_rnn on GitHub. I wish to save the model into .pb file. has anyone tried that before? Or anyone can give me some tips to do that
I have tried save model like this:
with open(PREDICT_NET, 'wb') as f:
f.write(model.model.net._net.SerializeToString())
with open(INIT_NET, 'wb') as f:
f.write(init_net.SerializeToString())
but I could not load the pb file back, it gives error on init_net.pb: UnicodeDecodeError: 'ascii' codec can't decode byte 0xac in position 11: ordinal not in range(128):
hi, I went through the char_rnn on GitHub. I wish to save the model into .pb file. has anyone tried that before? Or anyone can give me some tips to do that I have tried save model like this: with open(PREDICT_NET, 'wb') as f: f.write(model.model.net._net.SerializeToString()) with open(INIT_NET, 'wb') as f: f.write(init_net.SerializeToString()) but I could not load the pb file back, it gives error on init_net.pb: UnicodeDecodeError: 'ascii' codec can't decode byte 0xac in position 11: ordinal not in range(128):