Rate this Page
★ ★ ★ ★ ★

is_tensorclass#

tensordict.is_tensorclass(obj: type | Any) → bool#

Returns True if obj is either a tensorclass or an instance of a tensorclass.