In this tutorial, we will create an example to show the effect of transformers.get_cosine_schedule_with_warmup(), you can understand how to use this function easily.
In this tutorial, we will introduce you how to fix pytorch error: RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation.
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().