|
1 |
| -#define _CRT_SECURE_NO_DEPRECATE // Disables ridiculous "unsafe" warnigns on Windows |
| 1 | +#define _CRT_SECURE_NO_DEPRECATE // Disables ridiculous "unsafe" warnings on Windows |
2 | 2 | #define _USE_MATH_DEFINES // For M_PI on MSVC
|
3 | 3 |
|
4 | 4 | #include "ggml-impl.h"
|
|
33 | 33 | // we should just be careful :)
|
34 | 34 | #pragma warning(disable: 4244 4267)
|
35 | 35 |
|
36 |
| -// disable POSIX deprecation warnigns |
| 36 | +// disable POSIX deprecation warnings |
37 | 37 | // these functions are never going away, anyway
|
38 | 38 | #pragma warning(disable: 4996)
|
39 | 39 | #endif
|
@@ -1760,7 +1760,7 @@ static_assert(sizeof(struct ggml_object)%GGML_MEM_ALIGN == 0, "ggml_object size
|
1760 | 1760 | static_assert(sizeof(struct ggml_tensor)%GGML_MEM_ALIGN == 0, "ggml_tensor size must be a multiple of GGML_MEM_ALIGN");
|
1761 | 1761 |
|
1762 | 1762 | // WARN:
|
1763 |
| -// Mis-confguration can lead to problem that's hard to reason about: |
| 1763 | +// Mis-configuration can lead to problem that's hard to reason about: |
1764 | 1764 | // * At best it crash or talks nosense.
|
1765 | 1765 | // * At worst it talks slightly difference but hard to perceive.
|
1766 | 1766 | //
|
@@ -7520,7 +7520,7 @@ static void ggml_compute_forward_acc_f32(
|
7520 | 7520 | GGML_ASSERT(ggml_is_contiguous(dst) && ggml_is_contiguous(src0));
|
7521 | 7521 |
|
7522 | 7522 | // view src0 and dst with these strides and data offset inbytes during acc
|
7523 |
| - // nb0 is implicitely element_size because src0 and dst are contiguous |
| 7523 | + // nb0 is implicitly element_size because src0 and dst are contiguous |
7524 | 7524 | size_t nb1 = ((int32_t *) dst->op_params)[0];
|
7525 | 7525 | size_t nb2 = ((int32_t *) dst->op_params)[1];
|
7526 | 7526 | size_t nb3 = ((int32_t *) dst->op_params)[2];
|
@@ -10161,7 +10161,7 @@ static void ggml_compute_forward_set_f32(
|
10161 | 10161 | GGML_ASSERT(ggml_is_contiguous(dst) && ggml_is_contiguous(src0));
|
10162 | 10162 |
|
10163 | 10163 | // view src0 and dst with these strides and data offset inbytes during set
|
10164 |
| - // nb0 is implicitely element_size because src0 and dst are contiguous |
| 10164 | + // nb0 is implicitly element_size because src0 and dst are contiguous |
10165 | 10165 | size_t nb1 = ((int32_t *) dst->op_params)[0];
|
10166 | 10166 | size_t nb2 = ((int32_t *) dst->op_params)[1];
|
10167 | 10167 | size_t nb3 = ((int32_t *) dst->op_params)[2];
|
@@ -14475,7 +14475,7 @@ void ggml_build_backward_gradient_checkpointing(
|
14475 | 14475 | // insert new tensors recomputing src, reusing already made replacements,
|
14476 | 14476 | // remember replacements: remember new tensors with mapping from corresponding gf nodes
|
14477 | 14477 | // recurse for input tensors,
|
14478 |
| - // unless (i.e. terminating when) input tensors are replacments (like checkpoints) |
| 14478 | + // unless (i.e. terminating when) input tensors are replacements (like checkpoints) |
14479 | 14479 | node->src[k] = ggml_recompute_graph_node(ctx, gf, replacements, node->src[k]);
|
14480 | 14480 | }
|
14481 | 14481 | // insert rewritten backward node with replacements made into resulting backward graph gb
|
|
0 commit comments