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
29b354e0
"ts/webui/src/static/const.ts" did not exist on "cf3d434f767d0de9809ddf0e7b9445e7bc36a258"
Commit
29b354e0
authored
Nov 09, 2018
by
Paul
Browse files
Add more documentation
parent
6eb13d95
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
74 additions
and
12 deletions
+74
-12
doc/CMakeLists.txt
doc/CMakeLists.txt
+10
-3
doc/src/reference/data.rst
doc/src/reference/data.rst
+1
-1
doc/src/reference/pass.rst
doc/src/reference/pass.rst
+31
-6
doc/src/reference/program.rst
doc/src/reference/program.rst
+1
-1
src/include/migraph/common_subexpression_elimination.hpp
src/include/migraph/common_subexpression_elimination.hpp
+3
-0
src/include/migraph/config.hpp
src/include/migraph/config.hpp
+1
-1
src/include/migraph/constant_propagate.hpp
src/include/migraph/constant_propagate.hpp
+3
-0
src/include/migraph/dead_code_elimination.hpp
src/include/migraph/dead_code_elimination.hpp
+3
-0
src/include/migraph/eliminate_allocation.hpp
src/include/migraph/eliminate_allocation.hpp
+3
-0
src/include/migraph/eliminate_concat.hpp
src/include/migraph/eliminate_concat.hpp
+3
-0
src/include/migraph/eliminate_contiguous.hpp
src/include/migraph/eliminate_contiguous.hpp
+3
-0
src/include/migraph/fwd_conv_batchnorm_rewrite.hpp
src/include/migraph/fwd_conv_batchnorm_rewrite.hpp
+3
-0
src/include/migraph/memory_coloring.hpp
src/include/migraph/memory_coloring.hpp
+3
-0
src/include/migraph/simplify_algebra.hpp
src/include/migraph/simplify_algebra.hpp
+3
-0
src/include/migraph/simplify_reshapes.hpp
src/include/migraph/simplify_reshapes.hpp
+3
-0
No files found.
doc/CMakeLists.txt
View file @
29b354e0
...
...
@@ -5,9 +5,12 @@ set(DOXYGEN_OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/doxygen/)
add_doxygen_doc
(
OUTPUT_DIRECTORY
${
DOXYGEN_OUTPUT
}
INPUT
${
CMAKE_CURRENT_SOURCE_DIR
}
/../include
${
CMAKE_CURRENT_SOURCE_DIR
}
/../src
${
CMAKE_CURRENT_SOURCE_DIR
}
/../onnx
INCLUDE_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/../src/include
${
CMAKE_CURRENT_SOURCE_DIR
}
/../src/targets/cpu/include
${
CMAKE_CURRENT_SOURCE_DIR
}
/../src/targets/gpu/include
SEARCH_INCLUDES YES
MACRO_EXPANSION YES
RECURSIVE YES
GENERATE_XML YES
...
...
@@ -28,6 +31,10 @@ add_doxygen_doc(
FULL_PATH_NAMES YES
PREDEFINED DOXYGEN
)
add_custom_target
(
remove_inline_ns
sed -i
"s/MIGRAPH_INLINE_NS:://g"
*.xml
WORKING_DIRECTORY
${
DOXYGEN_OUTPUT
}
/xml
)
add_dependencies
(
remove_inline_ns doxygen
)
include
(
SphinxDoc
)
add_sphinx_doc
(
src
...
...
@@ -36,7 +43,7 @@ add_sphinx_doc(src
VARS
breathe_projects.proj=
${
DOXYGEN_OUTPUT
}
/xml
breathe_default_project=proj
DEPENDS doxygen
DEPENDS doxygen
remove_inline_ns
)
find_package
(
LATEX
)
...
...
doc/src/reference/data.rst
View file @
29b354e0
...
...
@@ -21,7 +21,7 @@ raw_data
.. doxygenstruct:: migraph::raw_data
.. doxygenfunction:: migraph::visit_all
.. doxygenfunction:: migraph::
MIGRAPH_INLINE_NS::
visit_all
tensor_view
...
...
doc/src/reference/pass.rst
View file @
29b354e0
...
...
@@ -11,12 +11,37 @@ dead_code_elimination
.. doxygenstruct:: migraph::dead_code_elimination
auto_contiguous
---------------
common_subexpression_elimination
---------------
-----------------
.. doxygenstruct:: migraph::
gpu::auto_contiguous
.. doxygenstruct:: migraph::
common_subexpression_elimination
write_literals
--------------
constant_propagate
--------------
----
.. doxygenstruct:: migraph::gpu::write_literals
.. doxygenstruct:: migraph::constant_propagate
eliminate_concat
----------------
.. doxygenstruct:: migraph::eliminate_concat
eliminate_contiguous
--------------------
.. doxygenstruct:: migraph::eliminate_contiguous
fwd_conv_batchnorm_rewrite
--------------------------
.. doxygenstruct:: migraph::fwd_conv_batchnorm_rewrite
simplify_algebra
----------------
.. doxygenstruct:: migraph::simplify_algebra
simplify_reshapes
-----------------
.. doxygenstruct:: migraph::simplify_reshapes
doc/src/reference/program.rst
View file @
29b354e0
...
...
@@ -21,4 +21,4 @@ program
parse_onnx
----------
.. doxygenfunction:: migraph::parse_onnx
.. doxygenfunction:: migraph::
MIGRAPH_INLINE_NS::
parse_onnx
src/include/migraph/common_subexpression_elimination.hpp
View file @
29b354e0
...
...
@@ -10,6 +10,9 @@ inline namespace MIGRAPH_INLINE_NS {
struct
program
;
/**
* Remove identical instructions.
*/
struct
common_subexpression_elimination
{
std
::
string
name
()
const
{
return
"common_subexpression_elimination"
;
}
...
...
src/include/migraph/config.hpp
View file @
29b354e0
...
...
@@ -3,7 +3,7 @@
namespace
migraph
{
#if
n
def
MIGRAPH_USE_CLANG_TIDY
#if
!
def
ined(
MIGRAPH_USE_CLANG_TIDY
) && !defined(DOXYGEN)
#define MIGRAPH_INLINE_NS version_1
#endif
...
...
src/include/migraph/constant_propagate.hpp
View file @
29b354e0
...
...
@@ -9,6 +9,9 @@ inline namespace MIGRAPH_INLINE_NS {
struct
program
;
/**
* Replace instructions which take all literals with a literal of the computation.
*/
struct
constant_propagate
{
std
::
string
name
()
const
{
return
"constant_propagate"
;
}
...
...
src/include/migraph/dead_code_elimination.hpp
View file @
29b354e0
...
...
@@ -10,6 +10,9 @@ inline namespace MIGRAPH_INLINE_NS {
struct
program
;
/**
* Remove instructions where the output is not used.
*/
struct
dead_code_elimination
{
std
::
string
name
()
const
{
return
"dead_code_elimination"
;
}
...
...
src/include/migraph/eliminate_allocation.hpp
View file @
29b354e0
...
...
@@ -10,6 +10,9 @@ inline namespace MIGRAPH_INLINE_NS {
struct
program
;
/**
* Remove memory allocations. This will create a parameter which is the max of all memory used in the program.
*/
struct
eliminate_allocation
{
std
::
string
allocation_op
{};
...
...
src/include/migraph/eliminate_concat.hpp
View file @
29b354e0
...
...
@@ -11,6 +11,9 @@ inline namespace MIGRAPH_INLINE_NS {
struct
program
;
/**
* Remove concat operators by having each operator can write to different chunk of memory.
*/
struct
eliminate_concat
{
concat_optimization
concat_opt
;
...
...
src/include/migraph/eliminate_contiguous.hpp
View file @
29b354e0
...
...
@@ -10,6 +10,9 @@ inline namespace MIGRAPH_INLINE_NS {
struct
program
;
/**
* Remove contiguous instructions by checking if the operator can use non-standard shapes.
*/
struct
eliminate_contiguous
{
std
::
string
name
()
const
{
return
"eliminate_contiguous"
;
}
...
...
src/include/migraph/fwd_conv_batchnorm_rewrite.hpp
View file @
29b354e0
...
...
@@ -10,6 +10,9 @@ inline namespace MIGRAPH_INLINE_NS {
struct
program
;
/**
* Rewrite batchnorm to a multiply and add.
*/
struct
fwd_conv_batchnorm_rewrite
{
std
::
string
name
()
const
{
return
"fwd_conv_batchnorm_rewrite"
;
}
...
...
src/include/migraph/memory_coloring.hpp
View file @
29b354e0
...
...
@@ -9,6 +9,9 @@ namespace migraph {
inline
namespace
MIGRAPH_INLINE_NS
{
struct
program
;
/**
* Remove memory allocations. It uses graph coloring to find memory allocations that can be reused.
*/
struct
memory_coloring
{
std
::
string
allocation_op
{};
...
...
src/include/migraph/simplify_algebra.hpp
View file @
29b354e0
...
...
@@ -9,6 +9,9 @@ inline namespace MIGRAPH_INLINE_NS {
struct
program
;
/**
* Simplify many algebraic instructions to more efficient versions.
*/
struct
simplify_algebra
{
std
::
string
name
()
const
{
return
"simplify_algebra"
;
}
...
...
src/include/migraph/simplify_reshapes.hpp
View file @
29b354e0
...
...
@@ -10,6 +10,9 @@ inline namespace MIGRAPH_INLINE_NS {
struct
program
;
/**
* Eliminate redundant reshapes.
*/
struct
simplify_reshapes
{
std
::
string
name
()
const
{
return
"simplify_reshapes"
;
}
...
...
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