Skip to content

Commit 0bb2430

Browse files
vsytchcopybara-github
authored andcommitted
[XLA] Update Async Op documentation
Since b/302594825 has been resolved, we should remove the mention to it and update the examples to use the new (simplified) syntax. PiperOrigin-RevId: 603430588
1 parent 6164860 commit 0bb2430

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

docs/async_ops.md

+3-14
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,13 @@ instructions.
2424
2525
%async-start = (f32[64], f32[32], s32[]) async-start(f32[64] %operand),
2626
calls=%async_op
27-
%async-done = f32[32] async-done((f32[64], f32[32], s32[]) %async-start),
28-
calls=%async_op
27+
%async-done = f32[32] async-done((f32[64], f32[32], s32[]) %async-start)
2928
```
3029

3130
In the representation above, only `async-start` has a called computation since
3231
it is trivial to find what the `async-done` does by following its operand to
3332
find the corresponding `async-start` to find the called computation.
3433

35-
Today both `async-start` and `async-done` have a called computation attribute,
36-
but long term we plan to keep it only for `async-start`, since it is trivial
37-
to find what the `async-done` does by following its operand to find the
38-
corresponding `async-start` to find the called computation.
39-
40-
> [!NOTE]
41-
> Tracked as b/302594825 internally.
42-
4334
Also note
4435
that the first element in the output tuple of `async-start` aliases with the
4536
operand, so the buffer stays alive until at least the async-done instruction.
@@ -102,10 +93,8 @@ to the following and the two can be parsed to the same representation:
10293
(f32[64], f32[32], s32[]) %op-start),
10394
op_specific_attr=”foo”
10495
%op-update1 = (f32[64], f32[32], s32[]) op-update(
105-
(f32[64], f32[32], s32[]) %op-update0),
106-
op_specific_attr=”foo”
107-
%op-done = f32[32] op-done((f32[64], f32[32], s32[]) %op-update1),
108-
op_specific_attr=”foo”
96+
(f32[64], f32[32], s32[]) %op-update0)
97+
%op-done = f32[32] op-done((f32[64], f32[32], s32[]) %op-update1)
10998
11099
```
111100

0 commit comments

Comments
 (0)