def _compute_value(self):
        A_val, B_val = self.A.value, self.B.value
        if A_val.ndim > 2 or B_val.ndim > 2:
            raise Exception("Inputs of shape %s and %s are not matrices or vectors" % (self.A.shape))
        if A_val.shape[-1] != B_val.shape[0]:
            raise Exception("Cannot multiply %s by %s matrices." % (self.A.shape, self.B.shape))

        return np.dot(self.A.value, self.B.value)
dataset/ETHPy150Open HIPS/Kayak/kayak/matrix_ops.py/MatMult._compute_value/original