asyml / texar-pytorch

Integrating the Best of TF into PyTorch, for Machine Learning, Natural Language Processing, and Text Generation. This is part of the CASL project: http://casl-project.ai/
https://asyml.io
Apache License 2.0
745 stars 117 forks source link

Bugfix in VAE example #253

Closed gpengzhi closed 5 years ago

gpengzhi commented 5 years ago

resolve #251

One more bug: In infer_greedy decoding, the output of TransformerDecoder is a tuple (outputs, sequence_length), where outputs is an instance of TransformerDecoderOutput.

gpengzhi commented 5 years ago

vae_text example tested.

codecov[bot] commented 5 years ago

Codecov Report

Merging #253 into master will increase coverage by <.01%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #253      +/-   ##
==========================================
+ Coverage   83.05%   83.05%   +<.01%     
==========================================
  Files         195      195              
  Lines       15290    15293       +3     
==========================================
+ Hits        12699    12702       +3     
  Misses       2591     2591
Impacted Files Coverage Δ
texar/torch/custom/initializers.py 57.69% <ø> (+1.69%) :arrow_up:
texar/torch/custom/distributions.py 40% <ø> (ø) :arrow_up:
texar/torch/custom/activation.py 100% <ø> (ø) :arrow_up:
texar/torch/custom/__init__.py 100% <ø> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 53d8ead...a4d3a14. Read the comment docs.