Synth Agent

Test Utils

Tools for testing fastrl. fastai has a module with the same name.


get_env

 get_env (name)

Return env var value if it’s defined and not an empty string, or return Unknown


try_import

 try_import (module)

Try to import module. Returns module’s object on success, None on failure


nvidia_mem

 nvidia_mem ()

nvidia_smi

 nvidia_smi (cmd='nvidia-smi')

show_install

 show_install (show_nvidia_smi:bool=False)

Print user’s setup information

This function is ripped directly from 97_test_utils