oryx.core.sow
Stay organized with collections
Save and categorize content based on your preferences.
Marks a value with a name and a tag.
oryx.core.sow(
value,
*,
tag: Hashable,
name: str,
mode: str = 'strict',
key=None
)
Args |
value
|
A JAX value to be tagged and named.
|
tag
|
a string representing the tag of the sown value.
|
name
|
a string representing the name to sow the value with.
|
mode
|
The mode by which to sow the value. There are three options: 1.
'strict' - if another value is sown with the same name and tag in the
same context, harvest will throw an error. 2. 'clobber' - if another is
value is sown with the same name and tag, it will replace this value 3.
'append' - sown values of the same name and tag are appended to a
growing list. Append mode assumes some ordering on the values being sown
defined by data-dependence.
|
key
|
an optional JAX value that will be tied into the sown value.
|
Returns |
The original value that was passed in, or a planted value.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-05-24 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-24 UTC."],[],[]]