Commit graph

5 commits

Author SHA1 Message Date
Bugra Akyildiz
27c7158166 Remove __future__ imports for legacy Python2 supports (#45033)
Summary:
There is a module called `2to3` which you can target for future specifically to remove these, the directory of `caffe2` has the most redundant imports:

```2to3 -f future -w caffe2```

Pull Request resolved: https://github.com/pytorch/pytorch/pull/45033

Reviewed By: seemethere

Differential Revision: D23808648

Pulled By: bugra

fbshipit-source-id: 38971900f0fe43ab44a9168e57f2307580d36a38
2020-09-23 17:57:02 -07:00
Qinqing Zheng
42ffb1ae07 support non-normalized weights
Reviewed By: akyrola

Differential Revision: D6158290

fbshipit-source-id: 4d54e5c0d0f91f23deab18da047df4d209d4c312
2017-10-27 23:18:25 -07:00
Qing He
0b0d5b2b1d Add tensor output that gives the sampled values
Summary: Given an additional tensor containing the values corresponding to the weighted samples, add tensor output that contains the values selected by the sampled indexes.

Reviewed By: akyrola

Differential Revision: D6050094

fbshipit-source-id: 1eccc641b99e30d36ae83d49f630b018a53e4147
2017-10-26 16:04:57 -07:00
Qinqing Zheng
6a4182eead weighted sample op cuda
Summary: CUDA version of weighted sampling operator; minor changes for CPU version

Reviewed By: asaadaldien

Differential Revision: D6106668

fbshipit-source-id: 42d7607bd845a4a39cf5b89d7476904cb5928431
2017-10-21 18:49:59 -07:00
Qing He
f535700ccc Add weighted_sampling operator to Caffe2
Summary: Add weighted_sampling operator to Caffe2

Reviewed By: akyrola

Differential Revision: D5962199

fbshipit-source-id: ab3f56a1dc7b8eaf4ed4d74af6c6c08dccca5a1e
2017-10-05 20:33:59 -07:00