mirror of https://github.com/tracel-ai/burn.git
Make Param.id public (#1859)
* Make Param.id public * Remove extra comment.
This commit is contained in:
parent
d28183c7e4
commit
675f6b3280
|
@ -31,7 +31,8 @@ use core::ops::Deref;
|
||||||
/// let module = module.load_record(record);
|
/// let module = module.load_record(record);
|
||||||
/// ```
|
/// ```
|
||||||
pub struct Param<T: Parameter> {
|
pub struct Param<T: Parameter> {
|
||||||
pub(crate) id: ParamId,
|
/// The unique ID of this parameter. This is used by eg. optimizers to associate a gradient with a specific parameter.
|
||||||
|
pub id: ParamId,
|
||||||
state: OnceCell<T>,
|
state: OnceCell<T>,
|
||||||
/// The locking is only required because of `lazy_device` and `lazy_is_require_grad`.
|
/// The locking is only required because of `lazy_device` and `lazy_is_require_grad`.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue