Add files using upload-large-folder tool
Browse files
README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# README
|
| 2 |
+
|
| 3 |
+
- MXINT8 dot product
|
| 4 |
+
```python
|
| 5 |
+
# sum(a .* b), dot product
|
| 6 |
+
# a.shape: [m]
|
| 7 |
+
# b.shape: [m]
|
| 8 |
+
# output.shape: scalar
|
| 9 |
+
output = dot_product(a, b)
|
| 10 |
+
```
|
| 11 |
+
|
| 12 |
+
- MXINT8 vector-matrix multiplication
|
| 13 |
+
```python
|
| 14 |
+
# vector @ matrix, vector-matrix multiplication
|
| 15 |
+
# vector.shape: [m]
|
| 16 |
+
# matrix.shape: [m, k]
|
| 17 |
+
# output.shape: [k]
|
| 18 |
+
output = gevm(vector, matrix)
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
- MXINT8 matrix-matrix multiplication
|
| 22 |
+
```python
|
| 23 |
+
# input @ other, matrix-matrix multiplication
|
| 24 |
+
# input.shape: [m, k]
|
| 25 |
+
# other.shape: [k, n]
|
| 26 |
+
# output.shape: [m, n]
|
| 27 |
+
output = gemm(input, other)
|
| 28 |
+
```
|