summaryrefslogtreecommitdiff
path: root/candle-pyo3/tests/native/test_tensor.py
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2023-12-17 05:20:05 -0600
committerGitHub <noreply@github.com>2023-12-17 05:20:05 -0600
commit1e86717bf274c6a0380f56f195727812e49f80a2 (patch)
tree10ced030940fa76dac22e86af8204b886ea352d3 /candle-pyo3/tests/native/test_tensor.py
parentc630622a071756860499ea7914d3a032a47be1b0 (diff)
downloadcandle-1e86717bf274c6a0380f56f195727812e49f80a2.tar.gz
candle-1e86717bf274c6a0380f56f195727812e49f80a2.tar.bz2
candle-1e86717bf274c6a0380f56f195727812e49f80a2.zip
Fix a couple typos (#1451)
* Mixtral quantized instruct. * Fix a couple typos.
Diffstat (limited to 'candle-pyo3/tests/native/test_tensor.py')
-rw-r--r--candle-pyo3/tests/native/test_tensor.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/candle-pyo3/tests/native/test_tensor.py b/candle-pyo3/tests/native/test_tensor.py
index ef44fc4c..04eaca0d 100644
--- a/candle-pyo3/tests/native/test_tensor.py
+++ b/candle-pyo3/tests/native/test_tensor.py
@@ -84,7 +84,7 @@ def assert_bool(t: Tensor, expected: bool):
assert bool(t.values()) == expected
-def test_tensor_supports_equality_opperations_with_scalars():
+def test_tensor_supports_equality_operations_with_scalars():
t = Tensor(42.0)
assert_bool(t == 42.0, True)
@@ -106,7 +106,7 @@ def test_tensor_supports_equality_opperations_with_scalars():
assert_bool(t <= 42.0, True)
-def test_tensor_supports_equality_opperations_with_tensors():
+def test_tensor_supports_equality_operations_with_tensors():
t = Tensor(42.0)
same = Tensor(42.0)
other = Tensor(43.0)
@@ -130,7 +130,7 @@ def test_tensor_supports_equality_opperations_with_tensors():
assert_bool(t <= other, True)
-def test_tensor_equality_opperations_can_broadcast():
+def test_tensor_equality_operations_can_broadcast():
# Create a decoder attention mask as a test case
# e.g.
# [[1,0,0]