rofunc.utils.oslab.path#

1.  Module Contents#

1.1.  Functions#

get_rofunc_path

Get the path of the rofunc package.

get_elegantrl_path

Get the path of the elegantrl package.

check_ckpt_exist

Check if the checkpoint file exists.

is_absl_path

Check if the path is an absolute path.

1.2.  API#

rofunc.utils.oslab.path.get_rofunc_path()[source]#

Get the path of the rofunc package.

Returns:

the absolute path of the rofunc package

rofunc.utils.oslab.path.get_elegantrl_path()[source]#

Get the path of the elegantrl package.

Returns:

the absolute path of the elegantrl package

rofunc.utils.oslab.path.check_ckpt_exist(ckpt_name)[source]#

Check if the checkpoint file exists.

Parameters:

ckpt_name – the name of the checkpoint file

Returns:

True if the checkpoint file exists, False otherwise

rofunc.utils.oslab.path.is_absl_path(path)[source]#

Check if the path is an absolute path.

Parameters:

path – the path to be checked

Returns:

True if the path is an absolute path, False otherwise