pytorch/c10
Sebastian Messmer 70e9ef518f c10::string_view (#26616)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26616

Implement C++17 std::string_view for C++11.

This is useful for compile time type name retrievaly which I'm going to stack on top of this.
It is also useful to replace `const std::string&` with throughout our codebase.
ghstack-source-id: 92100314

Test Plan: unit tests

Differential Revision: D17518992

fbshipit-source-id: 48e31c677d51b0041f4b37e89a92bd176d4a0b08
2019-10-21 16:10:40 -07:00
..
core Fix type promotion of complex32 and complex32 (#27929) 2019-10-18 14:45:25 -07:00
cuda Add fused layer norm impl on CUDA in PyTorch (#27634) 2019-10-14 21:26:33 -07:00
hip Revert "remove use of tmp_install" (#15847) 2019-01-08 16:30:19 -08:00
macros c10::string_view (#26616) 2019-10-21 16:10:40 -07:00
test c10::string_view (#26616) 2019-10-21 16:10:40 -07:00
util c10::string_view (#26616) 2019-10-21 16:10:40 -07:00
CMakeLists.txt c10::KernelFunction (#26337) 2019-09-20 18:55:25 -07:00