pytorch/torch/csrc/utils
gchanan 157f949cef
Implement python scalar conversions via ATen; allow localScalar if numel == 1 (#3908)
* Have localScalar work with all 1 element tensors, not just scalars.

Also have toCFloat, etc. call localScalar so 1 element tensors work as well.

* Implement python number conversions.

* Implement __bool__, __nonzero__ as ATen functions.

* Remove merge artifacts.

* Simplify by dispatching to toCDouble.
2017-11-28 12:56:51 -05:00
..
auto_gil.h Refactor parts of utils.h (#648) 2017-01-30 21:16:28 -05:00
auto_gpu.h [ATen] Rename isCuda -> is_cuda. 2017-11-15 18:33:07 -08:00
auto_stream.h Add AutoGPU RAII that doesn't depend on Python API (#875) 2017-02-28 14:39:20 -05:00
auto_unique_ptr.h Improve backward tracing 2017-09-05 17:48:55 -04:00
disallow_copy.h Move disallow_copy into utils. 2017-09-05 17:48:55 -04:00
functional.h Make inputs/outputs return an ArrayRef. 2017-11-01 09:49:53 -04:00
hash.h Fix hash.h compile errors in newer compilers (#3783) 2017-11-19 19:28:43 -05:00
invalid_arguments.cpp Refactor THPUtils_invalidArguments into separate file 2017-09-13 19:18:02 -04:00
invalid_arguments.h Refactor THPUtils_invalidArguments into separate file 2017-09-13 19:18:02 -04:00
object_ptr.cpp Refactor parts of utils.h (#648) 2017-01-30 21:16:28 -05:00
object_ptr.h Include Python.h less using a new stub header. 2017-10-19 23:04:19 -04:00
pybind.h Move pybind11 type_caster to different pybind.h in the corresponding folders. (#222) 2017-09-19 10:53:32 -04:00
python_arg_parser.cpp Implement clamp using ATen (#3739) 2017-11-17 13:12:36 -05:00
python_arg_parser.h Implement clamp using ATen (#3739) 2017-11-17 13:12:36 -05:00
python_compat.h Implement indexing in ATen (#3725) 2017-11-21 13:19:00 -05:00
python_numbers.h Implement python scalar conversions via ATen; allow localScalar if numel == 1 (#3908) 2017-11-28 12:56:51 -05:00
python_strings.h make THPPointer have explicit constructors (#1636) 2017-05-25 15:35:54 -04:00
python_stub.h Include Python.h less using a new stub header. 2017-10-19 23:04:19 -04:00
python_tuples.h Implement remaining Variable fallthrough methods via ATen (#3744) 2017-11-17 15:57:56 -05:00
tensor_geometry.cpp Allow in-place operations on views (#3384) 2017-11-06 18:19:56 -05:00
tensor_geometry.h Allow in-place operations on views (#3384) 2017-11-06 18:19:56 -05:00
tuple_parser.cpp Improve Windows Compatibility (for csrc/scripts) (#2941) 2017-11-08 19:51:35 +01:00
tuple_parser.h Remove dead THPP code that has been replaced with ATen objects. (#2235) 2017-07-29 08:07:41 +05:30