mirror of https://github.com/google/gemma.cpp.git
parent
1605925d1e
commit
2ee1fac74c
|
|
@ -608,7 +608,9 @@ cc_library(
|
||||||
],
|
],
|
||||||
deps = [
|
deps = [
|
||||||
":activations",
|
":activations",
|
||||||
|
":basics",
|
||||||
":configs",
|
":configs",
|
||||||
|
":kv_cache",
|
||||||
":mat",
|
":mat",
|
||||||
":matmul",
|
":matmul",
|
||||||
":matmul_env",
|
":matmul_env",
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,14 @@
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
#include <type_traits>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "compression/types.h" // GEMMA_DISABLED_TARGETS
|
#include "compression/types.h" // GEMMA_DISABLED_TARGETS
|
||||||
#include "gemma/flash_structs.h"
|
#include "gemma/flash_structs.h"
|
||||||
|
#include "gemma/kv_cache.h"
|
||||||
|
#include "gemma/query.h"
|
||||||
|
#include "util/basics.h"
|
||||||
#include "util/threading_context.h"
|
#include "util/threading_context.h"
|
||||||
#include "util/zones.h"
|
#include "util/zones.h"
|
||||||
#include "hwy/base.h"
|
#include "hwy/base.h"
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ template <typename T>
|
||||||
void PrintMatPtr(MatPtrT<T> mat) {
|
void PrintMatPtr(MatPtrT<T> mat) {
|
||||||
for (int i = 0; i < mat.Rows(); ++i) {
|
for (int i = 0; i < mat.Rows(); ++i) {
|
||||||
for (int j = 0; j < mat.Cols(); ++j) {
|
for (int j = 0; j < mat.Cols(); ++j) {
|
||||||
std::cerr << mat.Row(i)[j] << " ,";
|
std::cerr << hwy::ConvertScalarTo<float>(mat.Row(i)[j]) << " ,";
|
||||||
}
|
}
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue