[nnc] Strides to Tensor (#72962)

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/72962

Test Plan: Imported from OSS

Reviewed By: ZolotukhinM, cpuhrsch

Differential Revision: D34589306

Pulled By: IvanKobzarev

fbshipit-source-id: ecee5249760ecc0c8b2edb1842b90218899bc944
(cherry picked from commit 9e310c4c67389da30da89126d838ffe3864aba6f)
This commit is contained in:
Ivan Kobzarev
2022-04-23 12:30:25 -07:00
committed by PyTorch MergeBot
parent 1a7e43be14
commit 939060925f
31 changed files with 710 additions and 92 deletions

View File

@ -348,7 +348,7 @@ graph(%x : Float(2, 2, strides=[2, 1], requires_grad=0, device=cpu)):
"""
graph = torch._C.parse_ir(graph_str)
def my_custom_lowering(inputs, out_shape, out_type, device):
def my_custom_lowering(inputs, out_shape, out_strides, out_type, device):
def compute(idxs):
load = inputs[0].as_buf().load(idxs)
return te.ifThenElse(