0%

The process of producing a new value of some type from a value of a different type is called a conversion.

Conversions do not change the value or type being converted. Instead, a new value with the desired type is created as a result of the conversion

阅读全文 »

Self-supervised Learning

Self-supervised learning is a form of unsupervised learning. In the example below, we split the input into two parts: and . serves as the input to the model, while contains the remaining information, which the model uses to learn the label information.

阅读全文 »

Network as Generator

Compared to a traditional neural network, a generator network takes a simple distribution as input and outputs a distribution.

阅读全文 »

Softmax vs A-softmax Loss

Softmax loss is typically good at optimizing the inter-class difference (separating different classes), but not good at reducing the intra-class variation (making features of the same class compact). Additive Margin Softmax is a novel and more interpretable way to import the angular margin into the softmax loss.

阅读全文 »

mask_fill 是 PyTorch 中的一个函数,用于根据给定的条件(掩码)对张量中的元素进行填充。掩码是一个布尔值张量,指示哪些元素需要被填充。

阅读全文 »