Rate this Page

torch.utils.collect_env.run_and_return_first_line#

torch.utils.collect_env.run_and_return_first_line(run_lambda, command)[source]#

Run command using run_lambda and returns first line if output is not empty.