We often use plt.savefig() to save a plot to an image. However, we may find the saved image may be blank. In this tutorial, we will introduce you how to fix this problem.
In this tutorial, we will introduce how to use linux tar command to compress a directory then extract it. It is a very useful when you are processing linux files.
There does not exist a function like tf.sequence_mask() in pytorch. It is not easy to process variable length sequence. In this tutorial, we will introduce you how to create a function like tf.sequence_mask().