James Reed
db86c8c6f5
Test BC for built-in torchbind methods ( #38560 )
...
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/38560
Test Plan: Imported from OSS
Reviewed By: ngimel
Differential Revision: D21598067
Pulled By: jamesr66a
fbshipit-source-id: 26a0e92a5c2883326be261cf84b7e916ebfd60d8
2020-05-15 19:06:59 -07:00
Sebastian Messmer
fc528ccbaf
[wip] Allow ArrayRef as kernel parameter ( #34335 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34335
ghstack-source-id: 102625264
Test Plan: waitforsandcastle
Differential Revision: D20296841
fbshipit-source-id: 123e6eae304dbca17d8f7474a79fb3b4769d23ad
2020-04-24 13:05:49 -07:00
Sebastian Messmer
7ee88d61f7
Rename boxing/unboxing files and utilities ( #35411 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35411
The file and class names in ATen/core/boxing were quite confusing.
Let's rename them for readability.
Also move function schema inference out of the boxing logic into op_registration.h where it belongs.
ghstack-source-id: 101539206
Test Plan: waitforsandcastle
Differential Revision: D20653621
fbshipit-source-id: 6a79c73d5758bee1e072d543c030913b18a69c7c
2020-04-04 14:13:28 -07:00
Michael Suo
cfcb63de34
custom class method holder should hold a unique_ptr ( #35218 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35218
We should express the ownership semantics directly here. Using
`shared_ptr` makes it too easy to leak ownership by inadvertently
storing a copy.
Test Plan: Imported from OSS
Differential Revision: D20682673
Pulled By: suo
fbshipit-source-id: 32002ee515eb8bb7b37e6d0aac3c0695df4eec79
2020-03-27 16:58:40 -07:00
James Reed
618c6214aa
[reapply][JIT] Namespaces for TorchBind ( #35254 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35254
Reapply D20541090 with some BC fixes
ghstack-source-id: 100733987
Test Plan: buck test mode/dev-nosan //caffe2/torch/fb/predictor/model_repo/tests:ai_infra_representative_model_shard_6_test -- 'RepresentativeModelTest\/ShardedRepresentativeModelTest\.RunModel\/0'
Reviewed By: zdevito
Differential Revision: D20607111
fbshipit-source-id: 80f148d860571208c93e9308128cd480ff089f74
2020-03-24 00:39:48 -07:00
Lu Fang
a100cf5146
Revert D20541090: [JIT][torchbind] Namespaces for torchbind classes
...
Test Plan: revert-hammer
Differential Revision:
D20541090
Original commit changeset: ce3d9391dd3c
fbshipit-source-id: acc1d660fbda611941381315507dfe594c385db1
2020-03-21 12:20:44 -07:00
James Reed
e0496a70fc
[JIT][torchbind] Namespaces for torchbind classes ( #35054 )
...
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/35054
Test Plan: Imported from OSS
Differential Revision: D20541090
Pulled By: jamesr66a
fbshipit-source-id: ce3d9391dd3cdf619042b8f6ba2645f4c1fc875c
2020-03-20 20:07:02 -07:00
James Reed
153b16ef4c
Doxygen for torchbind ( #35007 )
...
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/35007
Test Plan: Imported from OSS
Reviewed By: driazati
Differential Revision: D20525680
Pulled By: jamesr66a
fbshipit-source-id: aaa768f395e30dcec8007d50e17f21837c306719
2020-03-18 21:49:24 -07:00
James Reed
fb20621b3b
Move torchbind out of jit namespace ( #34745 )
...
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/34745
Test Plan: Imported from OSS
Differential Revision: D20450239
Pulled By: jamesr66a
fbshipit-source-id: 3f5597626f21d7b5e329b57da358c76b531bf806
2020-03-13 23:03:14 -07:00
James Reed
45a504dd2d
[JIT] Introduce BuiltinOpFunction and integrate into torchbind ( #34098 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34098
* #33900 [JIT] Move stuff out of class_type.cpp
Test Plan: Imported from OSS
Differential Revision: D20229166
Pulled By: jamesr66a
fbshipit-source-id: d658a63a5d6e372e675f35b8456adc8de82b49f3
2020-03-07 10:03:56 -08:00
James Reed
0ea65d63cf
[JIT] Fix stateful lambda stuff and simplify code in custom C++ binding API
...
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/32658
Test Plan: Imported from OSS
Differential Revision: D19584701
Pulled By: jamesr66a
fbshipit-source-id: d556c7db2f32900eb1122348402789b59516a7d7
2020-01-28 11:03:04 -08:00
James Reed
465ebd58ba
[JIT] pickle serialization for custom bound classes
...
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/32604
Test Plan: Imported from OSS
Differential Revision: D19566633
fbshipit-source-id: 9387d3ff45cbd6ccde49ce190a52859481cc301c
2020-01-28 11:02:59 -08:00