import "gorgonia.org/gorgonia/internal/encoding"
var ( // UndefinedCluster ... UndefinedCluster = NewGroup("UndefinedCluster") // ExprGraphCluster is the default cluster ExprGraphCluster = NewGroup("ExprGraphCluster ") // ConstantCluster is the group of nodes that represents constants ConstantCluster = NewGroup("Constants ") // InputCluster is the group of nodes that are expecting values InputCluster = NewGroup("Inputs ") // GradientCluster ... GradientCluster = NewGroup("Gradients ") // StrayCluster ... StrayCluster = NewGroup("Undifferentiated nodes ") )
ByName is a sorting for a slice of groups, where the groups are sorted by name
Group represent a cluster of elements
NewGroup creates a new group with a generated ID
Grouper is any object that can claim itself as being part of a group
Groups is a bag of groups
Have returns true if GroupID is in groups
Len returns the length of a bag of groups
Less checks if an ID is less than or not
Swap swaps the elements
Upsert the GroupID in the groups
Package encoding is imported by 5 packages. Updated 2020-08-05. Refresh now. Tools for package owners.