| 131 | } |
| 132 | |
| 133 | Status MaxUnpooling::BindArguments() { |
| 134 | kernel_.ResetBindingCounter(); |
| 135 | RETURN_IF_ERROR(kernel_.SetMemoryAuto(src_[0]->GetMemoryPtr())); |
| 136 | RETURN_IF_ERROR(kernel_.SetMemoryAuto(src_[1]->GetMemoryPtr())); |
| 137 | RETURN_IF_ERROR(BindArgs(&kernel_, linked_operations_)); |
| 138 | RETURN_IF_ERROR(kernel_.SetMemoryAuto(dst_[0]->GetMemoryPtr())); |
| 139 | RETURN_IF_ERROR(kernel_.SetBytesAuto(src_[0]->GetSizeWithDepth())); |
| 140 | RETURN_IF_ERROR(kernel_.SetBytesAuto(dst_[0]->GetSizeWithDepth())); |
| 141 | RETURN_IF_ERROR(kernel_.SetBytesAuto(kernel_size_)); |
| 142 | RETURN_IF_ERROR(kernel_.SetBytesAuto(padding_)); |
| 143 | RETURN_IF_ERROR(kernel_.SetBytesAuto(stride_)); |
| 144 | |
| 145 | return OkStatus(); |
| 146 | } |
| 147 | |
| 148 | int3 MaxUnpooling::GetGridSize() const { |
| 149 | const int grid_x = dst_[0]->Width(); |
nothing calls this directly
no test coverage detected