Skip to content

Commit

Permalink
Explicit type of the optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
fszewczyk committed Nov 7, 2023
1 parent d3ea8b8 commit 7f2207f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ int main() {
.build();
// clang-format on

auto optimizer = Optimizer32(mlp->parameters(), 0.1);
auto optimizer = Optimizer<Type::float32>(mlp->parameters(), 0.1);
auto lossFunction = Loss::MSE<Type::float32>;

for (size_t epoch = 0; epoch < 1000; epoch++) {
Expand Down

0 comments on commit 7f2207f

Please sign in to comment.