Skip to content

Commit

Permalink
Make the tensors contiguous.
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant Kumar committed Jun 26, 2023
1 parent 27a0873 commit 74a7202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shark/dynamo_backend/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def compile(self):
self.shark_module = shark_module

def __call__(self, *inputs):
np_inputs = [x.detach().cpu().numpy() for x in inputs]
np_inputs = [x.contiguous().detach().cpu().numpy() for x in inputs]
np_outs = self.shark_module("forward", np_inputs)
if self.was_unwrapped:
np_outs = [
Expand Down

0 comments on commit 74a7202

Please sign in to comment.