Skip to content

Commit 124cb3a

Browse files
ricardoV94Copilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent 002b340 commit 124cb3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/copilot-instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Emulate NumPy user-facing API as much as possible.
1313

1414
1. **Lazy evaluation**: Expressions are symbolic until `pytensor.function()` compiles or `.eval()` evaluates
1515
2. **Pure semantics**: `new_x = x[idx].set(y)` instead of `x[idx] = y`
16-
3. **Immutable/hashable**: PyTensor variables are hashable. `a == b` tests identity (`a is b`), not elemntwise equality.
16+
3. **Immutable/hashable**: PyTensor variables are hashable. `a == b` tests identity (`a is b`), not elementwise equality.
1717
4. **Static shapes**: Broadcasting requires static shape of 1. Valid: `pt.add(pt.vector("x", shape=(1,)), pt.vector("y"))`. Invalid: `pt.add(pt.vector("x", shape=(None,)), pt.vector("y"))` with x.shape=1.
18-
5. **Static rank and type**. PyTensor functions accepts variables with a specfic dtype and number of dimensions. Length of each dimension can be static or dynamic.
18+
5. **Static rank and type**. PyTensor functions accepts variables with a specific dtype and number of dimensions. Length of each dimension can be static or dynamic.
1919

2020
## Code Style
2121

0 commit comments

Comments
 (0)