mxnet.numpy_extensionΒΆ
Module for ops not belonging to the official numpy package for imperative programming.
Functions
|
Applies an activation function element-wise to the input. |
|
Adds all input arguments element-wise. |
|
Return an array with evenly spaced values. |
|
Batchwise dot product. |
|
Flattens the input array into a 2-D array by collapsing the higher dimensions. .. note:: Flatten is deprecated. Use flatten instead. For an input array with shape |
|
Batch normalization. |
|
Compute bipartite matching. |
|
Decode bounding boxes training target with normalized center offsets. |
|
Encode bounding boxes training target with normalized center offsets. |
|
Bounding box overlap of two arrays. |
|
Apply non-maximum suppression to input. |
|
Returns the result of element-wise greater than (>) comparison operation with broadcasting. |
|
Broadcasts lhs to have the same shape as rhs. |
|
Casts all elements of the input to a new type. |
|
Run an if-then-else using user-defined condition and computation |
|
This operator will check if all the elements in a boolean tensor is true. |
|
Provide calibrated min/max for input histogram. |
|
Quantize a input tensor from float to out_type, with user-specified min_range and max_range. |
|
Quantize a input tensor from float to out_type, with user-specified min_calib_range and max_calib_range or the input range collected at runtime. |
|
RNN operator for input data type of uint8. |
|
Compute N-D convolution on (N+2)-D input. |
|
Connectionist Temporal Classification Loss. |
|
Computes 1D, 2D or 3D transposed convolution (aka fractionally strided convolution) of the input tensor. |
|
Compute 2-D deformable convolution on 4-D input. |
|
Returns element-wise log derivative of the gamma function of the input. |
|
Applies dropout operation to input array. |
|
Maps integer indices to vector representations (embeddings). |
|
Returns element-wise gauss error function of the input. |
|
Returns element-wise inverse gauss error function of the input. |
|
Run a for loop with user-defined computation over NDArrays on dimension 0. |
|
Applies a linear transformation: \(Y = XW^T + b\). |
|
Returns the gamma function (extension of the factorial function to the reals), computed element-wise on the input array. |
|
Returns element-wise log of the absolute value of the gamma function of the input. |
|
Gather elements or slices from data and store to a tensor whose shape is defined by indices. |
|
Group normalization. |
|
Add values to input according to given indexes. |
|
Update values to input according to given indexes. |
|
Applies instance normalization to the n-dimensional input array. |
|
Compute the matrix multiplication between the projections of queries and keys in multihead attention use as encoder-decoder. |
|
Compute the matrix multiplication between the projections of values and the attention weights in multihead attention use as encoder-decoder. |
|
Compute the matrix multiplication between the projections of queries and keys in multihead attention use as self attention. |
|
Compute the matrix multiplication between the projections of values and the attention weights in multihead attention use as self attention. |
|
Multiply matrices using 8-bit integers. |
|
Compute the maximum absolute value in a tensor of float32 fast on a CPU. |
|
This operator converts quantizes float32 to int8 while also banning -128. |
|
This operator converts a weight matrix in column-major format to intgemm's internal fast representation of weight matrices. |
|
Index a weight matrix stored in intgemm's weight format. |
|
Layer normalization. |
|
Applies Leaky rectified linear unit activation element-wise to the input. |
|
Computes the log softmax of the input. |
|
Computes the masked log softmax of the input. |
|
Applies the softmax function masking elements according to the mask provided |
|
Compute 2-D modulated deformable convolution on 4-D input. |
|
Convert multibox detection predictions. |
|
Generate prior(anchor) boxes from data, sizes and ratios. |
|
Compute Multibox training targets |
|
Return the indices of the elements that are non-zero. |
|
Computes the norm on an ndarray. |
|
Returns a one-hot array. |
|
Pads an input array with a constant or edge values of the array. |
|
Picks elements from an input array according to the input indices along the given axis. |
|
Performs pooling on the input. |
|
Activation operator for input and output data type of int8. |
|
Convolution operator for input, weight and bias data type of int8, and accumulates in type int32 for the output. |
|
elemwise_add operator for input dataA and input dataB data type of int8, and accumulates in type int32 for the output. |
|
Multiplies arguments int8 element-wise. |
|
Maps integer indices to int8 vector representations (embeddings). |
|
|
|
Fully Connected operator for input, weight and bias data type of int8, and accumulates in type int32 for the output. |
|
elemwise_add operator for input dataA and input dataB data type of int8, and accumulates in type int32 for the output. |
|
Pooling operator for input and output data type of int8. |
|
|
|
|
|
Computes rectified linear activation. |
|
Given data that is quantized in int32 and the corresponding thresholds, requantize the data into int8 using min and max thresholds either calculated at runtime or from calibration. |
|
Gives a new shape to an array without changing its data. |
|
Reshape some or all dimensions of lhs to have the same shape as some or all dimensions of rhs. |
|
Applies recurrent layers to input data. |
|
Performs region of interest(ROI) pooling on the input array. |
|
Straight-through-estimator of round(). |
|
Draw random samples from a Poisson distribution. |
|
Takes the last element of a sequence. |
|
Sets all elements outside the sequence to a constant value. |
|
Reverses the elements of each sequence. |
|
Returns a 1D int64 array containing the shape of data. |
|
Computes sigmoid of x element-wise. |
|
Straight-through-estimator of sign(). |
|
Compute the context vector for sliding window attention, used in Longformer (https://arxiv.org/pdf/2004.05150.pdf). |
|
Compute the mask for the sliding window attention score, used in Longformer (https://arxiv.org/pdf/2004.05150.pdf). |
|
Compute the sliding window attention score, which is used in Longformer (https://arxiv.org/pdf/2004.05150.pdf). |
|
Slices a region of the array. |
|
Splits an array along a particular axis into multiple sub-arrays. |
|
Slices a region of the array like the shape of another array. This function is similar to |
|
Calculate Smooth L1 Loss(lhs, scalar) by summing |
|
Applies the softmax function. |
|
Computes softsign of x element-wise. |
|
Stops gradient computation. |
|
Batch normalization. |
|
Concurrent sampling from multiple Poisson distributions with parameters lambda (rate). |
|
Returns the indices of the top k elements in an input array along the given |
|
Run a while loop with user-defined computation and loop condition. |
Modules
Namespace for registering control flow ops for imperative programming. |
|
Image pre-processing operators. |
|
Namespace for ops used in imperative programming. |
|
Util functions for the numpy module. |