Documentation
¶
Index ¶
- Variables
- type DominatorTree
- type Graph
- type GraphEdge
- type GraphNode
- func (nd GraphNode) Attributes() []encoding.Attribute
- func (nd *GraphNode) Benchmarks() benchmark.Benchmarks
- func (nd GraphNode) DOTID() string
- func (nd GraphNode) GetRuntime() *time.Duration
- func (nd GraphNode) ID() int64
- func (nd GraphNode) Layer() dlperf.Layer
- func (nd *GraphNode) SetBenchmarks(bs benchmark.Benchmarks)
- func (nd *GraphNode) SetID(id int64)
- func (nd *GraphNode) SetRuntime(t time.Duration)
- type GraphNodes
- type GraphOption
- type GraphOptions
- type Onnx
- func (o Onnx) BatchSize() int64
- func (o Onnx) Dominators() DominatorTree
- func (o Onnx) FindSubGraphs() ([]Graph, error)
- func (o Onnx) FlopsInformation() dlperf.FlopsInformation
- func (o Onnx) GetValueInfoDimensions(names []string) []dlperf.Shape
- func (o *Onnx) Information() ([]dlperf.LayerInformation, error)
- func (o Onnx) MemoryInformation() dlperf.MemoryInformation
- func (o Onnx) Network() *Graph
- func (o Onnx) NodeSubsequences(oo ...PatternOption) (Patterns, error)
- func (o Onnx) Show()
- func (o Onnx) String() string
- func (o *Onnx) ToGraph(oo ...GraphOption) *Graph
- func (o Onnx) TopologicallyOrderedNodes(oo ...GraphOption) (GraphNodes, error)
- type Pattern
- type PatternOption
- type PatternOptions
- type Patterns
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPrunedLayerTypes = []string{
"identity",
"Relu",
"mul",
"concat",
"maxpool",
"sum",
"reshape",
"pRelu",
"gemm",
"dropout",
"averagepool",
"transpose",
"globalaveragepool",
"lrn",
"leakyRelu",
"matmul",
"imagescaler",
"unsqueeze",
"sub",
"identity",
}
Functions ¶
This section is empty.
Types ¶
type DominatorTree ¶
type DominatorTree struct {
flow.DominatorTree
}
A DominatorTree represents a dominator tree.
type Graph ¶
type Graph struct {
Root *GraphNode
*simple.WeightedDirectedGraph
// contains filtered or unexported fields
}
func (Graph) DOTAttributers ¶
func (g Graph) DOTAttributers() (graph, node, edge encoding.Attributer)
func (Graph) Dominators ¶
func (grph Graph) Dominators() DominatorTree
func (Graph) FindSubGraphs ¶
func (Graph) TopologicallyOrderedNodes ¶
func (g Graph) TopologicallyOrderedNodes() (GraphNodes, error)
type GraphEdge ¶
type GraphEdge struct {
graph.WeightedEdge
// contains filtered or unexported fields
}
func (GraphEdge) Attributes ¶
type GraphNode ¶
func (GraphNode) Attributes ¶
func (*GraphNode) Benchmarks ¶
func (nd *GraphNode) Benchmarks() benchmark.Benchmarks
func (GraphNode) GetRuntime ¶
func (*GraphNode) SetBenchmarks ¶
func (nd *GraphNode) SetBenchmarks(bs benchmark.Benchmarks)
func (*GraphNode) SetRuntime ¶
type GraphNodes ¶
type GraphNodes []*GraphNode
type GraphOption ¶
type GraphOption func(*GraphOptions)
func GraphInputsAsConstantNodes ¶
func GraphInputsAsConstantNodes(b bool) GraphOption
func GraphPruneInputs ¶
func GraphPruneInputs(b bool) GraphOption
type GraphOptions ¶
func NewGraphOptions ¶
func NewGraphOptions(oo ...GraphOption) GraphOptions
type Onnx ¶
type Onnx struct {
*onnx.ModelProto
*onnx.GraphProto
// contains filtered or unexported fields
}
func (Onnx) Dominators ¶
func (o Onnx) Dominators() DominatorTree
func (Onnx) FindSubGraphs ¶
func (Onnx) FlopsInformation ¶
func (o Onnx) FlopsInformation() dlperf.FlopsInformation
func (Onnx) GetValueInfoDimensions ¶
func (*Onnx) Information ¶
func (o *Onnx) Information() ([]dlperf.LayerInformation, error)
func (Onnx) MemoryInformation ¶
func (o Onnx) MemoryInformation() dlperf.MemoryInformation
func (Onnx) NodeSubsequences ¶
func (o Onnx) NodeSubsequences(oo ...PatternOption) (Patterns, error)
func (*Onnx) ToGraph ¶
func (o *Onnx) ToGraph(oo ...GraphOption) *Graph
func (Onnx) TopologicallyOrderedNodes ¶
func (o Onnx) TopologicallyOrderedNodes(oo ...GraphOption) (GraphNodes, error)
type Pattern ¶
type Pattern struct {
Nodes GraphNodes
Occurrences int64
}
type PatternOption ¶
type PatternOption func(*PatternOptions)
func PatternLength ¶
func PatternLength(i int) PatternOption
func PatternPruneGraph ¶
func PatternPruneGraph(b bool) PatternOption
func PatternPruneGraphLayers ¶
func PatternPruneGraphLayers(s []string) PatternOption
type PatternOptions ¶
func NewPatternOptions ¶
func NewPatternOptions(oo ...PatternOption) PatternOptions
Click to show internal directories.
Click to hide internal directories.