bulk change to unify **Required.** and **Optional.** (#6503)
This commit is contained in:
1 parent
ebb3c8518c
commit
20f10a43a4
109 files changed
+401
-403
No files matched your search
@@ -10,13 +10,13 @@
|
||||
|
||||
**Inputs**:
|
||||
|
||||
* **1**: `emb_table` tensor containing the embedding lookup table of the module of shape `[num_emb, emb_dim1, emb_dim2, ...]` and of type *T*. Required.
|
||||
* **1**: `emb_table` tensor containing the embedding lookup table of the module of shape `[num_emb, emb_dim1, emb_dim2, ...]` and of type *T*. **Required.**
|
||||
|
||||
* **2**: `indices` tensor of shape `[num_indices]` and of type *T_IND*. Required.
|
||||
* **2**: `indices` tensor of shape `[num_indices]` and of type *T_IND*. **Required.**
|
||||
|
||||
* **3**: `offsets` tensor of shape `[batch]` and of type *T_IND* containing the starting index positions of each "bag" in `indices`. Required.
|
||||
* **3**: `offsets` tensor of shape `[batch]` and of type *T_IND* containing the starting index positions of each "bag" in `indices`. **Required.**
|
||||
|
||||
* **4**: `default_index` scalar of type *T_IND* containing default index in embedding table to fill empty "bags". If not provided empty "bags" are filled with zeros. Optional.
|
||||
* **4**: `default_index` scalar of type *T_IND* containing default index in embedding table to fill empty "bags". If not provided empty "bags" are filled with zeros. **Optional.**
|
||||
|
||||
* **5**: `per_sample_weights` tensor of the same shape as `indices` and of type *T*. Each value in this tensor are multiplied with each value pooled from embedding table for each index. Optional, default is tensor of ones.
|
||||
|
||||
@@ -57,4 +57,4 @@
|
||||
</port>
|
||||
</output>
|
||||
</layer>
|
||||
```
|
||||
```
|
||||
@@ -10,9 +10,9 @@
|
||||
|
||||
**Inputs**:
|
||||
|
||||
* **1**: `emb_table` tensor containing the embedding lookup table of the module of shape `[num_emb, emb_dim1, emb_dim2, ...]` and of type *T*. Required.
|
||||
* **1**: `emb_table` tensor containing the embedding lookup table of the module of shape `[num_emb, emb_dim1, emb_dim2, ...]` and of type *T*. **Required.**
|
||||
|
||||
* **2**: `indices` tensor of shape `[batch, indices_per_bag]` and of type *T_IND*. Required.
|
||||
* **2**: `indices` tensor of shape `[batch, indices_per_bag]` and of type *T_IND*. **Required.**
|
||||
|
||||
* **3**: `per_sample_weights` tensor of the same shape as `indices` and of type *T*. Each value in this tensor are multiplied with each value pooled from embedding table for each index. Optional, default is tensor of ones.
|
||||
|
||||
@@ -51,4 +51,4 @@
|
||||
</port>
|
||||
</output>
|
||||
</layer>
|
||||
```
|
||||
```
|
||||
@@ -10,15 +10,15 @@
|
||||
|
||||
**Inputs**:
|
||||
|
||||
* **1**: `emb_table` tensor containing the embedding lookup table of the module of shape `[num_emb, emb_dim1, emb_dim2, ...]` and of type *T*. Required.
|
||||
* **1**: `emb_table` tensor containing the embedding lookup table of the module of shape `[num_emb, emb_dim1, emb_dim2, ...]` and of type *T*. **Required.**
|
||||
|
||||
* **2**: `indices` tensor of shape `[num_indices]` and of type *T_IND*. Required.
|
||||
* **2**: `indices` tensor of shape `[num_indices]` and of type *T_IND*. **Required.**
|
||||
|
||||
* **3**: `segment_ids` tensor of shape `[num_indices]` and of type *T_IND* with indices into the output Tensor. Values should be sorted and can be repeated. Required.
|
||||
* **3**: `segment_ids` tensor of shape `[num_indices]` and of type *T_IND* with indices into the output Tensor. Values should be sorted and can be repeated. **Required.**
|
||||
|
||||
* **4**: `num_segments` scalar of type *T_IND* indicating the number of segments. Required.
|
||||
* **4**: `num_segments` scalar of type *T_IND* indicating the number of segments. **Required.**
|
||||
|
||||
* **5**: `default_index` scalar of type *T_IND* containing default index in embedding table to fill empty segments. If not provided empty segments are filled with zeros. Optional.
|
||||
* **5**: `default_index` scalar of type *T_IND* containing default index in embedding table to fill empty segments. If not provided empty segments are filled with zeros. **Optional.**
|
||||
|
||||
* **6**: `per_sample_weights` tensor of the same shape as `indices` and of type *T*. Each value in this tensor are multiplied with each value pooled from embedding table for each index. Optional, default is tensor of ones.
|
||||
|
||||
@@ -60,4 +60,4 @@
|
||||
</port>
|
||||
</output>
|
||||
</layer>
|
||||
```
|
||||
```
|
||||
Reference in new issue
Block a user