backend

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 2 Imported by: 2

README

Repository backend: GX interface specification

Repository backend defines a set of interface to implement to provide GX with a new backend.

A backend is composed of:

  • a platform: a platform provides one or more devices (i.e. accelerators) and the methods to transfer data to and from a device.
  • a graph builder: primitives to build a compute graph for device. A compute graph will be built by GX, compile for a given device, and then run from a host language.

Disclaimer

This is not an official Google DeepMind product (experimental or otherwise), it is just code that happens to be owned by Google-DeepMind.

As of today, we do not consider any part of the language as stable. Breaking changes will happen on a regular basis.

You are welcome to send PR or to report bugs. We will do our best to answer but there is no guarantee that you will get a response.

Documentation

Overview

Package backend defines the abstraction to implement for a GX backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	// Platform supporting the backend.
	Platform() platform.Platform

	// NewOps returns a new ops builder.
	NewOps(name string) (ops.Graph, error)
}

Backend is a GX backend.

Directories

Path Synopsis
Package dtype defines data types that can be supported by a platform.
Package dtype defines data types that can be supported by a platform.
Package ops defines the operations backend can build.
Package ops defines the operations backend can build.
Package platform defines the interface for a GX
Package platform defines the interface for a GX
Package shape defines the shape of an array.
Package shape defines the shape of an array.

Jump to

Keyboard shortcuts

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