Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
9b9a6ed
fix conv transpose import from TF
Mar 19, 2020
b048335
Merge branch 'master' of https://github.com/apache/incubator-tvm
Mar 19, 2020
63de7e9
Merge branch 'master' of https://github.com/apache/incubator-tvm
Mar 27, 2020
701e73d
Merge branch 'master' of https://github.com/apache/incubator-tvm
Apr 3, 2020
5d7ac32
Merge branch 'master' of https://github.com/apache/incubator-tvm
Apr 6, 2020
fcd2235
Merge branch 'master' of https://github.com/apache/incubator-tvm
Apr 8, 2020
e774bae
Merge branch 'master' of bitbucket.org:sima-ai/tvm
Jul 16, 2020
340abcd
Merge branch 'master' of https://github.com/apache/incubator-tvm
Jul 16, 2020
88352a5
Merge branch 'master' of https://github.com/apache/incubator-tvm
Jul 17, 2020
8157551
Merge branch 'master' of https://github.com/apache/incubator-tvm
Jul 26, 2020
6ef3f53
Merge branch 'master' of https://github.com/apache/incubator-tvm
Jul 29, 2020
11b0ffc
Merge remote-tracking branch 'origin/master'
Jul 30, 2020
82b22b0
Merge branch 'master' of https://github.com/apache/incubator-tvm
Jul 31, 2020
ed34207
Merge branch 'master' of https://github.com/apache/incubator-tvm
Aug 3, 2020
3374d22
Merge branch 'master' of https://github.com/apache/incubator-tvm
Aug 6, 2020
37e0b58
Merge branch 'master' of https://github.com/apache/incubator-tvm
Aug 10, 2020
afc4977
Merge remote-tracking branch 'origin/master'
Aug 24, 2020
e17c508
Merge branch 'master' of https://github.com/apache/incubator-tvm
Aug 27, 2020
62bc671
Merge branch 'master' of https://github.com/apache/incubator-tvm
Aug 31, 2020
3b94d83
Merge branch 'master' of https://github.com/apache/incubator-tvm
Sep 1, 2020
7b9bbee
Merge branch 'master' of https://github.com/apache/incubator-tvm
Sep 2, 2020
a615e4e
Merge branch 'master' of https://github.com/apache/incubator-tvm
Sep 9, 2020
eec4cd1
Merge branch 'master' of https://github.com/apache/incubator-tvm
Sep 9, 2020
b0aaccd
Merge branch 'master' of https://github.com/apache/incubator-tvm
Sep 10, 2020
09dd596
Merge branch 'master' of https://github.com/apache/incubator-tvm
Sep 11, 2020
5617eba
Merge branch 'master' of https://github.com/apache/incubator-tvm
Sep 12, 2020
f444df8
Merge branch 'master' of https://github.com/apache/incubator-tvm
Sep 13, 2020
098153f
Merge branch 'master' of https://github.com/apache/incubator-tvm
Sep 14, 2020
6fefb22
Merge branch 'master' of https://github.com/apache/incubator-tvm
Sep 15, 2020
9487da8
Merge branches 'master' and 'master' of https://github.com/apache/inc…
Sep 15, 2020
79be4d6
Merge branches 'master' and 'master' of https://github.com/apache/inc…
Sep 18, 2020
e5dcf51
Merge branch 'master' of https://github.com/apache/incubator-tvm
Sep 20, 2020
def775b
Merge branch 'master' of https://github.com/apache/incubator-tvm
Sep 20, 2020
53815e8
Merge branches 'master' and 'master' of https://github.com/apache/inc…
Sep 22, 2020
b6b920d
Merge branch 'master' of https://github.com/apache/incubator-tvm
Sep 23, 2020
15584c2
Merge branches 'master' and 'master' of https://github.com/apache/inc…
Sep 23, 2020
785b485
Merge branches 'master' and 'master' of https://github.com/apache/inc…
Sep 27, 2020
961497f
Merge branch 'master' of https://github.com/apache/incubator-tvm
Sep 28, 2020
f762ff4
Merge branch 'master' of https://github.com/apache/incubator-tvm
Oct 2, 2020
329f93b
Merge branches 'master' and 'master' of https://github.com/apache/inc…
Oct 2, 2020
a11d59e
Merge branch 'master' of https://github.com/apache/incubator-tvm
Oct 8, 2020
a3f2e57
Merge branch 'master' of https://github.com/apache/incubator-tvm
Oct 10, 2020
a56abe7
Merge branch 'master' of https://github.com/apache/incubator-tvm
Oct 11, 2020
61b6e6f
Merge branch 'main' of https://github.com/apache/incubator-tvm
Oct 13, 2020
38a1503
Merge branch 'main' of https://github.com/apache/incubator-tvm
Oct 14, 2020
639b0ea
Merge branch 'main' of https://github.com/apache/incubator-tvm
Oct 19, 2020
09ebb5a
Merge branch 'main' of https://github.com/apache/incubator-tvm
Oct 24, 2020
d84be7e
Merge branch 'main' of https://github.com/apache/incubator-tvm
Oct 26, 2020
4279984
Merge branch 'main' of https://github.com/apache/incubator-tvm
Oct 29, 2020
a27ce88
Merge branch 'main' of https://github.com/apache/incubator-tvm
Nov 3, 2020
695da72
Merge branch 'main' of https://github.com/apache/incubator-tvm
Nov 4, 2020
1372b43
fix String::fromwe() to String::from()
Nov 4, 2020
9397156
Merge branch 'main' of https://github.com/apache/incubator-tvm
Nov 8, 2020
11a22e5
Merge branch 'main' of https://github.com/apache/incubator-tvm
Nov 10, 2020
bda5d54
Merge branches 'main' and 'main' of https://github.com/apache/incubat…
Nov 11, 2020
097142a
Merge branch 'main' of https://github.com/apache/incubator-tvm
Nov 13, 2020
099246d
Merge branch 'main' of https://github.com/apache/incubator-tvm
Nov 15, 2020
8489fab
Merge branch 'main' of https://github.com/apache/incubator-tvm
Nov 16, 2020
acedc6e
Merge branch 'main' of https://github.com/apache/incubator-tvm
Nov 21, 2020
cde9c52
Merge branch 'main' of https://github.com/apache/incubator-tvm
Nov 23, 2020
5a2d618
Merge branch 'main' of https://github.com/apache/incubator-tvm
Dec 1, 2020
0505065
Merge branch 'main' of https://github.com/apache/incubator-tvm
Dec 2, 2020
322da53
Merge branch 'main' of https://github.com/apache/incubator-tvm
Dec 8, 2020
c7a9522
Merge branch 'main' of https://github.com/apache/incubator-tvm
Dec 9, 2020
c46ace8
Merge branch 'main' of https://github.com/apache/incubator-tvm
Dec 9, 2020
c5f4254
Merge branch 'main' of https://github.com/apache/incubator-tvm
Dec 10, 2020
b6186ba
Merge branch 'main' of https://github.com/apache/incubator-tvm
Dec 11, 2020
122fa7f
Merge branch 'main' of https://github.com/apache/incubator-tvm
Dec 14, 2020
4922758
Merge branch 'main' of https://github.com/apache/incubator-tvm
Dec 15, 2020
6c7730d
Merge branch 'main' of https://github.com/apache/incubator-tvm
Dec 16, 2020
50aee3a
Merge branch 'main' of https://github.com/apache/incubator-tvm
Dec 18, 2020
e8a0f74
Merge branch 'main' of https://github.com/apache/incubator-tvm
Dec 18, 2020
ddc6281
Merge branch 'apache:main' into master
mikeseven Oct 20, 2021
c186bbc
Merge branch 'apache:main' into master
mikeseven Oct 26, 2021
6b91a0d
Merge branch 'apache:main' into master
mikeseven Oct 27, 2021
ea4ad84
Merge branch 'apache:main' into master
mikeseven Nov 11, 2021
310d41e
Merge branch 'apache:main' into master
mikeseven Aug 30, 2022
91fadac
Merge branch 'apache:main' into master
mikeseven May 23, 2023
aac6d88
torch squeeze can use a list of axis
May 23, 2023
5488201
Merge branch 'fix_pytorch_axis' of https://github.com/mikeseven/tvm i…
May 23, 2023
d98f224
added test for squeeze with multiple axis (pytorch 2)
May 24, 2023
2ad163e
clean old code
May 24, 2023
9166241
code without reformating
May 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/tvm/relay/frontend/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ def squeeze(self, inputs, input_types):
axis = None
else:
# TODO (t-vi): why is the cast to int needed? similarly elsewhere
axis = [int(inputs[1])]
inputs = [inputs[1]] if not isinstance(inputs[1], list) else inputs[1]
axis = [int(v) for v in inputs]

return _op.transform.squeeze(data, axis)

Expand Down
6 changes: 6 additions & 0 deletions tests/python/frontend/pytorch/test_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,9 +578,15 @@ class Squeeze2(Module):
def forward(self, *args):
return args[0].squeeze(1)

class Squeeze3(Module):
def forward(self, *args):
return args[0].squeeze((1, 3))

input_data = torch.rand(input_shape).float()
verify_model(Squeeze1().float().eval(), input_data=input_data)
verify_model(Squeeze2().float().eval(), input_data=input_data)
if package_version.parse(torch.__version__) >= package_version.parse("2.0.0"):
verify_model(Squeeze3().float().eval(), input_data=input_data)


@tvm.testing.uses_gpu
Expand Down