[TensorExpr] Add print functions for Tensor and Function. (#38175)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/38175
Also, make Tensor derived from KernelScopedObject - we must have missed
that originally.
Test Plan: Imported from OSS
Reviewed By: resistor
Differential Revision: D21489136
Pulled By: ZolotukhinM
fbshipit-source-id: fe003f44ef1265629fd84befc2e9ec8f48d2fc4f
Author
Mikhail Zolotukhin