| 100 | } |
| 101 | |
| 102 | Status Softmax::BindArguments() { |
| 103 | kernel_.ResetBindingCounter(); |
| 104 | RETURN_IF_ERROR(kernel_.SetMemoryAuto(src_[0]->GetMemoryPtr())); |
| 105 | RETURN_IF_ERROR(BindArgs(&kernel_, linked_operations_)); |
| 106 | RETURN_IF_ERROR(kernel_.SetMemoryAuto(dst_[0]->GetMemoryPtr())); |
| 107 | RETURN_IF_ERROR(kernel_.SetBytesAuto(src_[0]->GetSizeWithDepth())); |
| 108 | RETURN_IF_ERROR( |
| 109 | kernel_.SetBytesAuto(GetMaskForLastPlane(src_[0]->Channels()))); |
| 110 | return OkStatus(); |
| 111 | } |
| 112 | |
| 113 | int3 Softmax::GetGridSize() const { |
| 114 | const int grid_x = dst_[0]->Width(); |
nothing calls this directly
no test coverage detected