Fix windows build: min conflict, unused VF

PiperOrigin-RevId: 650955138
This commit is contained in:
Jan Wassenberg 2024-07-10 04:17:46 -07:00 committed by Copybara-Service
parent 063bbaa683
commit ee6e017a77
2 changed files with 1 additions and 3 deletions

View File

@ -197,7 +197,6 @@ void LayerVJP(const LayerT<TConfig>& weights,
float* HWY_RESTRICT b_out_mul = b_out + kFFHiddenDim;
namespace hn = hwy::HWY_NAMESPACE;
using DF = hn::ScalableTag<float>;
using VF = hn::Vec<DF>;
DF df;
for (size_t i = 0; i < kFFHiddenDim; i += Lanes(df)) {
const auto y = Load(df, f_out + i);

View File

@ -21,7 +21,6 @@
#include <stddef.h>
#include <stdio.h>
#include <algorithm> // std::clamp
#include <memory>
#include <string>
#include <vector>
@ -132,7 +131,7 @@ class AppArgs : public ArgsBase<AppArgs> {
}
static inline size_t GetSupportedThreadCount() {
return std::min(hwy::ThreadPool::MaxThreads(), kMaxThreads);
return HWY_MIN(hwy::ThreadPool::MaxThreads(), kMaxThreads);
}
Path log; // output