| 118 | } |
| 119 | |
| 120 | Status Softmax1x1::AddToQueue(CLCommandQueue* queue) { |
| 121 | kernel_.ResetBindingCounter(); |
| 122 | RETURN_IF_ERROR(kernel_.SetMemoryAuto(src_[0]->GetMemoryPtr())); |
| 123 | RETURN_IF_ERROR(BindArgs(&kernel_, linked_operations_)); |
| 124 | RETURN_IF_ERROR(kernel_.SetMemoryAuto(dst_[0]->GetMemoryPtr())); |
| 125 | RETURN_IF_ERROR(kernel_.SetBytesAuto(src_[0]->GetSizeWithDepth())); |
| 126 | const int depth = src_[0]->Depth(); |
| 127 | RETURN_IF_ERROR( |
| 128 | kernel_.SetBytesAuto(int2(depth, IntegralDivideRoundUp(depth, 32)))); |
| 129 | RETURN_IF_ERROR( |
| 130 | kernel_.SetBytesAuto(GetMaskForLastPlane(src_[0]->Channels()))); |
| 131 | |
| 132 | return queue->DispatchImplicit(kernel_, {32u, 1u, 1u}, {32u, 1u, 1u}); |
| 133 | } |
| 134 | |
| 135 | Softmax1x1 CreateSoftmax1x1(const OperationDef& definition) { |
| 136 | return Softmax1x1(definition); |
nothing calls this directly
no test coverage detected