Zhiting Hu
Zhiting Hu
> Hi, > Excuse me > I want to run this example but got an error in main.py. This is terminal error. Can you help me? > > ` File...
Evaluating likelihood is straightforward, with, e.g., `texar.losses.sequence_sparse_softmax_cross_entropy`. Here is an example of using the loss function: https://github.com/asyml/texar/blob/master/examples/language_model_ptb/lm_ptb.py#L103-L106
Discriminator training is by the function [`_d_run_epoch`](https://github.com/asyml/texar/blob/master/examples/seqgan/seqgan_train.py#L281). You may customize it for more control. The while-loop: ``` while True: try: # Training op here except: tf.errors.OutOfRangeError: break ``` is one-epoch...
You may make `infer_sample_ids` [here](https://github.com/asyml/texar/blob/master/examples/seqgan/seqgan_train.py#L116) as a TF placeholder, and feed the same generator sample when optimizing the discriminator for multiple steps.
1) The current beam-search implementation does not support customization with decoder Helpers, though I think it's possible to refactor beam-search to enable the nice feature. 2) Here is a nice...
Thanks for suggesting. Any contributions are welcome in this regard!
By "Transformer" do you mean the example code under `examples/` or the transformer modules in the library? The transformer modules are independent of how you manage training data (either in...
Your texar is probably not installed correctly. Did you follow the steps here: https://github.com/asyml/texar#installation
Thanks for suggesting. We don't yet have a plan to add TPU support soon. Any contributions are welcome!
The above cmds work for me. Can you double-check if [`setup.py`](https://github.com/asyml/texar/blob/master/setup.py) is there?