MCPcopy Create free account

hub / github.com/MegEngine/MegEngine / types & classes

Types & classes7,186 in github.com/MegEngine/MegEngine

↓ 682 callersClassTensorLayout
* \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 callersClassDoc
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 callersClassTensor
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 callersClassTensor
imperative/python/src/tensor.h:39
↓ 153 callersClassTensorShape
* \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 callersClassParameter
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 callersClassis_vector
src/custom/include/megbrain/custom/param_val.h:134
↓ 119 callersClassexpr
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 callersClassTileDescription
dnn/scripts/cutlass_generator/library.py:660
↓ 84 callersClassGradManager
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 callersClassOperatorNodeConfig
! * \brief configuration for operator nodes */
src/core/include/megbrain/graph/operator_node.h:22
↓ 74 callersClassexpr
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 callersClassT
src/core/test/utils/metahelper.cpp:17
↓ 63 callersClassHLOTensor
imperative/python/megengine/xla/rules/hlotensor.py:11
↓ 52 callersClassLiteNetwork
the network to load a model and forward Examples: .. code-block:: from megenginelite import * config = Lit
lite/pylite/megenginelite/network.py:553
↓ 48 callersClassSymbolVar
! * \brief Wrap a VarNode* for operator overloading */
src/core/include/megbrain/graph/symbol_var.h:11
↓ 44 callersClassGrad
imperative/python/megengine/core/autodiff/grad.py:23
↓ 43 callersClassLiteTensor
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 callersClassDataLoader
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 callersClassLiteLayout
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 callersClassWorkspaceBundle
* \brief Aligned workspace bundle. * * Each individual workspace is aligned to align_in_bytes. */
dnn/src/common/utils.h:274
↓ 41 callersClasshalf
dnn/include/megdnn/dtype/half.hpp:122
↓ 40 callersClassChecker
src/plugin/include/megbrain/plugin/var_value_checker.h:20
↓ 40 callersClassRNG
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 callersClassNetwork
imperative/python/megengine/utils/network.py:29
↓ 38 callersClassString
* class for string option */
lite/load_and_run/src/helpers/common.h:172
↓ 34 callersClasstrace
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 callersClassTensorND
* \brief A simple encapsulation class for n-dimensional tensor. */
dnn/include/megdnn/basic_types.h:462
↓ 32 callersClassApplyOp
imperative/src/impl/interpreter/commands.h:37
↓ 32 callersClassDType
! * \brief Information about a data type that can be accessed at runtime */
dnn/include/megdnn/dtype.h:418
↓ 30 callersClassCompNode
! * \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 callersClassDTypeScalar
! * \brief a scalar value with associated dtype */
src/core/include/megbrain/dtype.h:68
↓ 30 callersClassRandomSampler
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 callersClassLiteConfig
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 callersClassbfloat16
dnn/include/megdnn/dtype/bfloat16.hpp:130
↓ 29 callersClassbinary_t
Tag type for binary_t() construction.
dnn/include/megdnn/dtype/half.hpp:201
↓ 28 callersClassBool
* class for boolean option */
lite/load_and_run/src/helpers/common.h:154
↓ 28 callersClassConstructable
A helper class that counts the total number of constructor and destructor calls.
dnn/test/common/small_vector.cpp:34
↓ 28 callersClassbinary_t
Tag type for binary_t() construction.
dnn/include/megdnn/dtype/bfloat16.hpp:192
↓ 27 callersClasswtype
dnn/src/common/argmxx_helper.h:13
↓ 26 callersClassBatchNorm2d
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 callersClassConv2d
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 callersClassWorkspaceWrapper
dnn/test/common/workspace_wrapper.h:8
↓ 20 callersClassCreateTensor
* \brief create a tensor value from host value or device value * */
imperative/src/include/megbrain/imperative/basic_operators.h:67
↓ 20 callersClassSlice
! * \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 callersClassArrayDataset
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 callersClassLinear
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 callersClassRefPtr
dnn/include/megdnn/basic_types.h:409
↓ 18 callersClassTensorDescription
dnn/scripts/cutlass_generator/library.py:687
↓ 18 callersClassWorkspace
* \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 callersClassElemwise
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 callersClassMathInstruction
dnn/scripts/cutlass_generator/library.py:637
↓ 17 callersClassRelayoutFormat
dnn/include/megdnn/oprs/general.h:1348
↓ 16 callersClassCustomGradMaker
imperative/python/src/grad_override.cpp:7
↓ 16 callersClassdt_qint32
dnn/include/megdnn/dtype.h:167
↓ 13 callersClassValueRef
imperative/src/include/megbrain/imperative/value.h:20
↓ 12 callersClassLiteIO
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 callersClassQuantDtypeMeta
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 callersClassSimple
imperative/python/test/unit/utils/test_dump_naming.py:38
↓ 11 callersClassTensor
dnn/test/common/tensor.h:19
↓ 11 callersClassTensorWeakRef
imperative/python/src/tensor.cpp:824
↓ 10 callersClassConst
define a const data field
dnn/scripts/gen_param_defs.py:185
↓ 10 callersClassDimension
dnn/include/megdnn/named_tensor.h:14
↓ 10 callersClassGraphInference
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 callersClassLiteOptions
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 callersClassPersistentCacheOnServer
imperative/python/megengine/utils/persistent_cache.py:17
↓ 10 callersClassReduce
imperative/python/megengine/utils/network_node.py:369
↓ 10 callersClassValueShape
* \brief like TensorShape, but allow real scalar shape. * */
imperative/src/include/megbrain/imperative/utils/value_shape.h:14
↓ 9 callersClassAssertionError
src/core/include/megbrain/exception.h:175
↓ 9 callersClassDequantStub
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 callersClassQuantStub
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 callersClassSimple
imperative/python/test/unit/core/test_function.py:26
↓ 9 callersClassStreamSampler
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 callersClassTensorBatchCollector
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 callersClassTestNet
imperative/python/test/unit/module/test_qat.py:42
↓ 8 callersClassBasicBlock
imperative/python/test/unit/utils/test_module_stats.py:183
↓ 8 callersClassConversionError
datatype conversion error
src/core/include/megbrain/exception.h:181
↓ 8 callersClassEinsumOperand
imperative/python/megengine/functional/einsum.py:32
↓ 8 callersClassFormat
dnn/include/megdnn/basic_types.h:168
↓ 8 callersClassLiteNetworkIO
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 callersClassMyModule
imperative/python/test/unit/traced_module/test_qat_module.py:43
↓ 8 callersClassOprChecker
imperative/src/test/helper.h:18
↓ 8 callersClassQConfig
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 callersClassSyncBatchNorm
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 callersClassBool
src/core/include/megbrain/utils/json.h:72
↓ 7 callersClassCudaTransform
imperative/python/megengine/data/transform/meta_transform.py:25
↓ 7 callersClassDevice
imperative/python/megengine/core/_wrap.py:8
↓ 7 callersClassExponential
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 callersClassGenArg
dnn/scripts/cutlass_generator/gen_list.py:12
↓ 7 callersClassSize
dnn/src/common/cv/common.h:79
↓ 7 callersClassTensorNode
r"""``TensorNode`` represents the Tensor objects.
imperative/python/megengine/traced_module/node.py:209
↓ 7 callersClassUniformFloatWithValueRNG
dnn/test/common/rng.h:176
↓ 7 callersClassdt_qint8
dnn/include/megdnn/dtype.h:197
↓ 7 callersClassdt_quint8
dnn/include/megdnn/dtype.h:150
↓ 6 callersClassBatchNorm1d
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 callersClassCallMethod
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 callersClassConvNet
imperative/python/test/unit/xla/test_xla_training.py:16
↓ 6 callersClassLiteDataType
The tensor data type enum Note: half for float16, int for int32
lite/pylite/megenginelite/struct.py:32
↓ 6 callersClassMultinomialRNG
sample from multinomial distribution
dnn/include/megdnn/oprs/utils.h:101
↓ 6 callersClassSGD
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