mirror of https://github.com/llvm/torch-mlir
Fix signature of unboxed aten::arange for torch HEAD
parent
19b9398aee
commit
a53ed850bd
|
@ -364,7 +364,7 @@ at::Tensor &AcapController::copyUnderKernel(at::Tensor &self,
|
|||
}
|
||||
|
||||
at::Tensor AcapController::arangeBackendSelectKernel(
|
||||
at::Scalar end, c10::optional<at::ScalarType> dtype,
|
||||
const at::Scalar &end, c10::optional<at::ScalarType> dtype,
|
||||
c10::optional<at::Layout> layout, c10::optional<at::Device> device,
|
||||
c10::optional<bool> pin_memory) {
|
||||
static c10::OperatorName opName{"aten::arange", ""};
|
||||
|
@ -380,7 +380,7 @@ at::Tensor AcapController::arangeBackendSelectKernel(
|
|||
// built-in handlers dispatch to BackendSelect kernels.
|
||||
auto targetDk = c10::computeDispatchKey(dtype, layout, device);
|
||||
auto opTyped = opHandle->typed<at::Tensor(
|
||||
at::Scalar end, c10::optional<at::ScalarType> dtype,
|
||||
const at::Scalar &end, c10::optional<at::ScalarType> dtype,
|
||||
c10::optional<at::Layout> layout, c10::optional<at::Device> device,
|
||||
c10::optional<bool> pin_memory)>();
|
||||
return opTyped.redispatch(c10::DispatchKeySet({targetDk}), end, dtype, layout, device,
|
||||
|
|
|
@ -72,10 +72,9 @@ public:
|
|||
bool non_blocking);
|
||||
|
||||
// Backend select kernel for arange factory function.
|
||||
static at::Tensor
|
||||
arangeBackendSelectKernel(at::Scalar end, c10::optional<at::ScalarType> dtype,
|
||||
c10::optional<at::Layout> layout,
|
||||
c10::optional<at::Device> device,
|
||||
static at::Tensor arangeBackendSelectKernel(
|
||||
const at::Scalar &end, c10::optional<at::ScalarType> dtype,
|
||||
c10::optional<at::Layout> layout, c10::optional<at::Device> device,
|
||||
c10::optional<bool> pin_memory);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue