public abstract class BinarySPInstruction extends ComputationSPInstruction
SPInstruction.SPINSTRUCTION_TYPEInstruction.INSTRUCTION_TYPEinput1, input2, input3, output_optr, _requiresLabelUpdate, _sptypebeginCol, beginLine, DATATYPE_PREFIX, endCol, endLine, filename, GPU_INST_PREFIX, instOpcode, INSTRUCTION_DELIM, instString, LITERAL_PREFIX, LOG, OPERAND_DELIM, SP_INST_PREFIX, type, VALUETYPE_PREFIX| Modifier | Constructor and Description |
|---|---|
protected |
BinarySPInstruction(org.apache.sysml.runtime.matrix.operators.Operator op,
org.apache.sysml.runtime.instructions.cp.CPOperand in1,
org.apache.sysml.runtime.instructions.cp.CPOperand in2,
org.apache.sysml.runtime.instructions.cp.CPOperand out,
String opcode,
String istr) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkBinaryAppendInputCharacteristics(org.apache.sysml.runtime.controlprogram.context.SparkExecutionContext sec,
boolean cbind,
boolean checkSingleBlk,
boolean checkAligned) |
protected void |
checkMatrixMatrixBinaryCharacteristics(org.apache.sysml.runtime.controlprogram.context.SparkExecutionContext sec) |
protected long |
getNumReplicas(MatrixCharacteristics mc1,
MatrixCharacteristics mc2,
boolean left) |
protected static String |
parseBinaryInstruction(String instr,
org.apache.sysml.runtime.instructions.cp.CPOperand in1,
org.apache.sysml.runtime.instructions.cp.CPOperand in2,
org.apache.sysml.runtime.instructions.cp.CPOperand out) |
protected static String |
parseBinaryInstruction(String instr,
org.apache.sysml.runtime.instructions.cp.CPOperand in1,
org.apache.sysml.runtime.instructions.cp.CPOperand in2,
org.apache.sysml.runtime.instructions.cp.CPOperand in3,
org.apache.sysml.runtime.instructions.cp.CPOperand out) |
protected void |
processMatrixBVectorBinaryInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec,
org.apache.sysml.lops.BinaryM.VectorType vtype) |
protected void |
processMatrixMatrixBinaryInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
Common binary matrix-matrix process instruction
|
protected void |
processMatrixScalarBinaryInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec) |
protected void |
updateBinaryAppendOutputMatrixCharacteristics(org.apache.sysml.runtime.controlprogram.context.SparkExecutionContext sec,
boolean cbind) |
protected MatrixCharacteristics |
updateBinaryMMOutputMatrixCharacteristics(org.apache.sysml.runtime.controlprogram.context.SparkExecutionContext sec,
boolean checkCommonDim) |
getOutputVariableName, updateBinaryOutputMatrixCharacteristics, updateUnaryAggOutputMatrixCharacteristics, updateUnaryOutputMatrixCharacteristics, updateUnaryOutputMatrixCharacteristicsgetGraphString, getSPInstructionType, postprocessInstruction, preprocessInstruction, processInstruction, requiresLabelUpdategetBeginColumn, getBeginLine, getEndColumn, getEndLine, getExtendedOpcode, getFilename, getInstID, getLineNum, getOpcode, getType, printMe, setInstID, setLocation, setLocation, setLocation, setLocation, setType, toString, updateInstructionThreadIDprotected BinarySPInstruction(org.apache.sysml.runtime.matrix.operators.Operator op,
org.apache.sysml.runtime.instructions.cp.CPOperand in1,
org.apache.sysml.runtime.instructions.cp.CPOperand in2,
org.apache.sysml.runtime.instructions.cp.CPOperand out,
String opcode,
String istr)
protected static String parseBinaryInstruction(String instr, org.apache.sysml.runtime.instructions.cp.CPOperand in1, org.apache.sysml.runtime.instructions.cp.CPOperand in2, org.apache.sysml.runtime.instructions.cp.CPOperand out) throws DMLRuntimeException
DMLRuntimeExceptionprotected static String parseBinaryInstruction(String instr, org.apache.sysml.runtime.instructions.cp.CPOperand in1, org.apache.sysml.runtime.instructions.cp.CPOperand in2, org.apache.sysml.runtime.instructions.cp.CPOperand in3, org.apache.sysml.runtime.instructions.cp.CPOperand out) throws DMLRuntimeException
DMLRuntimeExceptionprotected void processMatrixMatrixBinaryInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
throws DMLRuntimeException
ec - execution contextDMLRuntimeException - if DMLRuntimeException occursprotected void processMatrixBVectorBinaryInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec,
org.apache.sysml.lops.BinaryM.VectorType vtype)
throws DMLRuntimeException
DMLRuntimeExceptionprotected void processMatrixScalarBinaryInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
throws DMLRuntimeException
DMLRuntimeExceptionprotected MatrixCharacteristics updateBinaryMMOutputMatrixCharacteristics(org.apache.sysml.runtime.controlprogram.context.SparkExecutionContext sec, boolean checkCommonDim) throws DMLRuntimeException
DMLRuntimeExceptionprotected void updateBinaryAppendOutputMatrixCharacteristics(org.apache.sysml.runtime.controlprogram.context.SparkExecutionContext sec,
boolean cbind)
throws DMLRuntimeException
DMLRuntimeExceptionprotected long getNumReplicas(MatrixCharacteristics mc1, MatrixCharacteristics mc2, boolean left)
protected void checkMatrixMatrixBinaryCharacteristics(org.apache.sysml.runtime.controlprogram.context.SparkExecutionContext sec)
throws DMLRuntimeException
DMLRuntimeExceptionprotected void checkBinaryAppendInputCharacteristics(org.apache.sysml.runtime.controlprogram.context.SparkExecutionContext sec,
boolean cbind,
boolean checkSingleBlk,
boolean checkAligned)
throws DMLRuntimeException
DMLRuntimeExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.