|
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
|
@@ -1762,7 +1762,7 @@ static_assert(sizeof(struct ggml_object)%GGML_MEM_ALIGN == 0, "ggml_object size
|
1762 | 1762 | static_assert(sizeof(struct ggml_tensor)%GGML_MEM_ALIGN == 0, "ggml_tensor size must be a multiple of GGML_MEM_ALIGN");
|
1763 | 1763 |
|
1764 | 1764 | // WARN:
|
1765 |
| -// Mis-confguration can lead to problem that's hard to reason about: |
| 1765 | +// Mis-configuration can lead to problem that's hard to reason about: |
1766 | 1766 | // * At best it crash or talks nosense.
|
1767 | 1767 | // * At worst it talks slightly difference but hard to perceive.
|
1768 | 1768 | //
|
@@ -7524,7 +7524,7 @@ static void ggml_compute_forward_acc_f32(
|
7524 | 7524 | GGML_ASSERT(ggml_is_contiguous(dst) && ggml_is_contiguous(src0));
|
7525 | 7525 |
|
7526 | 7526 | // view src0 and dst with these strides and data offset inbytes during acc
|
7527 |
| - // nb0 is implicitely element_size because src0 and dst are contiguous |
| 7527 | + // nb0 is implicitly element_size because src0 and dst are contiguous |
7528 | 7528 | size_t nb1 = ((int32_t *) dst->op_params)[0];
|
7529 | 7529 | size_t nb2 = ((int32_t *) dst->op_params)[1];
|
7530 | 7530 | size_t nb3 = ((int32_t *) dst->op_params)[2];
|
@@ -10165,7 +10165,7 @@ static void ggml_compute_forward_set_f32(
|
10165 | 10165 | GGML_ASSERT(ggml_is_contiguous(dst) && ggml_is_contiguous(src0));
|
10166 | 10166 |
|
10167 | 10167 | // view src0 and dst with these strides and data offset inbytes during set
|
10168 |
| - // nb0 is implicitely element_size because src0 and dst are contiguous |
| 10168 | + // nb0 is implicitly element_size because src0 and dst are contiguous |
10169 | 10169 | size_t nb1 = ((int32_t *) dst->op_params)[0];
|
10170 | 10170 | size_t nb2 = ((int32_t *) dst->op_params)[1];
|
10171 | 10171 | size_t nb3 = ((int32_t *) dst->op_params)[2];
|
@@ -14491,7 +14491,7 @@ void ggml_build_backward_gradient_checkpointing(
|
14491 | 14491 | // insert new tensors recomputing src, reusing already made replacements,
|
14492 | 14492 | // remember replacements: remember new tensors with mapping from corresponding gf nodes
|
14493 | 14493 | // recurse for input tensors,
|
14494 |
| - // unless (i.e. terminating when) input tensors are replacments (like checkpoints) |
| 14494 | + // unless (i.e. terminating when) input tensors are replacements (like checkpoints) |
14495 | 14495 | node->src[k] = ggml_recompute_graph_node(ctx, gf, replacements, node->src[k]);
|
14496 | 14496 | }
|
14497 | 14497 | // insert rewritten backward node with replacements made into resulting backward graph gb
|
|
0 commit comments