pytorch/torch/csrc/utils
Bel H 30cb6ac53c Introduce mlc device (ML Compute device) to PyTorch's device list (#50634)
Summary:
Apple recently announced ML Compute, a new framework available in macOS Big Sur, which enables users to accelerate the training of neural networks on Mac hardware. This PR is the first on a series of PRs that will enable the integration with ML Compute. Most of the integration code will live on a separate subrepo named `mlc`.
The integration with `mlc` (ML Compute) will be very similar to that of xla. We rely on registering our ops through:

TORCH_LIBRARY_IMPL(aten, PrivateUse1, m) {
 m.impl_UNBOXED(<op_schema_name>, &customized_op_kernel)
 ...
}

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

Reviewed By: malfet

Differential Revision: D26614213

Pulled By: smessmer

fbshipit-source-id: 3b492b346c61cc3950ac880ac01a82fbdddbc07b
2021-02-24 22:39:11 -08:00
..
auto_gil.h
byte_order.cpp
byte_order.h
cuda_enabled.h
cuda_lazy_init.cpp
cuda_lazy_init.h
disable_torch_function.cpp move has_torch_function to C++, and make a special case object_has_torch_function (#48965) 2021-01-10 19:23:35 -08:00
disable_torch_function.h move has_torch_function to C++, and make a special case object_has_torch_function (#48965) 2021-01-10 19:23:35 -08:00
disallow_copy.h
init.cpp
init.h
invalid_arguments.cpp
invalid_arguments.h
memory.h
numpy_stub.h
object_ptr.cpp
object_ptr.h
out_types.cpp Support out argument in torch.fft ops (#49335) 2021-01-05 17:17:49 -08:00
out_types.h Support out argument in torch.fft ops (#49335) 2021-01-05 17:17:49 -08:00
pybind.h
pycfunction_helpers.h
python_arg_parser.cpp Fix indexing for overrides. (#49324) 2021-01-20 11:34:02 -08:00
python_arg_parser.h Fix indexing for overrides. (#49324) 2021-01-20 11:34:02 -08:00
python_compat.h move has_torch_function to C++, and make a special case object_has_torch_function (#48965) 2021-01-10 19:23:35 -08:00
python_dispatch.cpp [PyTorch] Remove unnecessary dispatcher.h include in torch/library.h (#51162) 2021-01-26 22:19:32 -08:00
python_dispatch.h
python_numbers.h PyLong_{As/From}{Long/UnsignedLong} lint checks (#49280) 2020-12-17 09:32:08 -08:00
python_scalars.h Use int8_t instead of char in [load|store]_scalar` (#52616) 2021-02-22 21:11:18 -08:00
python_strings.h move has_torch_function to C++, and make a special case object_has_torch_function (#48965) 2021-01-10 19:23:35 -08:00
python_stub.h
python_tuples.h
six.h Remove redundant code for unsupported Python versions (#49486) 2021-01-06 12:45:46 -08:00
structseq.cpp
structseq.h
tensor_apply.cpp replace type().backend() with device() (#52558) 2021-02-23 16:32:21 -08:00
tensor_apply.h
tensor_dtypes.cpp
tensor_dtypes.h
tensor_flatten.cpp
tensor_flatten.h fix unflatten_dense_tensor when there is empty tensor inside (#50321) 2021-01-23 12:14:34 -08:00
tensor_layouts.cpp
tensor_layouts.h
tensor_list.cpp replace type().backend() with device() (#52558) 2021-02-23 16:32:21 -08:00
tensor_list.h
tensor_memoryformats.cpp
tensor_memoryformats.h
tensor_new.cpp Introduce mlc device (ML Compute device) to PyTorch's device list (#50634) 2021-02-24 22:39:11 -08:00
tensor_new.h
tensor_numpy.cpp Revert D25746115: [pytorch][PR] Improve documentation and warning message for creation of a tensor with from_numpy() 2021-01-05 16:21:26 -08:00
tensor_numpy.h
tensor_qschemes.cpp
tensor_qschemes.h
tensor_types.cpp Add new backend type for Intel heterogeneous computation platform. (#49786) 2021-01-20 08:15:18 -08:00
tensor_types.h
throughput_benchmark-inl.h
throughput_benchmark.cpp
throughput_benchmark.h
variadic.cpp
variadic.h Change cmake to allow building with MLC kick-off build (#51326) 2021-02-19 13:04:25 -08:00