Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[oneDNN Graph] align with oneDNN v3.2 public release #486

Merged
merged 3 commits into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions source/elements/oneDNN/source/graph/data_model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ it's suggested to refer to the definition page of each operation.

u8
8-bit unsigned integer.

boolean
Boolean data type. Size is C++ implementation defined.


oneDNN Graph supports both public layout and |opaque| layout. When the
Expand Down
14 changes: 7 additions & 7 deletions source/elements/oneDNN/source/graph/ops/Add.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ Supported Data Types

Add operation supports the following data type combinations.

========= ===========
Source0/1 Destination
========= ===========
f32 f32
bf16 bf16
f16 f16
========= ===========
============= ====
Src_0 / Src_1 Dst
============= ====
f32 f32
bf16 bf16
f16 f16
============= ====
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ Supported Data Types
BatchNormTrainingBackward operation supports the following data type
combinations.

==================== ================================================
Src / Diff_dst / Dst Mean / Variance / Gamma / Diff_gamma / Diff_beta
==================== ================================================
f32 f32
bf16 f32, bf16
f16 f32
==================== ================================================
========================= ================================================
Src / Diff_dst / Diff_src Mean / Variance / Gamma / Diff_gamma / Diff_beta
========================= ================================================
f32 f32
bf16 f32, bf16
f16 f32
========================= ================================================
14 changes: 7 additions & 7 deletions source/elements/oneDNN/source/graph/ops/ClampBackward.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ Supported Data Types

ClampBackward operation supports the following data type combinations.

==== ======== ========
Src Diff_dst Diff_src
==== ======== ========
f32 f32 f32
f16 f16 f16
bf16 bf16 bf16
==== ======== ========
========= ======== ========
Src / Dst Diff_dst Diff_src
========= ======== ========
f32 f32 f32
f16 f16 f16
bf16 bf16 bf16
========= ======== ========
14 changes: 7 additions & 7 deletions source/elements/oneDNN/source/graph/ops/Concat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ Supported Data Types

Concat operation supports the following data type combinations.

==== ====
Src Dst
==== ====
f32 f32
bf16 bf16
f16 f16
==== ====
===== ====
Src_i Dst
===== ====
f32 f32
bf16 bf16
f16 f16
===== ====
14 changes: 7 additions & 7 deletions source/elements/oneDNN/source/graph/ops/Divide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ Supported Data Types

Divide operation supports the following data type combinations.

======== =========
Diff_dst Diff_bias
======== =========
f32 f32
bf16 bf16
f16 f16
======== =========
============= ====
Src_0 / Src_1 Dst
============= ====
f32 f32
bf16 bf16
f16 f16
============= ====
28 changes: 14 additions & 14 deletions source/elements/oneDNN/source/graph/ops/EluBackward.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Operation Attributes
+----------------+-------------+------------+--------------+-------------+
| |attr_use_dst| | If true, | bool | ``true`` | Optional |
| | use | | (default), | |
| | \diffsrc | | ``false`` | |
| | \dst | | ``false`` | |
| | of Elu | | | |
| | operation | | | |
| | to | | | |
Expand All @@ -47,12 +47,12 @@ Inputs
======


===== ============= ====================
Index Argument Name Required or Optional
===== ============= ====================
0 ``src`` Required
1 ``diff_dst`` Required
===== ============= ====================
===== ================= ====================
Index Argument Name Required or Optional
===== ================= ====================
0 ``src`` / ``dst`` Required
1 ``diff_dst`` Required
===== ================= ====================

Outputs
=======
Expand All @@ -70,10 +70,10 @@ Supported Data Types

EluBackward operation supports the following data type combinations.

==== ======== ========
Src Diff_dst Diff_src
==== ======== ========
f32 f32 f32
f16 f16 f16
bf16 bf16 bf16
==== ======== ========
========= ======== ========
Src / Dst Diff_dst Diff_src
========= ======== ========
f32 f32 f32
f16 f16 f16
bf16 bf16 bf16
========= ======== ========
14 changes: 7 additions & 7 deletions source/elements/oneDNN/source/graph/ops/Interpolate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ Supported Data Types

Interpolate operation supports the following data type combinations.

======= =====
Src/Dst Sizes
======= =====
f32 s32
bf16 s32
f16 s3
======= =====
========= =====
Src / Dst Sizes
========= =====
f32 s32
bf16 s32
f16 s32
========= =====
14 changes: 7 additions & 7 deletions source/elements/oneDNN/source/graph/ops/InterpolateBackward.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ Supported Data Types
InterpolateBackward operation supports the following data type
combinations.

