cfunc

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package cfunc is a function that has been compiled by a backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompiledFunc

type CompiledFunc struct {
	// contains filtered or unexported fields
}

CompiledFunc is a graph compiled for a device.

func Compile

func Compile(dev *api.Device, fn ir.Func, p *processor.Processor, ao materialise.Materialiser, outs []ir.Element) (*CompiledFunc, error)

Compile a function that will be run on a device given some inputs.

func (*CompiledFunc) Run

func (g *CompiledFunc) Run(receiver values.Value, args []values.Value, tracer trace.Callback) ([]values.Value, error)

Run the graph.

Jump to

Keyboard shortcuts

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