Java Code Examples for org.nd4j.autodiff.samediff.SameDiff#SameDiffConditional

The following examples show how to use org.nd4j.autodiff.samediff.SameDiff#SameDiffConditional . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: While.java    From nd4j with Apache License 2.0 5 votes vote down vote up
@Builder
public While(String blockName,
             SameDiff parent,
             SDVariable[] inputVars,
             SameDiff.SameDiffConditional predicate,
             SameDiff.SameDiffFunctionDefinition condition,
             SameDiff.SameDiffFunctionDefinition trueBody) {
    init(blockName,parent,inputVars,predicate,condition,trueBody);
}
 
Example 2
Source File: WhileDerivative.java    From nd4j with Apache License 2.0 4 votes vote down vote up
@Override
public SameDiff.SameDiffConditional getPredicate() {
    return delegate.getPredicate();
}
 
Example 3
Source File: IfDerivative.java    From nd4j with Apache License 2.0 4 votes vote down vote up
@Override
public SameDiff.SameDiffConditional getPredicate() {
    return ifDelegate.getPredicate();
}