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

Function NeedPromoteTypes

paddle/fluid/framework/data_type.cc:105–108  ·  view source on GitHub ↗

Now only supports promotion of complex type

Source from the content-addressed store, hash-verified

103
104// Now only supports promotion of complex type
105inline bool NeedPromoteTypes(const proto::VarType::Type& a,
106 const proto::VarType::Type& b) {
107 return (IsComplexType(a) || IsComplexType(b));
108}
109
110int DataTypeNumAlign(const proto::VarType::Type t) {
111 int cast_type_num = -1;

Callers 1

Calls 1

IsComplexTypeFunction · 0.70

Tested by

no test coverage detected