Fix compilation errors in clang

It will occur in `ubuntu-latest` of GitHub Actions.
This commit is contained in:
RangerUFO 2024-06-21 13:40:40 +08:00
parent 0570972d43
commit f7855251ea
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ void LogWeightStats(Model model, Type weight_type, const ByteStorageT& weights);
template <class TConfig, class RawLayer = void, class RawWeightsPtr, class Func>
void ForEachTensor(RawWeightsPtr raw_weights,
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_final_norm", final_norm_scale);