Command line tool
narchi_cli.py validate
Command for checking the validity of neural network module architecture files.
usage: narchi_cli.py validate [-h] [--version] [--cfg CFG]
[--print_config [={comments,skip_null}+]]
[--validate {true,false}]
[--propagate {true,false}]
[--propagated {true,false}]
[--propagators PROPAGATORS]
[--ext_vars EXT_VARS] [--cwd CWD]
[--parent_id PARENT_ID]
[--overwrite {true,false}] [--outdir OUTDIR]
[--save_json {true,false}]
jsonnet_paths [jsonnet_paths ...]
Positional Arguments
- jsonnet_paths
Path(s) to neural network module architecture file(s) in jsonnet narchi format.
Named Arguments
- --version
Print version and exit.
- --cfg
Path to a configuration file.
- --print_config
Print configuration and exit.
narchi_cli.py render
Command for rendering a neural network module architecture file.
usage: narchi_cli.py render [-h] [--version] [--cfg CFG]
[--print_config [={comments,skip_null}+]]
[--validate {true,false}]
[--propagate {true,false}]
[--propagated {true,false}]
[--propagators PROPAGATORS] [--ext_vars EXT_VARS]
[--cwd CWD] [--parent_id PARENT_ID]
[--overwrite {true,false}] [--outdir OUTDIR]
[--save_json {true,false}]
[--save_pdf {true,false}] [--save_gv {true,false}]
[--block_attrs BLOCK_ATTRS]
[--block_labels BLOCK_LABELS]
[--edge_attrs EDGE_ATTRS]
[--nested_depth NESTED_DEPTH]
[--full_ids {true,false}]
[--layout_prog {dot,neato,twopi,circo,fdp}]
jsonnet_path [out_file]
Positional Arguments
- jsonnet_path
Path to a neural network module architecture file in jsonnet narchi format.
- out_file
Path where to write the architecture diagram (with a valid extension for pygraphviz draw). If unset a pdf is saved to the output directory.
Named Arguments
- --version
Print version and exit.
- --cfg
Path to a configuration file.
- --print_config
Print configuration and exit.
narchi_cli.py schema
Prints a schema as a pretty json.
usage: narchi_cli.py schema [-h] [{narchi,propagated,reshape,block,mappings}]
Positional Arguments
- schema
Possible choices: narchi, propagated, reshape, block, mappings
Which of the available schemas to print.
Default: “narchi”