C++ API parity: at::Tensor::is_leaf
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/26186
Test Plan: Imported from OSS
Differential Revision: D17427580
Pulled By: pbelevich
fbshipit-source-id: c01362a3b1fdb0bd1dfc158dbf6fe1cf1d928761