Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xEricCardozo authored Oct 5, 2023
1 parent 16402f4 commit c84fa19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ The API is currently inspired by PyTorch, with one notable difference: when you
#include <CaberNet/CaberNet.h>

int main() {
net::Tensor x({2,3}, false); x.fill({1,2,3,4,5,6});
net::Tensor w({4,3}, true); w.fill({1,2,-3,4,5,6,7,8,-9,10,11,-12});
net::Tensor b({1,4}, true); b.fill({1,2,3,4});
net::Tensor I({2,4}, false); I.fill(1);
net::Tensor x({2,3}, net::requires_gradient::False); x.fill({1,2,3,4,5,6});
net::Tensor w({4,3}, net::requires_gradient::True); w.fill({1,2,-3,4,5,6,7,8,-9,10,11,-12});
net::Tensor b({1,4}, net::requires_gradient::True); b.fill({1,2,3,4});
net::Tensor I({2,4}, net::requires_gradient::False); I.fill(1);

x = net::function::linear(x,w,b);
x = net::function::relu(x);
Expand Down

0 comments on commit c84fa19

Please sign in to comment.