pytorch/tools
gchanan ae0c04c773
Add torch.empty, torch.full and new_ size Tensor factory methods. (#5668)
* Add torch.empty, torch.full and new_ size Tensor factory methods.

This adds torch.full, torch.empty equivalents of np.full, np.empty.
In addition, this adds size-based Tensor factory methods new_empty, new_ones, new_full, new_zeros,
which is meant to complete the separation of the legacy "new" method into data-based and size-based
functions.

This also fixes an issue in sparse zeros_like when the dtype didn't match the argument dtype.

* Get rid of unnecessary zero in sparse tensor zeros_like.

* Fix test if only 1 cuda device.
2018-03-09 15:29:29 -05:00
..
autograd Add torch.empty, torch.full and new_ size Tensor factory methods. (#5668) 2018-03-09 15:29:29 -05:00
cpp_build Python-free build of autograd + jit (#5356) 2018-03-08 15:13:10 -05:00
cwrap Delete dead Tensor code paths (#5417) 2018-02-27 17:58:09 -05:00
docker Consolidated dockerfile changes, updated README (#5235) 2018-02-14 11:57:23 -05:00
jit Python-free build of autograd + jit (#5356) 2018-03-08 15:13:10 -05:00
nnwrap Delete dead Tensor code paths (#5417) 2018-02-27 17:58:09 -05:00
setup_helpers disable ibverbs build with env variable (#5513) 2018-03-07 11:18:48 -05:00
shared update build so that all of TH* is in libATen 2017-11-02 19:53:36 -04:00
__init__.py python 2 support 2016-06-08 19:14:57 -04:00
convert.vim Base for nn conversion 2016-07-22 22:21:29 -04:00
gen_onnx.sh fix the script to generate the nanopb files (#2907) 2017-09-30 10:21:06 -04:00
run_aten_tests.sh update build so that all of TH* is in libATen 2017-11-02 19:53:36 -04:00