Skip to content

Instantly share code, notes, and snippets.

@tedsta
Created January 15, 2016 03:14
Show Gist options
  • Save tedsta/af5adfaa98bed6719117 to your computer and use it in GitHub Desktop.
Save tedsta/af5adfaa98bed6719117 to your computer and use it in GitHub Desktop.
Node struct in deeplearn-rs
pub struct Node {
pub inputs: Vec<VarIndex>,
pub outputs: Vec<VarIndex>,
pub in_grad: Vec<VarIndex>, // gradients on inputs
pub out_grad: Vec<OutGrad>, // gradients on outputs
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment