Performs a matrix multiplication of the matrices ``inp1`` and ``inp2``.
:param inp: input image.
:param weight: weight tensor.
:param out_shape: output tensor shape.
:param border_mode: pixel extrapolation method.
Default: "WRAP". Currently "CONSTANT", "REFLECT",
"REFLECT_101", "ISOLATED", "WRAP", "REPLICATE", "TRANSPARENT" are supported.
:param border_val: value used in case of a constant border. Default: 0
:param format: "NHWC" as default based on historical concerns,
"NCHW" is also supported. Default: "NCHW".
:param imode: interpolation methods. Could be "LINEAR", "NEAREST", "CUBIC", "AREA".
Default: "LINEAR".
:return: output tensor.
.. note::
With different inputs dim, this function behaves differently:
Here all available options for params are listed,
- Both 1-D tensor, simply forward to ``dot``.
however it does not mean that you can use all the combinations.
- Both 2-D tensor, normal matrix multiplication.
On different platforms, different combinations are supported.
- If one input tensor is 1-D, matrix vector multiplication.
"""
- If at least one tensor are 3-dimensional or >3-dimensional, the other tensor should have dim >= 2, the batched matrix-matrix is returned, and the tensor with smaller dimension will