diff --git a/backprop/backward-inl.h b/backprop/backward-inl.h index 67b0aa4..fe693ca 100644 --- a/backprop/backward-inl.h +++ b/backprop/backward-inl.h @@ -197,7 +197,6 @@ void LayerVJP(const LayerT& weights, float* HWY_RESTRICT b_out_mul = b_out + kFFHiddenDim; namespace hn = hwy::HWY_NAMESPACE; using DF = hn::ScalableTag; - using VF = hn::Vec; DF df; for (size_t i = 0; i < kFFHiddenDim; i += Lanes(df)) { const auto y = Load(df, f_out + i); diff --git a/util/app.h b/util/app.h index c1eff00..d8b7405 100644 --- a/util/app.h +++ b/util/app.h @@ -21,7 +21,6 @@ #include #include -#include // std::clamp #include #include #include @@ -132,7 +131,7 @@ class AppArgs : public ArgsBase { } static inline size_t GetSupportedThreadCount() { - return std::min(hwy::ThreadPool::MaxThreads(), kMaxThreads); + return HWY_MIN(hwy::ThreadPool::MaxThreads(), kMaxThreads); } Path log; // output