Rate this Page

import_from_string#

torchrl.render.import_from_string(spec: str) Any[source]#

Imports an object from a "module:attribute" string.

Parameters:

spec – Import specification.

Returns:

The imported Python object.