Note that this function is simply doing isinstance(obj, Tensor) . Using that isinstance check is better for typechecking with mypy, and more explicit - so ...
確定! 回上一頁