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.
Click to show internal directories.
Click to hide internal directories.