File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11module github.com/knights-analytics/hugot
22
3- go 1.22
3+ go 1.23.1
44
55require (
66 github.com/daulet/tokenizers v0.9.0
Original file line number Diff line number Diff line change 44 "context"
55 "errors"
66 "fmt"
7+ "slices"
78
89 util "github.com/knights-analytics/hugot/utils"
910
@@ -323,10 +324,10 @@ func (s *Session) Destroy() error {
323324// the average time per onnxruntime inference batch call
324325func (s * Session ) GetStats () []string {
325326 // slices.Concat() is not implemented in experimental x/exp/slices package
326- return append ( append ( append (
327+ return slices . Concat (
327328 s .tokenClassificationPipelines .GetStats (),
328- s .textClassificationPipelines .GetStats ()... ) ,
329- s .featureExtractionPipelines .GetStats ()... ) ,
330- s .zeroShotClassificationPipelines .GetStats ()... ,
329+ s .textClassificationPipelines .GetStats (),
330+ s .featureExtractionPipelines .GetStats (),
331+ s .zeroShotClassificationPipelines .GetStats (),
331332 )
332333}
You can’t perform that action at this time.
0 commit comments