===================== =====
Src/Diff_dst/Diff_src Sizes
===================== =====
f32 s32
bf16 s32
f16 s32
===================== =====
==== ======== ======== =====
Src Diff_dst Diff_src Sizes
==== ======== ======== =====
f32 f32 f32 s32
bf16 bf16 bf16 s32
f16 f16 f16 s32
==== ======== ======== =====
19 changes: 9 additions & 10 deletions source/elements/oneDNN/source/graph/ops/LogSoftmaxBackward.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Inputs
Index Argument Name Required or Optional
===== ============= ====================
0 ``diff_dst`` Required
1 ``src`` Required
1 ``dst`` Required
===== ============= ====================

Outputs
Expand All @@ -56,13 +56,12 @@ Index Argument Name Required or Optional
Supported Data Types
********************

LogSoftmaxBackward operation supports the following data type
combinations.
LogSoftmaxBackward operation supports the following data type combinations.

==== ====
Src Dst
==== ====
f32 f32
bf16 bf16
f16 f16
==== ====
======== ==== ========
Diff_dst Dst Diff_src
======== ==== ========
f32 f32 f32
bf16 bf16 bf16
f16 f16 f16
======== ==== ========
14 changes: 7 additions & 7 deletions source/elements/oneDNN/source/graph/ops/Maximum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ Supported Data Types

Maximum operation supports the following data type combinations.

========= ===========
Source0/1 Destination
========= ===========
f32 f32
bf16 bf16
f16 f16
========= ===========
============= ====
Src_0 / Src_1 Dst
============= ====
f32 f32
bf16 bf16
f16 f16
============= ====
14 changes: 7 additions & 7 deletions source/elements/oneDNN/source/graph/ops/Minimum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ Supported Data Types

Minimum operation supports the following data type combinations.

========= ===========
Source0/1 Destination
========= ===========
f32 f32
bf16 bf16
f16 f16
========= ===========
============= ====
Src_0 / Src_1 Dst
============= ====
f32 f32
bf16 bf16
f16 f16
============= ====
14 changes: 7 additions & 7 deletions source/elements/oneDNN/source/graph/ops/Multiply.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ Supported Data Types

Multiply operation supports the following data type combinations.

========= ===========
Source0/1 Destination
========= ===========
f32 f32
bf16 bf16
f16 f16
========= ===========
============= ====
Src_0 / Src_1 Dst
============= ====
f32 f32
bf16 bf16
f16 f16
============= ====
14 changes: 7 additions & 7 deletions source/elements/oneDNN/source/graph/ops/ReLUBackward.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ Supported Data Types

ReLUBackward operation supports the following data type combinations.

==== ======== ========
Src Diff_dst Diff_src
==== ======== ========
f32 f32 f32
f16 f16 f16
bf16 bf16 bf16
==== ======== ========
========= ======== ========
Src / Dst Diff_dst Diff_src
========= ======== ========
f32 f32 f32
f16 f16 f16
bf16 bf16 bf16
========= ======== ========
14 changes: 7 additions & 7 deletions source/elements/oneDNN/source/graph/ops/Reciprocal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ Supported Data Types

Reciprocal operation supports the following data type combinations.

====== ===========
Source Destination
====== ===========
f32 f32
bf16 bf16
f16 f16
====== ===========
==== ====
Src Dst
==== ====
f32 f32
bf16 bf16
f16 f16
==== ====
14 changes: 7 additions & 7 deletions source/elements/oneDNN/source/graph/ops/ReduceL1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ Supported Data Types

ReduceL1 operation supports the following data type combinations.

================== ====
Source/Destination Axes
================== ====
f32 s32
bf16 s32
f16 s32
================== ====
==== ==== ====
Src Dst Axes
==== ==== ====
f32 f32 s32
bf16 bf16 s32
f16 f16 s32
==== ==== ====
14 changes: 7 additions & 7 deletions source/elements/oneDNN/source/graph/ops/ReduceL2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ Supported Data Types

ReduceL2 operation supports the following data type combinations.

================== ====
Source/Destination Axes
================== ====
f32 s32
bf16 s32
f16 s32
================== ====
==== ==== ====
Src Dst Axes
==== ==== ====
f32 f32 s32
bf16 bf16 s32
f16 f16 s32
==== ==== ====
14 changes: 7 additions & 7 deletions source/elements/oneDNN/source/graph/ops/ReduceMax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ Supported Data Types

ReduceMax operation supports the following data type combinations.

================== ====
Source/Destination Axes
================== ====
f32 s32
bf16 s32
f16 s32
================== ====
==== ==== ====
Src Dst Axes
==== ==== ====
f32 f32 s32
bf16 bf16 s32
f16 f16 s32
==== ==== ====
14 changes: 7 additions & 7 deletions source/elements/oneDNN/source/graph/ops/ReduceMean.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ Supported Data Types

ReduceMean operation supports the following data type combinations.

================== ====
Source/Destination Axes
================== ====
f32 s32
bf16 s32
f16 s32
================== ====
==== ==== ====
Src Dst Axes
==== ==== ====
f32 f32 s32
bf16 bf16 s32
f16 f16 s32
==== ==== ====
Loading