| 254 | const proto::VarType::Type type_a, const proto::VarType::Type type_b); |
| 255 | |
| 256 | extern inline proto::VarType::Type ToComplexType(proto::VarType::Type t) { |
| 257 | switch (t) { |
| 258 | case proto::VarType::FP32: |
| 259 | return proto::VarType::COMPLEX64; |
| 260 | case proto::VarType::FP64: |
| 261 | return proto::VarType::COMPLEX128; |
| 262 | default: |
| 263 | PADDLE_THROW(common::errors::Unimplemented( |
| 264 | "Unknown real value data type (%s), now only support float32 and " |
| 265 | "float64.", |
| 266 | DataTypeToString(t))); |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | extern inline proto::VarType::Type ToRealType(proto::VarType::Type t) { |
| 271 | switch (t) { |
nothing calls this directly
no test coverage detected