[TensorExpr] PyBinds: improve QoL of pybind users. (#64886)
authorMikhail Zolotukhin <mvz@fb.com>
Tue, 14 Sep 2021 07:19:57 +0000 (00:19 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 14 Sep 2021 07:21:28 +0000 (00:21 -0700)
commit199031c48e0dd9dc41c02a014e6f5727c50959ca
treed6e33c1e7d73f8e780a66ec655fdfb3723615029
parentcaaa6efc1aad7287f0ad8f881ae760190350baa8
[TensorExpr] PyBinds: improve QoL of pybind users. (#64886)

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

Bind methods for implicit conversions and constructors to avoid
boilerplate code.

Differential Revision:
D30889193
D30889193

Test Plan: Imported from OSS

Reviewed By: jbschlosser

Pulled By: ZolotukhinM

fbshipit-source-id: 137c0c98f7f1576e1bb97c8de8a900b28407a30e
test/test_tensorexpr_pybind.py
torch/csrc/jit/tensorexpr/tensorexpr_init.cpp