API 参考#
- flax.config 包
- flax.core.frozen_dict 包
- flax.cursor 包
- flax.errors 包
AlreadyExistsError
ApplyModuleInvalidMethodError
ApplyScopeInvalidVariablesStructureError
ApplyScopeInvalidVariablesTypeError
AssignSubModuleError
CallCompactUnboundModuleError
CallSetupUnboundModuleError
CallShareScopeOnUnboundModuleError
CallUnbindOnUnboundModuleError
CursorFindError
DescriptorAttributeError
IncorrectPostInitOverrideError
InvalidCheckpointError
InvalidFilterError
InvalidInstanceModuleError
InvalidRngError
InvalidScopeError
JaxTransformError
LazyInitError
MPACheckpointingRequiredError
MPARestoreDataCorruptedError
MPARestoreTargetRequiredError
ModifyScopeVariableError
MultipleMethodsCompactError
NameInUseError
PartitioningUnspecifiedError
ReservedModuleAttributeError
ScopeCollectionNotFound
ScopeParamNotFoundError
ScopeParamShapeError
ScopeVariableNotFoundError
SetAttributeFrozenModuleError
SetAttributeInModuleSetupError
TraceContextError
TransformTargetError
TransformedMethodReturnValueError
TraverseTreeError
- flax.jax_utils 包
- flax.linen
- 模块
模块
Module.__setattr__()
Module.apply()
Module.bind()
Module.copy()
Module.get_variable()
Module.has_rng()
Module.has_variable()
Module.init()
Module.init_with_output()
Module.is_initializing()
Module.is_mutable_collection()
Module.lazy_init()
Module.make_rng()
Module.module_paths()
Module.param()
Module.path
Module.perturb()
Module.put_variable()
Module.setup()
Module.sow()
Module.tabulate()
Module.unbind()
Module.variable()
Module.variables
apply()
init()
init_with_output()
intercept_methods()
share_scope()
- 初始化/应用
- 层
- 激活函数
- 初始化器
- 转换
- 检查
- 变量字典
- SPMD
- 装饰器
- 性能分析
- 模块
- flax.serialization 包
- flax.struct 包
- flax.traceback_util 包
- flax.training 包
- flax.traverse_util 包