Skip to content

Commit

Permalink
Add pub access modifier to publicly used struct fields (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm authored Apr 9, 2024
1 parent a8367b0 commit ed01d0a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions autograd/context.v
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ pub fn (mut ctx Context[T]) pop[T]() !&Node[T] {

@[params]
pub struct ContextVariableData {
pub:
requires_grad bool = true
}

Expand Down
1 change: 1 addition & 0 deletions nn/optimizers/sgd.v
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub mut:

@[params]
pub struct SgdOptimizerConfig {
pub:
learning_rate f64 = 0.001
}

Expand Down
1 change: 1 addition & 0 deletions src/stack.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module vtl

@[params]
pub struct AxisData {
pub:
axis int
}

Expand Down
1 change: 1 addition & 0 deletions stats/stats.v
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import math
import math.stats as math_stats

pub struct AxisData {
pub:
axis int
}

Expand Down

0 comments on commit ed01d0a

Please sign in to comment.