public abstract class BinarySPInstruction extends ComputationSPInstruction
SPInstruction.SPINSTRUCTION_TYPE
Instruction.INSTRUCTION_TYPE
input1, input2, input3, output
_optr, _requiresLabelUpdate, _sptype
beginCol, 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, updateUnaryOutputMatrixCharacteristics
getGraphString, getSPInstructionType, postprocessInstruction, preprocessInstruction, processInstruction, requiresLabelUpdate
getBeginColumn, getBeginLine, getEndColumn, getEndLine, getExtendedOpcode, getFilename, getInstID, getLineNum, getOpcode, getType, printMe, setInstID, setLocation, setLocation, setLocation, setLocation, setType, toString, updateInstructionThreadID
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)
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
DMLRuntimeException
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) throws DMLRuntimeException
DMLRuntimeException
protected 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
DMLRuntimeException
protected void processMatrixScalarBinaryInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec) throws DMLRuntimeException
DMLRuntimeException
protected MatrixCharacteristics updateBinaryMMOutputMatrixCharacteristics(org.apache.sysml.runtime.controlprogram.context.SparkExecutionContext sec, boolean checkCommonDim) throws DMLRuntimeException
DMLRuntimeException
protected void updateBinaryAppendOutputMatrixCharacteristics(org.apache.sysml.runtime.controlprogram.context.SparkExecutionContext sec, boolean cbind) throws DMLRuntimeException
DMLRuntimeException
protected long getNumReplicas(MatrixCharacteristics mc1, MatrixCharacteristics mc2, boolean left)
protected void checkMatrixMatrixBinaryCharacteristics(org.apache.sysml.runtime.controlprogram.context.SparkExecutionContext sec) throws DMLRuntimeException
DMLRuntimeException
protected void checkBinaryAppendInputCharacteristics(org.apache.sysml.runtime.controlprogram.context.SparkExecutionContext sec, boolean cbind, boolean checkSingleBlk, boolean checkAligned) throws DMLRuntimeException
DMLRuntimeException
Copyright © 2017 The Apache Software Foundation. All rights reserved.