protoc_onnx_protos

command
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

protoc_onnx_protos compiles the .proto from the https://github.com/onnx/onnx sources to subpackages of onnx-gomlx/internal/protos.

It uses the standard `protoc` tool. Remember to update your go protoc plugin with `go install google.golang.org/protobuf/cmd/protoc-gen-go@latest`

It should be executed under the onnx-gomlx/internal/protos directory -- suggested as a go:generate -- and it requires ONNX_SRC to be set to a cloned github.com/onnx/onnx repository.

It copies over the proto files from "${ONNX_SRC}" to the current directory, editing its contents to onnx-gomlx repository. Then it executes `protoc` to generate the Go code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL