public class DnnCPInstruction extends UnaryCPInstruction
CPInstruction.CPType
Instruction.IType
input1, input2, input3, output
DATATYPE_PREFIX, FEDERATED_INST_PREFIX, GPU_INST_PREFIX, INSTRUCTION_DELIM, LITERAL_PREFIX, OPERAND_DELIM, SP_INST_PREFIX, VALUETYPE_PREFIX
Constructor and Description |
---|
DnnCPInstruction(CPOperand in,
CPOperand in2,
CPOperand in3,
CPOperand out,
ArrayList<CPOperand> stride,
ArrayList<CPOperand> padding,
ArrayList<CPOperand> input_shape,
ArrayList<CPOperand> filter_shape,
int numThreads,
double intermediateMemoryBudget,
String opcode,
String istr) |
DnnCPInstruction(CPOperand in1,
CPOperand in2,
CPOperand in3,
CPOperand in4,
CPOperand in5,
CPOperand in6,
CPOperand in7,
CPOperand in8,
CPOperand out,
CPOperand out2,
CPOperand out3,
CPOperand out4,
CPOperand out5,
String opcode,
String istr,
double intermediateMemoryBudget) |
DnnCPInstruction(CPOperand in,
CPOperand in2,
CPOperand in3,
CPOperand out,
String opcode,
String istr,
ArrayList<CPOperand> stride,
ArrayList<CPOperand> padding,
ArrayList<CPOperand> input_shape,
ArrayList<CPOperand> filter_shape,
int numThreads,
double intermediateMemoryBudget) |
DnnCPInstruction(CPOperand in,
CPOperand in2,
CPOperand out,
String opcode,
String istr,
ArrayList<CPOperand> stride,
ArrayList<CPOperand> padding,
ArrayList<CPOperand> input_shape,
ArrayList<CPOperand> filter_shape,
int numThreads,
double intermediateMemoryBudget) |
DnnCPInstruction(CPOperand in,
CPOperand in2,
CPOperand out,
String opcode,
String istr,
int numThreads,
double intermediateMemoryBudget) |
Modifier and Type | Method and Description |
---|---|
static DnnCPInstruction |
parseInstruction(String str) |
void |
processBatchNorm2dBackwardInstruction(ExecutionContext ec) |
void |
processBatchNorm2dInstruction(ExecutionContext ec) |
void |
processBiasAddInstruction(ExecutionContext ec) |
void |
processBiasMultiplyInstruction(ExecutionContext ec) |
void |
processInstruction(ExecutionContext ec)
This method should be used to execute the instruction.
|
void |
processReluBackwardInstruction(ExecutionContext ec) |
getInputs, getLineageItem, getOutput, getOutputVariableName
getCPInstructionType, getGraphString, getType, preprocessInstruction, requiresLabelUpdate, updateLabels
getBeginColumn, getBeginLine, getEndColumn, getEndLine, getExtendedOpcode, getFilename, getInstID, getInstructionString, getLineNum, getOpcode, getOperator, getPrivacyConstraint, postprocessInstruction, printMe, setInstID, setLocation, setLocation, setLocation, setLocation, setPrivacyConstraint, setPrivacyConstraint, toString, updateInstructionThreadID
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLineageItems, hasSingleLineage
public DnnCPInstruction(CPOperand in, CPOperand in2, CPOperand in3, CPOperand out, ArrayList<CPOperand> stride, ArrayList<CPOperand> padding, ArrayList<CPOperand> input_shape, ArrayList<CPOperand> filter_shape, int numThreads, double intermediateMemoryBudget, String opcode, String istr)
public DnnCPInstruction(CPOperand in, CPOperand in2, CPOperand out, String opcode, String istr, int numThreads, double intermediateMemoryBudget)
public DnnCPInstruction(CPOperand in, CPOperand in2, CPOperand out, String opcode, String istr, ArrayList<CPOperand> stride, ArrayList<CPOperand> padding, ArrayList<CPOperand> input_shape, ArrayList<CPOperand> filter_shape, int numThreads, double intermediateMemoryBudget)
public DnnCPInstruction(CPOperand in, CPOperand in2, CPOperand in3, CPOperand out, String opcode, String istr, ArrayList<CPOperand> stride, ArrayList<CPOperand> padding, ArrayList<CPOperand> input_shape, ArrayList<CPOperand> filter_shape, int numThreads, double intermediateMemoryBudget)
public DnnCPInstruction(CPOperand in1, CPOperand in2, CPOperand in3, CPOperand in4, CPOperand in5, CPOperand in6, CPOperand in7, CPOperand in8, CPOperand out, CPOperand out2, CPOperand out3, CPOperand out4, CPOperand out5, String opcode, String istr, double intermediateMemoryBudget) throws DMLRuntimeException
DMLRuntimeException
public static DnnCPInstruction parseInstruction(String str)
public void processReluBackwardInstruction(ExecutionContext ec)
public void processBiasAddInstruction(ExecutionContext ec)
public void processBiasMultiplyInstruction(ExecutionContext ec)
public void processBatchNorm2dInstruction(ExecutionContext ec)
public void processBatchNorm2dBackwardInstruction(ExecutionContext ec)
public void processInstruction(ExecutionContext ec)
Instruction
processInstruction
in class CPInstruction
ec
- execution contextCopyright © 2020 The Apache Software Foundation. All rights reserved.