torch.Tensor.div — PyTorch 1.10.1 documentation
pytorch.org › generated › torchLearn about PyTorch’s features and capabilities. Community. Join the PyTorch developer community to contribute, learn, and get your questions answered. Developer Resources. Find resources and get questions answered. Forums. A place to discuss PyTorch code, issues, install, research. Models (Beta) Discover, publish, and reuse pre-trained models
torch.nn.functional.kl_div — PyTorch 1.10.1 documentation
pytorch.org › torchtorch.nn.functional.kl_div. See KLDivLoss for details. input – Tensor of arbitrary shape in log-probabilities. target – Tensor of the same shape as input. See log_target for the target’s interpretation. size_average ( bool, optional) – Deprecated (see reduction ). By default, the losses are averaged over each loss element in the batch.
torch.div — PyTorch 1.10.1 documentation
pytorch.org › docs › stabletorch.div. Divides each element of the input input by the corresponding element of other. By default, this performs a “true” division like Python 3. See the rounding_mode argument for floor division. Supports broadcasting to a common shape , type promotion, and integer, float, and complex inputs. Always promotes integer types to the default ...