public Run ( MatOperation operation, MyMemoryBlock |
||
operation | MatOperation | |
A | MyMemoryBlock |
|
return | void |
public override void Execute() { //mat_opCublas.Run(Owner.Operation, Owner.A, Owner.B, Owner.Output); if (Owner.B != null) { mat_operation.Run(Owner.Operation, Owner.A, Owner.B, Owner.Output); } else { mat_operation.Run(Owner.Operation, Owner.A, 1, Owner.Output); } }
public override void Execute() { if (Owner.B != null) { mat_operation.Run(Owner.Operation, Owner.A, Owner.B, Owner.Output); } else { if (float.IsNaN(DataInput0)) { mat_operation.Run(Owner.Operation, Owner.A, Owner.Output); } else { mat_operation.Run(Owner.Operation, Owner.A, DataInput0, Owner.Output); } } }