public abstract class OpPredicate extends Object
DifferentialFunction
) matches or not.Constructor and Description |
---|
OpPredicate() |
Modifier and Type | Method and Description |
---|---|
static OpPredicate |
classEquals(Class<?> c)
Return true if the operation class is equal to the specified class
|
abstract boolean |
matches(SameDiff sameDiff,
DifferentialFunction function) |
static OpPredicate |
nameEquals(String name)
Return true if the operation own (user specified) name equals the specified name
|
static OpPredicate |
nameMatches(String regex)
Return true if the operation own (user specified) name matches the specified regular expression
|
static OpPredicate |
opNameEquals(String opName)
Return true if the operation name (i.e., "add", "mul", etc - not the user specified name) equals the specified name
|
static OpPredicate |
opNameMatches(String regex)
Return true if the operation name (i.e., "add", "mul", etc - not the user specified name) matches the specified regular expression
|
public abstract boolean matches(SameDiff sameDiff, DifferentialFunction function)
sameDiff
- SameDiff instance the function belongs tofunction
- public static OpPredicate nameEquals(String name)
public static OpPredicate opNameEquals(String opName)
public static OpPredicate nameMatches(String regex)
public static OpPredicate opNameMatches(String regex)
public static OpPredicate classEquals(Class<?> c)
Copyright © 2020. All rights reserved.