MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / ToComplexType

Function ToComplexType

paddle/fluid/framework/data_type.h:256–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254 const proto::VarType::Type type_a, const proto::VarType::Type type_b);
255
256extern 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
270extern inline proto::VarType::Type ToRealType(proto::VarType::Type t) {
271 switch (t) {

Callers

nothing calls this directly

Calls 1

DataTypeToStringFunction · 0.70

Tested by

no test coverage detected