| 156 | } |
| 157 | |
| 158 | std::string Add::GetArgsDeclaration() const { |
| 159 | std::string args; |
| 160 | for (int i = 1; i < src_depthes_.size(); ++i) { |
| 161 | const std::string tensor_name = |
| 162 | absl::StrCat("src_data_", link_index_, "_", i); |
| 163 | TensorCodeGenerator src_tensor(tensor_name, "", definition_.src_tensors[i]); |
| 164 | absl::StrAppend(&args, ",\n", src_tensor.GetDeclaration(AccessType::READ)); |
| 165 | } |
| 166 | if (HasTexture2DStorageType(definition_)) { |
| 167 | absl::StrAppend(&args, ",\n float ", inv_divisor_name_); |
| 168 | } |
| 169 | return args; |
| 170 | } |
| 171 | |
| 172 | Status Add::BindArguments(CLKernel* kernel) { |
| 173 | for (int i = 1; i < src_depthes_.size(); ++i) { |
no test coverage detected