Enum ProfileAnalyzer.SortBy
- java.lang.Object
-
- java.lang.Enum<ProfileAnalyzer.SortBy>
-
- org.nd4j.autodiff.listeners.profiler.comparison.ProfileAnalyzer.SortBy
-
- All Implemented Interfaces:
Serializable,Comparable<ProfileAnalyzer.SortBy>
- Enclosing class:
- ProfileAnalyzer
public static enum ProfileAnalyzer.SortBy extends Enum<ProfileAnalyzer.SortBy>
Only applicable for profile comparisons.
PROFILE1_PC - sort by profile 1 percentage of total time
PROFILE2_PC - sort by profile 2 percentage of total time
RATIO - sort by highest ratio (mean op time profile 1 / mean op time profile 2)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PROFILE1_PCPROFILE2_PCRATIO
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProfileAnalyzer.SortByvalueOf(String name)Returns the enum constant of this type with the specified name.static ProfileAnalyzer.SortBy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROFILE1_PC
public static final ProfileAnalyzer.SortBy PROFILE1_PC
-
PROFILE2_PC
public static final ProfileAnalyzer.SortBy PROFILE2_PC
-
RATIO
public static final ProfileAnalyzer.SortBy RATIO
-
-
Method Detail
-
values
public static ProfileAnalyzer.SortBy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProfileAnalyzer.SortBy c : ProfileAnalyzer.SortBy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProfileAnalyzer.SortBy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-