Method: OnnxChainer::CLI#run

Defined in:
lib/onnx-chainer/cli.rb

#runObject



28
29
30
31
32
33
34
35
# File 'lib/onnx-chainer/cli.rb', line 28

def run
  if @help || @argv.empty?
    puts @parser.help
  else
    graph = OnnxChainer.parse_file(@onnx_path)
    graph.export(output_dir: @output, model_name: @model_name)
  end
end