Python torch.nn.modules.loss._Loss() Examples
The following are 1
code examples of torch.nn.modules.loss._Loss().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
torch.nn.modules.loss
, or try the search function
.
Example #1
Source File: loss.py From argus with MIT License | 5 votes |
def get_pytorch_losses(): losses = inheritors(_Loss) losses_dict = {l.__name__: l for l in losses if not l.__name__.startswith('_')} # filter _WeightedLoss return losses_dict