Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ types & classes
Types & classes
7,186 in github.com/MegEngine/MegEngine
⨍
Functions
33,912
◇
Types & classes
7,186
↳
Endpoints
66
↓ 682 callers
Class
TensorLayout
* \brief Describing the tensor shape with its actual layout in memory and dtype * * x(i, j, ...) is stored at offset * stride[0]*i + stride[1]*j +
dnn/include/megdnn/basic_types.h:129
↓ 490 callers
Class
Doc
wrap an identifier to associate document note: if the doc starts with a linebreak, it would not be reforamtted.
dnn/scripts/gen_param_defs.py:30
↓ 283 callers
Class
Tensor
r"""A tensor object represents a multidimensional, homogeneous array of fixed-size items. Tensor is the primary MegEngine data structure. Dat
imperative/python/megengine/tensor.py:22
↓ 194 callers
Class
Tensor
imperative/python/src/tensor.h:39
↓ 153 callers
Class
TensorShape
* \brief Describing the tensor shape. * * Uninitialized shape: ndim == 0; total_nr_elems() is also defined to be 0 * * Empty shape: ndim > 0 && sh
dnn/include/megdnn/basic_types.h:86
↓ 128 callers
Class
Parameter
r"""A kind of Tensor that is to be considered a module parameter. Note: Operations happened on Parameter usually return a Tensor instead
imperative/python/megengine/tensor.py:288
↓ 128 callers
Class
is_vector
src/custom/include/megbrain/custom/param_val.h:134
↓ 119 callers
Class
expr
Temporary half-precision expression. This class represents a half-precision expression which just stores a single-precision value internally.
dnn/include/megdnn/dtype/half.hpp:206
↓ 87 callers
Class
TileDescription
dnn/scripts/cutlass_generator/library.py:660
↓ 84 callers
Class
GradManager
r"""GradManager computes gradients or more generally, vector-Jacobian product, by reverse mode automatic differentiation (a.k.a. back propagation)
imperative/python/megengine/autodiff/grad_manager.py:30
↓ 82 callers
Class
OperatorNodeConfig
! * \brief configuration for operator nodes */
src/core/include/megbrain/graph/operator_node.h:22
↓ 74 callers
Class
expr
Temporary bfloat16 expression. This class represents a bfloat16 expression which just stores a single-precision value internally.
dnn/include/megdnn/dtype/bfloat16.hpp:197
↓ 70 callers
Class
T
src/core/test/utils/metahelper.cpp:17
↓ 63 callers
Class
HLOTensor
imperative/python/megengine/xla/rules/hlotensor.py:11
↓ 52 callers
Class
LiteNetwork
the network to load a model and forward Examples: .. code-block:: from megenginelite import * config = Lit
lite/pylite/megenginelite/network.py:553
↓ 48 callers
Class
SymbolVar
! * \brief Wrap a VarNode* for operator overloading */
src/core/include/megbrain/graph/symbol_var.h:11
↓ 44 callers
Class
Grad
imperative/python/megengine/core/autodiff/grad.py:23
↓ 43 callers
Class
LiteTensor
Description of a block of data with neccessary information. Args: layout: layout of Tensor device_type: device type of Tenso
lite/pylite/megenginelite/tensor.py:206
↓ 42 callers
Class
DataLoader
r"""Data loader. Combines a dataset and a sampler, and provides a convenient way to iterate on a given dataset. The process is as follows: ..
imperative/python/megengine/data/dataloader.py:89
↓ 42 callers
Class
LiteLayout
Description of layout using in Lite. A Lite layout will be totally defined by shape and data type. Args: shape: the shape of
lite/pylite/megenginelite/tensor.py:54
↓ 42 callers
Class
WorkspaceBundle
* \brief Aligned workspace bundle. * * Each individual workspace is aligned to align_in_bytes. */
dnn/src/common/utils.h:274
↓ 41 callers
Class
half
dnn/include/megdnn/dtype/half.hpp:122
↓ 40 callers
Class
Checker
src/plugin/include/megbrain/plugin/var_value_checker.h:20
↓ 40 callers
Class
RNG
r""":class:`RNG` exposes a number of methods for generating random numbers. Args: seed: random seed used to initialize the pseudo-random
imperative/python/megengine/random/rng.py:287
↓ 39 callers
Class
Network
imperative/python/megengine/utils/network.py:29
↓ 38 callers
Class
String
* class for string option */
lite/load_and_run/src/helpers/common.h:172
↓ 34 callers
Class
trace
Wraps a callable and provide: * tracing via :meth:`.trace` and :meth:`.dump` * accelerated evalutaion via :meth:`.__call__` Args:
imperative/python/megengine/jit/tracing.py:95
↓ 33 callers
Class
TensorND
* \brief A simple encapsulation class for n-dimensional tensor. */
dnn/include/megdnn/basic_types.h:462
↓ 32 callers
Class
ApplyOp
imperative/src/impl/interpreter/commands.h:37
↓ 32 callers
Class
DType
! * \brief Information about a data type that can be accessed at runtime */
dnn/include/megdnn/dtype.h:418
↓ 30 callers
Class
CompNode
! * \brief abstraction of a streaming computing resource on localhost (a * thread on CPU, a cuda stream, etc.) * * Note that most of the oper
src/core/include/megbrain/comp_node.h:53
↓ 30 callers
Class
DTypeScalar
! * \brief a scalar value with associated dtype */
src/core/include/megbrain/dtype.h:68
↓ 30 callers
Class
RandomSampler
r"""Sample elements randomly without replacement. Args: dataset: dataset to sample from. batch_size: batch size for batch method.
imperative/python/megengine/data/sampler.py:218
↓ 29 callers
Class
LiteConfig
Configuration when load and compile a network Attributes: has_compression: flag whether the model is compressed, the compress
lite/pylite/megenginelite/network.py:155
↓ 29 callers
Class
bfloat16
dnn/include/megdnn/dtype/bfloat16.hpp:130
↓ 29 callers
Class
binary_t
Tag type for binary_t() construction.
dnn/include/megdnn/dtype/half.hpp:201
↓ 28 callers
Class
Bool
* class for boolean option */
lite/load_and_run/src/helpers/common.h:154
↓ 28 callers
Class
Constructable
A helper class that counts the total number of constructor and destructor calls.
dnn/test/common/small_vector.cpp:34
↓ 28 callers
Class
binary_t
Tag type for binary_t() construction.
dnn/include/megdnn/dtype/bfloat16.hpp:192
↓ 27 callers
Class
wtype
dnn/src/common/argmxx_helper.h:13
↓ 26 callers
Class
BatchNorm2d
r"""Applies Batch Normalization over a 4D tensor. .. math:: y = \frac{x - \mathrm{E}[x]}{ \sqrt{\mathrm{Var}[x] + \epsilon}} * \gamma +
imperative/python/megengine/module/batchnorm.py:266
↓ 21 callers
Class
Conv2d
r"""Applies a 2D convolution over an input tensor. For instance, given an input of the size :math:`(N, C_{\text{in}}, H, W)`, this layer gene
imperative/python/megengine/module/conv.py:261
↓ 21 callers
Class
WorkspaceWrapper
dnn/test/common/workspace_wrapper.h:8
↓ 20 callers
Class
CreateTensor
* \brief create a tensor value from host value or device value * */
imperative/src/include/megbrain/imperative/basic_operators.h:67
↓ 20 callers
Class
Slice
! * \brief slice along some axis; index as in Python, with negative indices * supported. Scalar index can also be represented as a Slice, where
src/core/include/megbrain/tensor.h:73
↓ 18 callers
Class
ArrayDataset
r"""ArrayDataset is a dataset for numpy array data. One or more numpy arrays are needed to initiate the dataset. And the dimensions represent
imperative/python/megengine/data/dataset/meta_dataset.py:109
↓ 18 callers
Class
Linear
r"""Applies a linear transformation to the input. For instance, if input is x, then output y is: .. math:: y = xW^T + b whe
imperative/python/megengine/module/linear.py:9
↓ 18 callers
Class
RefPtr
dnn/include/megdnn/basic_types.h:409
↓ 18 callers
Class
TensorDescription
dnn/scripts/cutlass_generator/library.py:687
↓ 18 callers
Class
Workspace
* \brief A struct representing workspace. * * It differs from TensorND in that workspace does not have a "layout" concept. */
dnn/include/megdnn/basic_types.h:513
↓ 17 callers
Class
Elemwise
r"""A :class:`~.Module` to do :mod:`~.functional.elemwise` operator. Could be replaced with :class:`~.QATModule` version :class:`~.qat.Elemwise` u
imperative/python/megengine/module/elemwise.py:6
↓ 17 callers
Class
MathInstruction
dnn/scripts/cutlass_generator/library.py:637
↓ 17 callers
Class
RelayoutFormat
dnn/include/megdnn/oprs/general.h:1348
↓ 16 callers
Class
CustomGradMaker
imperative/python/src/grad_override.cpp:7
↓ 16 callers
Class
dt_qint32
dnn/include/megdnn/dtype.h:167
↓ 13 callers
Class
ValueRef
imperative/src/include/megbrain/imperative/value.h:20
↓ 12 callers
Class
LiteIO
config the network input and output item, the input and output tensor information will describe there Attributes: name: the tens
lite/pylite/megenginelite/network.py:268
↓ 11 callers
Class
QuantDtypeMeta
r"""Store metadata for quantize dtype. Could be used to create custom quant dtype for QAT when the network don't need to be converted for inferenc
imperative/python/megengine/core/tensor/dtype.py:44
↓ 11 callers
Class
Simple
imperative/python/test/unit/utils/test_dump_naming.py:38
↓ 11 callers
Class
Tensor
dnn/test/common/tensor.h:19
↓ 11 callers
Class
TensorWeakRef
imperative/python/src/tensor.cpp:824
↓ 10 callers
Class
Const
define a const data field
dnn/scripts/gen_param_defs.py:185
↓ 10 callers
Class
Dimension
dnn/include/megdnn/named_tensor.h:14
↓ 10 callers
Class
GraphInference
r"""Loads a serialized computing graph as a GraphInference object which can be used to execute the computing graph. Args: file: could
imperative/python/megengine/utils/comp_graph_tools.py:434
↓ 10 callers
Class
LiteOptions
the inference options which can optimize the network forwarding performance Attributes: weight_preprocess: is the option which o
lite/pylite/megenginelite/network.py:14
↓ 10 callers
Class
PersistentCacheOnServer
imperative/python/megengine/utils/persistent_cache.py:17
↓ 10 callers
Class
Reduce
imperative/python/megengine/utils/network_node.py:369
↓ 10 callers
Class
ValueShape
* \brief like TensorShape, but allow real scalar shape. * */
imperative/src/include/megbrain/imperative/utils/value_shape.h:14
↓ 9 callers
Class
AssertionError
src/core/include/megbrain/exception.h:175
↓ 9 callers
Class
DequantStub
r"""A helper :class:`~.Module` simply returning input. Could be replaced with :class:`~.QATModule` version :class:`~.qat.DequantStub` using :func:
imperative/python/megengine/module/quant_dequant.py:13
↓ 9 callers
Class
QuantStub
r"""A helper :class:`~.Module` simply returning input. Could be replaced with :class:`~.QATModule` version :class:`~.qat.QuantStub` using :func:`~
imperative/python/megengine/module/quant_dequant.py:4
↓ 9 callers
Class
Simple
imperative/python/test/unit/core/test_function.py:26
↓ 9 callers
Class
StreamSampler
r"""Sampler for stream dataset. Warning: In the case of multiple machines, sampler should ensure that each worker gets different
imperative/python/megengine/data/sampler.py:148
↓ 9 callers
Class
TensorBatchCollector
A tensor utils is used to collect many single batch tensor to a multi batch size tensor, when the multi batch size tensor collect finish, the
lite/pylite/megenginelite/utils.py:12
↓ 9 callers
Class
TestNet
imperative/python/test/unit/module/test_qat.py:42
↓ 8 callers
Class
BasicBlock
imperative/python/test/unit/utils/test_module_stats.py:183
↓ 8 callers
Class
ConversionError
datatype conversion error
src/core/include/megbrain/exception.h:181
↓ 8 callers
Class
EinsumOperand
imperative/python/megengine/functional/einsum.py:32
↓ 8 callers
Class
Format
dnn/include/megdnn/basic_types.h:168
↓ 8 callers
Class
LiteNetworkIO
the input and output information when load the network for user the NetworkIO will remain in the network until the network is destroyed.
lite/pylite/megenginelite/network.py:379
↓ 8 callers
Class
MyModule
imperative/python/test/unit/traced_module/test_qat_module.py:43
↓ 8 callers
Class
OprChecker
imperative/src/test/helper.h:18
↓ 8 callers
Class
QConfig
r"""A config class indicating how to do quantize toward :class:`~.QATModule` 's ``activation`` and ``weight``. See :meth:`~.QATModule.set_qconfig`
imperative/python/megengine/quantization/qconfig.py:17
↓ 8 callers
Class
SyncBatchNorm
r"""Applies Synchronized Batch Normalization for distributed training. Args: num_features: usually :math:`C` from an input of shape
imperative/python/megengine/module/batchnorm.py:117
↓ 7 callers
Class
Bool
src/core/include/megbrain/utils/json.h:72
↓ 7 callers
Class
CudaTransform
imperative/python/megengine/data/transform/meta_transform.py:25
↓ 7 callers
Class
Device
imperative/python/megengine/core/_wrap.py:8
↓ 7 callers
Class
Exponential
r""" Creates a Exponential distribution parameterized by :attr:`rate`. This is a EXPERIMENTAL module that may be subject to change and/or del
imperative/python/megengine/distributions/exponential.py:10
↓ 7 callers
Class
GenArg
dnn/scripts/cutlass_generator/gen_list.py:12
↓ 7 callers
Class
Size
dnn/src/common/cv/common.h:79
↓ 7 callers
Class
TensorNode
r"""``TensorNode`` represents the Tensor objects.
imperative/python/megengine/traced_module/node.py:209
↓ 7 callers
Class
UniformFloatWithValueRNG
dnn/test/common/rng.h:176
↓ 7 callers
Class
dt_qint8
dnn/include/megdnn/dtype.h:197
↓ 7 callers
Class
dt_quint8
dnn/include/megdnn/dtype.h:150
↓ 6 callers
Class
BatchNorm1d
r"""Applies Batch Normalization over a 2D or 3D input. .. math:: y = \frac{x - \mathrm{E}[x]}{\sqrt{\mathrm{Var}[x] + \epsilon}} * \gamm
imperative/python/megengine/module/batchnorm.py:217
↓ 6 callers
Class
CallMethod
r"""``CallMethod`` represents a call to the ``__call__`` method of ``Module`` or a method of ``Tensor``. Args: node: the Node to be calle
imperative/python/megengine/traced_module/expr.py:422
↓ 6 callers
Class
ConvNet
imperative/python/test/unit/xla/test_xla_training.py:16
↓ 6 callers
Class
LiteDataType
The tensor data type enum Note: half for float16, int for int32
lite/pylite/megenginelite/struct.py:32
↓ 6 callers
Class
MultinomialRNG
sample from multinomial distribution
dnn/include/megdnn/oprs/utils.h:101
↓ 6 callers
Class
SGD
r"""Implements stochastic gradient descent. This optimizer performs stochastic gradient descent with optional momentum and weight decay. Nes
imperative/python/megengine/optimizer/sgd.py:13
next →
1–100 of 7,186, ranked by callers