Class DnnCPInstruction
- java.lang.Object
- 
- org.apache.sysds.runtime.instructions.Instruction
- 
- org.apache.sysds.runtime.instructions.cp.CPInstruction
- 
- org.apache.sysds.runtime.instructions.cp.ComputationCPInstruction
- 
- org.apache.sysds.runtime.instructions.cp.UnaryCPInstruction
- 
- org.apache.sysds.runtime.instructions.cp.DnnCPInstruction
 
 
 
 
 
- 
- All Implemented Interfaces:
- LineageTraceable
 
 public class DnnCPInstruction extends UnaryCPInstruction 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.sysds.runtime.instructions.cp.CPInstructionCPInstruction.CPType
 - 
Nested classes/interfaces inherited from class org.apache.sysds.runtime.instructions.InstructionInstruction.IType
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.sysds.runtime.instructions.cp.ComputationCPInstructioninput1, input2, input3, output
 - 
Fields inherited from class org.apache.sysds.runtime.instructions.InstructionDATATYPE_PREFIX, FEDERATED_INST_PREFIX, GPU_INST_PREFIX, INSTRUCTION_DELIM, LITERAL_PREFIX, OPERAND_DELIM, SP_INST_PREFIX, VALUETYPE_PREFIX
 
- 
 - 
Constructor SummaryConstructors Constructor Description DnnCPInstruction(CPOperand in, CPOperand in2, CPOperand out, String opcode, String istr, 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 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 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)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DnnCPInstructionparseInstruction(String str)voidprocessBatchNorm2dBackwardInstruction(ExecutionContext ec)voidprocessBatchNorm2dInstruction(ExecutionContext ec)voidprocessBiasAddInstruction(ExecutionContext ec)voidprocessBiasMultiplyInstruction(ExecutionContext ec)voidprocessInstruction(ExecutionContext ec)This method should be used to execute the instruction.voidprocessReluBackwardInstruction(ExecutionContext ec)- 
Methods inherited from class org.apache.sysds.runtime.instructions.cp.ComputationCPInstructiongetInputs, getLineageItem, getOutput, getOutputVariableName
 - 
Methods inherited from class org.apache.sysds.runtime.instructions.cp.CPInstructiongetCPInstructionType, getGraphString, getType, postprocessInstruction, preprocessInstruction, requiresLabelUpdate, updateLabels
 - 
Methods inherited from class org.apache.sysds.runtime.instructions.InstructiongetBeginColumn, getBeginLine, getEndColumn, getEndLine, getExtendedOpcode, getFilename, getInstID, getInstructionString, getLineNum, getOpcode, getOperator, getPrivacyConstraint, printMe, setInstID, setLocation, setLocation, setLocation, setLocation, setPrivacyConstraint, setPrivacyConstraint, toString, updateInstructionThreadID
 - 
Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.sysds.runtime.lineage.LineageTraceablegetLineageItems, hasSingleLineage
 
- 
 
- 
- 
- 
Constructor Detail- 
DnnCPInstructionpublic 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) 
 - 
DnnCPInstructionpublic DnnCPInstruction(CPOperand in, CPOperand in2, CPOperand out, String opcode, String istr, int numThreads, double intermediateMemoryBudget) 
 - 
DnnCPInstructionpublic 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) 
 - 
DnnCPInstructionpublic 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) 
 - 
DnnCPInstructionpublic 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 - Throws:
- DMLRuntimeException
 
 
- 
 - 
Method Detail- 
parseInstructionpublic static DnnCPInstruction parseInstruction(String str) 
 - 
processReluBackwardInstructionpublic void processReluBackwardInstruction(ExecutionContext ec) 
 - 
processBiasAddInstructionpublic void processBiasAddInstruction(ExecutionContext ec) 
 - 
processBiasMultiplyInstructionpublic void processBiasMultiplyInstruction(ExecutionContext ec) 
 - 
processBatchNorm2dInstructionpublic void processBatchNorm2dInstruction(ExecutionContext ec) 
 - 
processBatchNorm2dBackwardInstructionpublic void processBatchNorm2dBackwardInstruction(ExecutionContext ec) 
 - 
processInstructionpublic void processInstruction(ExecutionContext ec) Description copied from class:InstructionThis method should be used to execute the instruction.- Specified by:
- processInstructionin class- CPInstruction
- Parameters:
- ec- execution context
 
 
- 
 
-