Skip to content

Linear b#305

Merged
janimo merged 6 commits intomasterfrom
linear_b
Nov 13, 2025
Merged

Linear b#305
janimo merged 6 commits intomasterfrom
linear_b

Conversation

@janimo
Copy link
Copy Markdown
Contributor

@janimo janimo commented Nov 13, 2025

  • Add APIs for variants of the linear layer (with or without bias, from name or preloaded params)
  • Add squeeze

}

/// Remove a dimension of extent 1 to a tensor
pub fn squeeze<const N: usize, const M: usize>(builder: &Builder, dim: usize, x: Var) -> Var {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may not be possible, but since this removes only 1 dimension, can it be expressed as input shape = N+1, output shape = N ?

@janimo janimo merged commit cbef282 into master Nov 13, 2025
6 checks passed
@janimo janimo deleted the linear_b branch November 13, 2025 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants