oryx.core.state.init
Stay organized with collections
Save and categorize content based on your preferences.
Transforms an object into a function that initializes a module.
oryx.core.state.init(
obj, *, name: Optional[str] = None
) -> Callable[..., oryx.core.state.Module]
init is used to create Modules from other Python data structures or
objects. For example, init-ing function would involve tracing
it to find variable and assign primitives, which would then be used to
define a module's variables() and its call_and_update method.
Another example would be a neural network template object, which can be
init-ed to return a function that returns a neural network layer module.
Args |
obj
|
The object to be initialized.
|
name
|
A string name for the initialized module..
Default value: None
|
Returns |
A function that when called, returns an initialized Module object.
|
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-23 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-23 UTC."],[],[]]