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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sysds.runtime.instructions.cp.CPInstruction
CPInstruction.CPTypeNested classes/interfaces inherited from class org.apache.sysds.runtime.instructions.Instruction
Instruction.IType -
Field Summary
Fields inherited from class org.apache.sysds.runtime.instructions.cp.ComputationCPInstruction
input1, input2, input3, input4, outputFields inherited from class org.apache.sysds.runtime.instructions.Instruction
DATATYPE_PREFIX, FEDERATED_INST_PREFIX, GPU_INST_PREFIX, INSTRUCTION_DELIM, LITERAL_PREFIX, OOC_INST_PREFIX, OPERAND_DELIM, SP_INST_PREFIX, VALUETYPE_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionDnnCPInstruction(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 out1, CPOperand out2, CPOperand out3, CPOperand out4, CPOperand out5, String opcode, String str, int i) DnnCPInstruction(CPOperand in1, CPOperand in2, CPOperand in3, CPOperand in4, CPOperand in5, CPOperand in6, CPOperand in7, CPOperand in8, CPOperand in9, CPOperand in10, CPOperand in11, CPOperand out, CPOperand out2, CPOperand out3, CPOperand out4, CPOperand out5, String opcode, String istr, double intermediateMemoryBudget) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.lang3.tuple.Pair<String,LineageItem> Obtain lineage trace of an instruction with a single output.static DnnCPInstructionparseInstruction(String str) voidvoidvoidvoidvoidThis method should be used to execute the instruction.voidMethods inherited from class org.apache.sysds.runtime.instructions.cp.ComputationCPInstruction
getInputs, getOutput, getOutputVariableName, hasFrameInputMethods inherited from class org.apache.sysds.runtime.instructions.cp.CPInstruction
getCPInstructionType, getGraphString, getType, postprocessInstruction, preprocessInstruction, requiresLabelUpdate, updateLabelsMethods inherited from class org.apache.sysds.runtime.instructions.Instruction
getBeginColumn, getBeginLine, getEndColumn, getEndLine, getExtendedOpcode, getFilename, getInstID, getInstructionString, getLineNum, getOpcode, getOperator, printMe, setInstID, setLocation, setLocation, setLocation, setLocation, toString, updateInstructionThreadIDMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.sysds.runtime.lineage.LineageTraceable
getLineageItems, hasSingleLineage
-
Constructor Details
-
DnnCPInstruction
-
DnnCPInstruction
-
DnnCPInstruction
-
DnnCPInstruction
-
DnnCPInstruction
-
DnnCPInstruction
public DnnCPInstruction(CPOperand in1, CPOperand in2, CPOperand in3, CPOperand in4, CPOperand in5, CPOperand in6, CPOperand in7, CPOperand in8, CPOperand in9, CPOperand in10, CPOperand in11, CPOperand out, CPOperand out2, CPOperand out3, CPOperand out4, CPOperand out5, String opcode, String istr, double intermediateMemoryBudget) throws DMLRuntimeException - Throws:
DMLRuntimeException
-
-
Method Details
-
parseInstruction
-
processReluBackwardInstruction
-
processBiasAddInstruction
-
processBiasMultiplyInstruction
-
processBatchNorm2dInstruction
-
processBatchNorm2dBackwardInstruction
-
processInstruction
Description copied from class:InstructionThis method should be used to execute the instruction.- Specified by:
processInstructionin classCPInstruction- Parameters:
ec- execution context
-
getLineageItem
Description copied from interface:LineageTraceableObtain lineage trace of an instruction with a single output.- Specified by:
getLineageItemin interfaceLineageTraceable- Overrides:
getLineageItemin classComputationCPInstruction- Parameters:
ec- execution context w/ live variables- Returns:
- pair of (output variable name, output lineage item)
-