mirror of https://github.com/google/gemma.cpp.git
Merge pull request #267 from ufownl:bugfix/clang_ce
PiperOrigin-RevId: 645329422
This commit is contained in:
commit
c2efcb0da4
|
|
@ -232,7 +232,7 @@ void LogWeightStats(Model model, Type weight_type, const ByteStorageT& weights);
|
||||||
template <class TConfig, class RawLayer = void, class RawWeightsPtr, class Func>
|
template <class TConfig, class RawLayer = void, class RawWeightsPtr, class Func>
|
||||||
void ForEachTensor(RawWeightsPtr raw_weights,
|
void ForEachTensor(RawWeightsPtr raw_weights,
|
||||||
CompressedWeights<TConfig>& c_weights, Func& func) {
|
CompressedWeights<TConfig>& c_weights, Func& func) {
|
||||||
constexpr bool kHaveRaw = !hwy::IsSame<RawWeightsPtr, nullptr_t>();
|
constexpr bool kHaveRaw = !hwy::IsSame<RawWeightsPtr, std::nullptr_t>();
|
||||||
|
|
||||||
GEMMA_CALL_TOP_FUNC("c_embedding", embedder_input_embedding);
|
GEMMA_CALL_TOP_FUNC("c_embedding", embedder_input_embedding);
|
||||||
GEMMA_CALL_TOP_FUNC("c_final_norm", final_norm_scale);
|
GEMMA_CALL_TOP_FUNC("c_final_norm", final_norm_scale);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue