oramasearch / onnx-go

onnx-go gives the ability to import a pre-trained neural network within Go without being linked to a framework or library.
https://blog.owulveryck.info/2019/04/03/from-a-project-to-a-product-the-state-of-onnx-go.html
MIT License
704 stars 72 forks source link

chore: update go 1.19 and deps #199

Closed loeffel-io closed 2 years ago

loeffel-io commented 2 years ago

it makes sense to upgrade all deps

tests are not working before and after (need some help with that)

./scripts/go.test.sh                
ok      github.com/owulveryck/onnx-go   0.351s  coverage: 70.8% of statements
?       github.com/owulveryck/onnx-go/backend   [no test files]
?       github.com/owulveryck/onnx-go/backend/simple    [no test files]
ok      github.com/owulveryck/onnx-go/backend/testbackend       0.218s  coverage: 1.6% of statements
ok      github.com/owulveryck/onnx-go/backend/testbackend/onnx  0.278s  coverage: 100.0% of statements
?       github.com/owulveryck/onnx-go/backend/testbackend/onnx/gen_cmd  [no test files]
ok      github.com/owulveryck/onnx-go/backend/testbackend/testreport    0.217s  coverage: 50.0% of statements
--- FAIL: TestONNX (0.11s)
    --- FAIL: TestONNX/TestConcat3dAxis2 (0.00s)
        test_structure.go:89: runtime error: makeslice: len out of range
    --- FAIL: TestONNX/TestConstant (0.00s)
        test_structure.go:121: root node is not a tensor
    --- FAIL: TestONNX/TestShape (0.00s)
        test_structure.go:121: root node is not a tensor
    --- FAIL: TestONNX/TestShapeExample (0.00s)
        test_structure.go:121: root node is not a tensor
    --- FAIL: TestONNX/TestConcat3dAxis0 (0.00s)
        test_structure.go:89: runtime error: makeslice: len out of range
    --- FAIL: TestONNX/TestConcat2dAxis1 (0.00s)
        test_structure.go:89: runtime error: makeslice: len out of range
    --- FAIL: TestONNX/TestConcat2dAxis0 (0.00s)
        test_structure.go:89: runtime error: makeslice: len out of range
    --- FAIL: TestONNX/TestConcat3dAxis1 (0.00s)
        test_structure.go:89: runtime error: makeslice: len out of range
    --- FAIL: TestONNX/TestConcat1dAxis0 (0.00s)
        test_structure.go:89: runtime error: makeslice: len out of range
--- FAIL: TestSqueeze_Scalar (0.00s)
    squeeze_test.go:72: 
                Error Trace:    /Users/loeffel/go/src/github.com/loeffel-io/onnx-go/backend/x/gorgonnx/squeeze_test.go:72
                Error:          Parameters must be numerical
                Test:           TestSqueeze_Scalar
                Messages:       the two tensors should be equal.
FAIL
coverage: 75.0% of statements
FAIL    github.com/owulveryck/onnx-go/backend/x/gorgonnx        0.454s
FAIL