pytorch/docs
Mike Ruberry ef885c10d8 [pytorch] Add triplet margin loss with custom distance (#43680)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/43680

As discussed [here](https://github.com/pytorch/pytorch/issues/43342),
adding in a Python-only implementation of the triplet-margin loss that takes a
custom distance function.  Still discussing whether this is necessary to add to
PyTorch Core.

Test Plan:
python test/run_tests.py

Imported from OSS

Reviewed By: albanD

Differential Revision: D23363898

fbshipit-source-id: 1cafc05abecdbe7812b41deaa1e50ea11239d0cb
2020-09-22 11:35:52 -07:00
..
caffe2 Grammar patch 1 (.md) (#41599) 2020-07-20 10:19:08 -07:00
cpp Rewrite of ATen code generator (#42629) 2020-08-31 09:00:22 -07:00
source [pytorch] Add triplet margin loss with custom distance (#43680) 2020-09-22 11:35:52 -07:00
.gitignore
libtorch.rst
make.bat Sphinx parallel build (#38785) 2020-05-21 13:03:55 -07:00
Makefile DOC: fail to build if there are warnings (#41335) 2020-07-28 22:33:44 -07:00
requirements.txt DOC: fix two build warnings (#41334) 2020-07-25 23:38:33 -07:00