| 123 | } |
| 124 | |
| 125 | Status ElementwiseOperation::BindArguments() { |
| 126 | kernel_.ResetBindingCounter(); |
| 127 | RETURN_IF_ERROR(kernel_.SetMemoryAuto(src_[0]->GetMemoryPtr())); |
| 128 | RETURN_IF_ERROR(BindArguments(&kernel_)); |
| 129 | RETURN_IF_ERROR(BindArgs(&kernel_, linked_operations_)); |
| 130 | RETURN_IF_ERROR(kernel_.SetMemoryAuto(dst_[0]->GetMemoryPtr())); |
| 131 | RETURN_IF_ERROR(kernel_.SetBytesAuto(dst_[0]->GetSizeWithDepth())); |
| 132 | return OkStatus(); |
| 133 | } |
| 134 | |
| 135 | int3 ElementwiseOperation::GetGridSize() const { |
| 136 | const int grid_x = dst_[0]->Width(); |
no test coverage detected