Skip to content

Commit 8b981fa

Browse files
committed
remove used type var
1 parent 9d79859 commit 8b981fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bpe.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ end
4444
Base.show(io::IO, bpe::CachedBPE) = (print(io, "CachedBPE("); show(io, bpe.bpe); print(io, ')'))
4545

4646

47-
_bigram(ms, i) where T = @inbounds ms[i], ms[i+1]
47+
_bigram(ms, i) = @inbounds ms[i], ms[i+1]
4848

4949
function lowestrank(merging_rank, ms)
5050
m0 = _bigram(ms, 1)

src/stats.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function Statistic(word_counts::Dict{String, Int}, endsym)
4141
end
4242

4343
# convert string into list of character units for later merging
44-
bpe_units(x::AbstractString, endsym) where T = as_string.(merges(x, endsym), nothing, endsym)
44+
bpe_units(x::AbstractString, endsym) = as_string.(merges(x, endsym), nothing, endsym)
4545

4646
# find adjacent element. return a list of Pair, if only length one, return []
4747
bi_pairs(t) = map(Base.splat(=>), zip(t, Iterators.drop(t, 1)))

0 commit comments

Comments
 (0)