mirror of https://github.com/google/gemma.cpp.git
Fix windows build: min conflict, unused VF
PiperOrigin-RevId: 650955138
This commit is contained in:
parent
063bbaa683
commit
ee6e017a77
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue