Skip to content

Commit e480063

Browse files
Armavicamichaelosthege
authored andcommitted
Spell-check the repository
1 parent a6e7722 commit e480063

File tree

24 files changed

+42
-42
lines changed

24 files changed

+42
-42
lines changed

doc/extending/creating_a_c_op.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ discussed below.
930930
For every input which has a :attr:`dtype` attribute (this means
931931
Tensors), the following macros will be
932932
defined unless your `Op` class has an :attr:`Op.check_input` attribute
933-
defined to False. In these descrptions 'i' refers to the position
933+
defined to False. In these descriptions 'i' refers to the position
934934
(indexed from 0) in the input array.
935935

936936
* ``DTYPE_INPUT_{i}`` : NumPy dtype of the data in the array.

doc/extending/creating_an_op.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ As an illustration, this tutorial will demonstrate how a simple Python-based
2020

2121
.. note::
2222

23-
This is an introductury tutorial and as such it does not cover how to make
23+
This is an introductory tutorial and as such it does not cover how to make
2424
an :class:`Op` that returns a view or modifies the values in its inputs. Thus, all
2525
:class:`Op`\s created with the instructions described here MUST return newly
2626
allocated memory or reuse the memory provided in the parameter
@@ -203,7 +203,7 @@ or :meth:`Op.make_thunk`.
203203

204204
There are other methods that can be optionally defined by the :class:`Op`:
205205

206-
:meth:`Op.__eq__` and :meth:`Op.__hash__` define respectivelly equality
206+
:meth:`Op.__eq__` and :meth:`Op.__hash__` define respectively equality
207207
between two :class:`Op`\s and the hash of an :class:`Op` instance.
208208
They will be used during the rewriting phase to merge nodes that are doing
209209
equivalent computations (same inputs, same operation).

doc/extending/scan.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ designated **inner inputs** and **inner outputs**, respectively.
9292
================
9393

9494
The following are the different types of variables that `Scan` has the
95-
capacity to handle, along with their various caracteristics.
95+
capacity to handle, along with their various characteristics.
9696

9797
**Sequence** : A sequence is an PyTensor variable which `Scan` will iterate
9898
over and give sub-elements to its inner function as input. A sequence

doc/library/tensor/random/utils.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Guide
1313
=====
1414

15-
PyTensor assignes NumPy RNG states (e.g. `Generator` or `RandomState` objects) to
15+
PyTensor assigns NumPy RNG states (e.g. `Generator` or `RandomState` objects) to
1616
each `RandomVariable`. The combination of an RNG state, a specific
1717
`RandomVariable` type (e.g. `NormalRV`), and a set of distribution parameters
1818
uniquely defines the `RandomVariable` instances in a graph.

doc/scripts/docgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
print(' --cache: use the doctree cache')
2222
print(' --rst: only compile the doc (requires sphinx)')
2323
print(' --nopdf: do not produce a PDF file from the doc, only HTML')
24-
print(' --test: run all the code samples in the documentaton')
24+
print(' --test: run all the code samples in the documentation')
2525
print(' --check: treat warnings as errors')
2626
print(' --help: this help')
2727
print('If one or more files are specified after the options then only '

doc/tutorial/shape_info.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ You can create variables with static shape information as follows:
4444
pytensor.tensor.tensor("float64", shape=(4, 3, 2))
4545
4646
47-
You can also pass shape infomation directly to some :class:`Op`\s, like ``RandomVariables``
47+
You can also pass shape information directly to some :class:`Op`\s, like ``RandomVariables``
4848

4949
.. code-block:: python
5050

pytensor/compile/function/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ def copy(
599599
# helper function
600600
def checkSV(sv_ori, sv_rpl):
601601
"""
602-
Assert two SharedVariable follow some restirctions:
602+
Assert two SharedVariable follow some restrictions:
603603
1. same type
604604
2. same shape or dim?
605605
"""

pytensor/compile/profiling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def print_global_stats():
165165
print(
166166
(
167167
"Global stats: ",
168-
f"Time elasped since PyTensor import = {time.perf_counter() - pytensor_imported_time:6.3f}s, "
168+
f"Time elapsed since PyTensor import = {time.perf_counter() - pytensor_imported_time:6.3f}s, "
169169
f"Time spent in PyTensor functions = {total_fct_exec_time:6.3f}s, "
170170
"Time spent compiling PyTensor functions: "
171171
f"rewriting = {total_graph_rewrite_time:6.3f}s, linking = {total_time_linker:6.3f}s ",
@@ -768,7 +768,7 @@ def summary_nodes(self, file=sys.stderr, N=None):
768768
f" output {int(idx)}: dtype={dtype}, shape={sh}, strides={st}{off}",
769769
file=file,
770770
)
771-
# Same as before, this I've sacrificied some information making
771+
# Same as before, this I've sacrificed some information making
772772
# the output more readable
773773
print(
774774
" ... (remaining %i Apply instances account for "

pytensor/configdefaults.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ def add_testvalue_and_checking_configvars():
792792
"print_test_value",
793793
(
794794
"If 'True', the __eval__ of an PyTensor variable will return its test_value "
795-
"when this is available. This has the practical conseguence that, e.g., "
795+
"when this is available. This has the practical consequence that, e.g., "
796796
"in debugging `my_var` will print the same as `my_var.tag.test_value` "
797797
"when a test value is defined."
798798
),
@@ -1099,7 +1099,7 @@ def add_optimizer_configvars():
10991099

11001100
config.add(
11011101
"optdb__position_cutoff",
1102-
"Where to stop eariler during optimization. It represent the"
1102+
"Where to stop earlier during optimization. It represent the"
11031103
" position of the optimizer where to stop.",
11041104
FloatParam(np.inf),
11051105
in_c_key=False,

pytensor/graph/replace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def graph_replace(
103103
# inputs do not have owners
104104
# this is exactly the reason to clone conditions
105105
equiv = {c: c.clone(name=f"i-{i}") for i, c in enumerate(conditions)}
106-
# some replace keys may dissapear
106+
# some replace keys may disappear
107107
# the reason is they are outside the graph
108108
# clone the graph but preserve the equiv mapping
109109
fg = FunctionGraph(

0 commit comments

Comments
 (0)