Create the MLIR NamedLoc location corresponding to a given tensor
| 153 | |
| 154 | // Create the MLIR NamedLoc location corresponding to a given tensor |
| 155 | Location TensorLoc(const TensorT& tensor, Builder builder, Location base) { |
| 156 | if (tensor.name.empty()) { |
| 157 | return base; |
| 158 | } |
| 159 | return mlir::NameLoc::get(builder.getIdentifier(tensor.name), base); |
| 160 | } |
| 161 | |
| 162 | // Returns the correct type for a quantized tensor |
| 163 | // We have a special case for constants since they have a higher minimum value. |
no test coverage detected