You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

BatchMatrixMultLink.py 427 B

4 years ago
123456789101112
  1. from __future__ import absolute_import
  2. from .._base import _LIB
  3. from .. import ndarray as _nd
  4. def batch_matrix_multiply(matA, transA, matB, transB, matC, stream=None):
  5. assert isinstance(matA, _nd.NDArray)
  6. assert isinstance(matB, _nd.NDArray)
  7. assert isinstance(matC, _nd.NDArray)
  8. _LIB.DLGpuBatchMatrixMultiply(
  9. matA.handle, transA, matB.handle, transB, matC.handle, stream.handle if stream else None)