Skip to content

Commit

Permalink
fix tensor::
Browse files Browse the repository at this point in the history
  • Loading branch information
Semyon1104 committed Jul 18, 2024
1 parent 12c29fb commit 4d77408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/layers/Tensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Tensor {
Shape get_shape() const { return shape_; }
Type get_type() const noexcept { return type_; }

void Tensor::set_bias(const std::vector<float>& bias) {
void set_bias(const std::vector<float>& bias) {
if (bias.size() != shape_[1]) {
throw std::invalid_argument(
"Bias size does not match the second dimension of the shape");
Expand Down

0 comments on commit 4d77408

Please sign in to comment.