|
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
|
@@ -1756,7 +1756,7 @@ static_assert(sizeof(struct ggml_object)%GGML_MEM_ALIGN == 0, "ggml_object size
|
1756 | 1756 | static_assert(sizeof(struct ggml_tensor)%GGML_MEM_ALIGN == 0, "ggml_tensor size must be a multiple of GGML_MEM_ALIGN");
|
1757 | 1757 |
|
1758 | 1758 | // WARN:
|
1759 |
| -// Mis-confguration can lead to problem that's hard to reason about: |
| 1759 | +// Mis-configuration can lead to problem that's hard to reason about: |
1760 | 1760 | // * At best it crash or talks nosense.
|
1761 | 1761 | // * At worst it talks slightly difference but hard to perceive.
|
1762 | 1762 | //
|
@@ -7421,7 +7421,7 @@ static void ggml_compute_forward_acc_f32(
|
7421 | 7421 | GGML_ASSERT(ggml_is_contiguous(dst) && ggml_is_contiguous(src0));
|
7422 | 7422 |
|
7423 | 7423 | // view src0 and dst with these strides and data offset inbytes during acc
|
7424 |
| - // nb0 is implicitely element_size because src0 and dst are contiguous |
| 7424 | + // nb0 is implicitly element_size because src0 and dst are contiguous |
7425 | 7425 | size_t nb1 = ((int32_t *) dst->op_params)[0];
|
7426 | 7426 | size_t nb2 = ((int32_t *) dst->op_params)[1];
|
7427 | 7427 | size_t nb3 = ((int32_t *) dst->op_params)[2];
|
@@ -10027,7 +10027,7 @@ static void ggml_compute_forward_set_f32(
|
10027 | 10027 | GGML_ASSERT(ggml_is_contiguous(dst) && ggml_is_contiguous(src0));
|
10028 | 10028 |
|
10029 | 10029 | // view src0 and dst with these strides and data offset inbytes during set
|
10030 |
| - // nb0 is implicitely element_size because src0 and dst are contiguous |
| 10030 | + // nb0 is implicitly element_size because src0 and dst are contiguous |
10031 | 10031 | size_t nb1 = ((int32_t *) dst->op_params)[0];
|
10032 | 10032 | size_t nb2 = ((int32_t *) dst->op_params)[1];
|
10033 | 10033 | size_t nb3 = ((int32_t *) dst->op_params)[2];
|
@@ -14272,7 +14272,7 @@ void ggml_build_backward_gradient_checkpointing(
|
14272 | 14272 | // insert new tensors recomputing src, reusing already made replacements,
|
14273 | 14273 | // remember replacements: remember new tensors with mapping from corresponding gf nodes
|
14274 | 14274 | // recurse for input tensors,
|
14275 |
| - // unless (i.e. terminating when) input tensors are replacments (like checkpoints) |
| 14275 | + // unless (i.e. terminating when) input tensors are replacements (like checkpoints) |
14276 | 14276 | node->src[k] = ggml_recompute_graph_node(ctx, gf, replacements, node->src[k]);
|
14277 | 14277 | }
|
14278 | 14278 | // insert rewritten backward node with replacements made into resulting backward graph gb
|
|
0 commit comments