-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documentation for 2021.5 release. (#690)
Signed-off-by: Olga Malysheva <[email protected]>
- Loading branch information
Showing
10 changed files
with
195 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
window.MathJax = { | ||
TeX: { | ||
Macros: { | ||
src: '\\operatorname{src}', | ||
srclayer: '\\operatorname{src\\_layer}', | ||
srciter: '\\operatorname{src\\_iter}', | ||
srciterc: '\\operatorname{src\\_iter\\_c}', | ||
weights: '\\operatorname{weights}', | ||
weightslayer: '\\operatorname{weights\\_layer}', | ||
weightsiter: '\\operatorname{weights\\_iter}', | ||
weightspeephole: '\\operatorname{weights\\_peephole}', | ||
weightsprojection: '\\operatorname{weights\\_projection}', | ||
bias: '\\operatorname{bias}', | ||
dst: '\\operatorname{dst}', | ||
dstlayer: '\\operatorname{dst\\_layer}', | ||
dstiter: '\\operatorname{dst\\_iter}', | ||
dstiterc: '\\operatorname{dst\\_iter\\_c}', | ||
diffsrc: '\\operatorname{diff\\_src}', | ||
diffsrclayer: '\\operatorname{diff\\_src\\_layer}', | ||
diffsrciter: '\\operatorname{diff\\_src\\_iter}', | ||
diffsrciterc: '\\operatorname{diff\\_src\\_iter\\_c}', | ||
diffweights: '\\operatorname{diff\\_weights}', | ||
diffweightslayer: '\\operatorname{diff\\_weights\\_layer}', | ||
diffweightsiter: '\\operatorname{diff\\_weights\\_iter}', | ||
diffweightspeephole: '\\operatorname{diff\\_weights\\_peephole}', | ||
diffweightsprojection: '\\operatorname{diff\\_weights\\_projection}', | ||
diffbias: '\\operatorname{diff\\_bias}', | ||
diffdst: '\\operatorname{diff\\_dst}', | ||
diffdstlayer: '\\operatorname{diff\\_dst\\_layer}', | ||
diffdstiter: '\\operatorname{diff\\_dst\\_iter}', | ||
diffdstiterc: '\\operatorname{diff\\_dst\\_iter\\_c}', | ||
diffgamma: '\\operatorname{diff\\_\\gamma}', | ||
diffbeta: '\\operatorname{diff\\_\\beta}', | ||
workspace: '\\operatorname{workspace}' | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* override table width restrictions */ | ||
@media screen and (min-width: 767px) { | ||
|
||
.wy-table-responsive table td { | ||
/* !important prevents the common CSS stylesheets from overriding | ||
this as on RTD they are loaded after this stylesheet */ | ||
white-space: normal !important; | ||
} | ||
|
||
.wy-table-responsive { | ||
overflow: visible !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
.. _parallel_sort_ranges_extension: | ||
|
||
parallel_sort ranges interface extension | ||
======================================== | ||
|
||
.. contents:: | ||
:local: | ||
:depth: 1 | ||
|
||
Description | ||
*********** | ||
|
||
|full_name| implementation extends the `oneapi::tbb::parallel_sort specification <https://spec.oneapi.io/versions/latest/elements/oneTBB/source/algorithms/functions/parallel_sort_func.html>`_ | ||
with overloads that takes the container by forwarding reference. | ||
|
||
|
||
API | ||
*** | ||
|
||
Header | ||
------ | ||
|
||
.. code:: cpp | ||
#include <oneapi/tbb/parallel_sort.h> | ||
Syntax | ||
------ | ||
|
||
.. code:: cpp | ||
namespace oneapi { | ||
namespace tbb { | ||
template <typename Container> | ||
void parallel_sort( Container&& c ); | ||
template <typename Container, typename Compare> | ||
void parallel_sort( Container&& c, const Compare& comp ); | ||
} // namespace tbb | ||
} // namespace oneapi | ||
Functions | ||
--------- | ||
|
||
.. cpp:function:: template <typename Container> void parallel_sort( Container&& c ); | ||
|
||
Equivalent to ``parallel_sort( std::begin(c), std::end(c), comp )``, where `comp` uses `operator<` to determine relative orderings. | ||
|
||
.. cpp:function:: template <typename Container, typename Compare> void parallel_sort( Container&& c, const Compare& comp ); | ||
|
||
Equivalent to ``parallel_sort( std::begin(c), std::end(c), comp )``. | ||
|
||
Example | ||
------- | ||
|
||
This interface may be used for sorting rvalue or constant views: | ||
|
||
.. code:: cpp | ||
#include <array> | ||
#include <span> // requires C++20 | ||
#include <oneapi/tbb/parallel_sort.h> | ||
std::span<int> get_span() { | ||
static std::array<int, 3> arr = {3, 2, 1}; | ||
return std::span<int>(arr); | ||
} | ||
int main() { | ||
tbb::parallel_sort(get_span()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters