Package com.helix.core.reorder
Class ReorderingPolicyFactory
java.lang.Object
com.helix.core.reorder.ReorderingPolicyFactory
Factory for instantiating and configuring
ReorderingPolicy instances.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ReorderingPolicycreatePolicy(ReorderingPolicyType type, OnnxSessionPool sessionPool) Creates a reordering policy for the specified type.static ReorderingPolicyresolveDefault(OnnxSessionPool sessionPool) Resolves the default reordering policy based on the 'helix.reorder.policy' configuration property.
-
Field Details
-
PROPERTY_KEY
- See Also:
-
-
Method Details
-
createPolicy
Creates a reordering policy for the specified type.- Parameters:
type- policy type (RATIO or NEURAL)sessionPool- ONNX session pool for neural policies- Returns:
- initialized policy instance
-
resolveDefault
Resolves the default reordering policy based on the 'helix.reorder.policy' configuration property.- Parameters:
sessionPool- ONNX session pool- Returns:
- configured policy instance (defaults to RatioSortPolicy)
-