 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package materialise defines interfaces and helper functions to transform elements into graph nodes.
Index ¶
- func All(am Materialiser, els []ir.Element) ([]ops.Node, error)
- func AllWithShapes(am Materialiser, els []ir.Element) ([]*ops.OutputNode, error)
- func Element(am Materialiser, el ir.Element) (ops.Node, *shape.Shape, error)
- func Flatten(mat Materialiser, elts ...ir.Element) ([]ops.Node, []*shape.Shape, error)
- type ElementMaterialiser
- type Materialiser
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllWithShapes ¶
func AllWithShapes(am Materialiser, els []ir.Element) ([]*ops.OutputNode, error)
AllWithShapes materialises a slice of elements into a slice of output graph nodes.
Types ¶
type ElementMaterialiser ¶
type ElementMaterialiser interface {
	ir.Element
	// Materialise returns the element with all its values from the graph.
	Materialise(Materialiser) (Node, error)
}
    ElementMaterialiser is an element that can return an instance of itself composed only of elements from the backend ops.
type Materialiser ¶
type Materialiser interface {
	// Graph returns the graph to which new nodes are being added.
	Graph() ops.Graph
	// Materialise returns the element with all its values from the graph.
	NodeFromArray(file *ir.File, expr ir.AssignableExpr, val values.Array) (Node, error)
	// ElementsFromNodes returns a slice of elements from nodes
	ElementsFromNodes(file *ir.File, expr ir.AssignableExpr, nodes ...*ops.OutputNode) ([]ir.Element, error)
}
    Materialiser materialises an array.
 Click to show internal directories. 
   Click to hide internal directories.