Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion candle-pyo3/py_src/candle/models/bert.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def __init__(self, config: Config) -> None:
)

def forward(self, input_ids: Tensor, token_type_ids: Tensor) -> Tensor:
(_batch_size, seq_len) = input_ids.shape
_batch_size, seq_len = input_ids.shape
input_embeddings = self.word_embeddings.forward(input_ids)
token_type_embeddings = self.token_type_embeddings.forward(token_type_ids)
embeddings: Tensor = input_embeddings + token_type_embeddings
Expand Down
1 change: 0 additions & 1 deletion candle-pyo3/py_src/candle/testing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import candle
from candle import Tensor


_UNSIGNED_DTYPES = set([str(candle.u8), str(candle.u32)])


Expand Down
2 changes: 1 addition & 1 deletion candle-pyo3/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ line-length = 119
target-version = ['py35']

[project.optional-dependencies]
testing = ["pytest", "black==22.3"]
testing = ["pytest", "black==26.3.1"]
huggingface = ["transformers>=4.33.3", "huggingface-hub>=0.17.3"]
1 change: 0 additions & 1 deletion candle-pyo3/stub.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from pathlib import Path
import re


INDENT = " " * 4
GENERATED_COMMENT = "# Generated content DO NOT EDIT\n"
TYPING = """from typing import Any, Callable, Dict, List, Optional, Tuple, Union, Sequence
Expand Down