(*cli_args)
| 915 | |
| 916 | # launch viz cli without subprocess |
| 917 | def run_cli(*cli_args) -> list[dict]: |
| 918 | from tinygrad.viz.cli import main, get_arg_parser |
| 919 | args = get_arg_parser().parse_args(cli_args+("--json",)) |
| 920 | with contextlib.redirect_stdout(buf:=io.StringIO()): |
| 921 | main(args) |
| 922 | return [json.loads(line) for line in buf.getvalue().strip().splitlines()] |
| 923 | |
| 924 | @contextlib.contextmanager |
| 925 | def write_files(viz) -> list[str]: |
no test coverage detected
searching dependent graphs…