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

Function VisitIntDataType

paddle/fluid/framework/data_type.h:192–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190
191template <typename Visitor>
192inline void VisitIntDataType(proto::VarType::Type type, Visitor visitor) {
193#define VisitIntDataTypeCallback(cpp_type, proto_type) \
194 do { \
195 if (type == proto_type) { \
196 visitor.template apply<cpp_type>(); \
197 return; \
198 } \
199 } while (0)
200
201 _ForEachIntDataType_(VisitIntDataTypeCallback);
202
203 PADDLE_THROW(common::errors::Unimplemented(
204 "Expected integral data type, but got %s", DataTypeToString(type)));
205
206#undef VisitIntDataTypeCallback
207}
208
209template <typename Visitor>
210inline void VisitDataTypeTiny(proto::VarType::Type type, Visitor visitor) {

Callers

nothing calls this directly

Calls 1

DataTypeToStringFunction · 0.70

Tested by

no test coverage detected