Skip to content

Commit

Permalink
Require go 1.23 as it is now needed by dependent libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
RJKeevil committed Sep 10, 2024
1 parent 2e34127 commit 238a580
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/knights-analytics/hugot

go 1.22
go 1.23

require (
github.com/daulet/tokenizers v0.9.0
Expand Down
9 changes: 5 additions & 4 deletions hugot.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"slices"

util "github.com/knights-analytics/hugot/utils"

Expand Down Expand Up @@ -323,10 +324,10 @@ func (s *Session) Destroy() error {
// the average time per onnxruntime inference batch call
func (s *Session) GetStats() []string {
// slices.Concat() is not implemented in experimental x/exp/slices package
return append(append(append(
return slices.Concat(
s.tokenClassificationPipelines.GetStats(),
s.textClassificationPipelines.GetStats()...),
s.featureExtractionPipelines.GetStats()...),
s.zeroShotClassificationPipelines.GetStats()...,
s.textClassificationPipelines.GetStats(),
s.featureExtractionPipelines.GetStats(),
s.zeroShotClassificationPipelines.GetStats(),
)
}

0 comments on commit 238a580

Please sign in to comment.