apple / apple/swift-numerics

Inconsistent results between MacOS and Linux

Open
#102 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
1.9k
Forks
181
Avg merge
2d 5h
Merged PRs (30d)
6

Description

Hi, my framework uses the Numerics package. We developed a model using the SwiftRT API and a version using TensorFlow. On the Mac we get the exact same results. The results were recorded and put into the unit tests to assure a constant point of reference.

On Ubuntu and gLinux, TensorFlow produces the exact same results. SwiftRT using the Numerics package almost produces the same results up to 0.001 difference. I am wondering if the Numerics package is relying on system library functions which are inconsistent across platforms?

If so, this is a big problem. Any insights?

Thanks, Ed

Contributor guide

Open the contributing guide

Research direction

Start with the existing unit tests that record the reference results, then reproduce the SwiftRT and TensorFlow comparisons on MacOS, Ubuntu, and gLinux. Investigate whether Numerics relies on platform-dependent system math functions; done means identifying the source of the 0.001 difference and documenting or correcting the cross-platform behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.