mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[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:
committed by
PyTorch MergeBot
parent
1a7e43be14
commit
939060925f
@ -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(
|
||||
|
Reference in New Issue
Block a user