train : remove inaccurate my_llama_hparams::operator== (clang-tidy)
This operator overload is not used anyway - explicitly deleting it seems to have no effect on compilation. train-text-from-scratch.cpp:174:16: warning: comparing object representation of type 'my_llama_hparams' which does not have a unique object representation; consider comparing the members of the object manually [bugprone-suspicious-memory-comparison] return memcmp(this, &other, sizeof(my_llama_hparams)); ^
This commit is contained in:
parent
f75865610d
commit
87b90f505d
1 changed files with 0 additions and 4 deletions
|
@ -169,10 +169,6 @@ struct my_llama_hparams {
|
||||||
|
|
||||||
float rope_freq_base = 10000.0f;
|
float rope_freq_base = 10000.0f;
|
||||||
float rope_freq_scale = 1.0f;
|
float rope_freq_scale = 1.0f;
|
||||||
|
|
||||||
bool operator!=(const my_llama_hparams& other) const {
|
|
||||||
return memcmp(this, &other, sizeof(my_llama_hparams));
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct my_llama_layer {
|
struct my_llama_layer {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue