MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / Attribute

Enum Attribute

dnn/include/megdnn/oprs/base.h:97–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 *
96 */
97 enum class Attribute : uint32_t {
98 /**
99 * \brief general algo.
100 */
101 DEFAULT = 0,
102
103 /**
104 * \brief whether the execution result is
105 * reproducible across multiple runs.
106 */
107 REPRODUCIBLE = 1 << 0,
108
109 /**
110 * \brief whether the algo is naive
111 * Mark algorithms with simple implementation as NAIVE, so we can filter
112 * these algorithms to speed up fastrun.
113 * */
114 NAIVE = 1 << 1,
115
116 /**
117 * \brief whether the algo is usable once shape changed.
118 * */
119 USABLE_DEPEND_ON_SHAPE = 1 << 2,
120
121 /**
122 * \brief whether the accuracy of the algo is dependent with respect
123 * to batch
124 * In the case of using algorithm with this attribute, even if the
125 * content of each batch is the same, the output under multiple batch
126 * input and single batch input may not equal
127 * */
128 ACCURACY_DEPEND_ON_BATCH = 1 << 3,
129 };
130
131 /**
132 * \brief Algorithm information, we can get real algo from

Callers 3

getAliasBaseMethod · 0.50
MgbPackedParamMethod · 0.50
getExtraArgumentsMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected