Discover Packages
github.com/tmc/apple
x
coremlcompiler
nnproto
package
Version:
v0.6.17
Opens a new window with list of versions in this module.
Published: Aug 22, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package nnproto encodes CoreML NeuralNetwork models (specification version 1)
as .mlmodel protobuf bytes. It provides the protobuf construction required
to build ANE-executable models without external dependencies.
func FFNReLU2(d, f, seq int, w1, w2 []float32) ([]byte, error)
type Feature
type Layer
func Conv1x1(name, input, output string, inC, outC int, weights []float32) (Layer, error)
func Multiply(name string, inputs []string, output string) Layer
func ReLU(name, input, output string) Layer
type Model
FFNReLU2 builds a Model computing out = W2·relu(W1·x)² over input [d, 1, seq] with argument validation.
Feature names a model input or output and specifies its shape.
Layer is an encoded NeuralNetworkLayer message.
Conv1x1 encodes a 1x1 Convolution NeuralNetworkLayer with argument validation.
Multiply encodes an elementwise multiply NeuralNetworkLayer.
ReLU encodes a ReLU activation NeuralNetworkLayer.
Model describes a CoreML NeuralNetwork model.
Encode serializes the Model into .mlmodel protobuf bytes with validation.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.