Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
c45be227
Commit
c45be227
authored
Mar 08, 2019
by
Shucai Xiao
Browse files
clang format
parent
fbd89bc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/include/migraphx/operators.hpp
src/include/migraphx/operators.hpp
+5
-5
No files found.
src/include/migraphx/operators.hpp
View file @
c45be227
...
@@ -807,17 +807,17 @@ struct gather
...
@@ -807,17 +807,17 @@ struct gather
}
}
};
};
// The dot operation is combination of the onnx GEMM and MatMul operators.
// The dot operation is combination of the onnx GEMM and MatMul operators.
// For GEMM, it support the C matrix in the formula alpha * AB + beta * C,
// For GEMM, it support the C matrix in the formula alpha * AB + beta * C,
// in which C is broadcastable to the shape of AB. For the transpose of A
// in which C is broadcastable to the shape of AB. For the transpose of A
// and B, we add a tranpose operator if the onnx file needs.
// and B, we add a tranpose operator if the onnx file needs.
// For MatMul, it has the same definition as the numpy.matmul, which means
// For MatMul, it has the same definition as the numpy.matmul, which means
// A, B could be 1 to N-dims. For 1-dim input of A, it is a vector * matrix,
// A, B could be 1 to N-dims. For 1-dim input of A, it is a vector * matrix,
// for 1-dim of B, it is a matrix * vector. Note that there is not support
// for 1-dim of B, it is a matrix * vector. Note that there is not support
// of batch of 1-dim vector. In another word, if A or B is 1-dim, it is a
// of batch of 1-dim vector. In another word, if A or B is 1-dim, it is a
// vector input; if A or B is 2-dim, it is a matrix (no case of a batch of
// vector input; if A or B is 2-dim, it is a matrix (no case of a batch of
// vectors as input). If A or B is 3 or more dims, it is considered as a
// vectors as input). If A or B is 3 or more dims, it is considered as a
// stack(batch) of matrices.
// stack(batch) of matrices.
struct
dot
struct
dot
{
{
float
alpha
=
1.0
;
float
alpha
=
1.0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment