Skip to content

Different results between Safari and Chrome #411

@oxxie

Description

@oxxie

TensorFlow.js version

0.11.6

Browser version

Safari 11.1.1 / Chrome 67.0.3396.79

Describe the problem or feature request

While running the exact same script of a simple XOR-problem on both Safari and Chrome, both browsers display very different losses after Model.fit() was performed multiple times. While Chrome keeps producing smaller losses (around 0.001), Safari gets stuck at a fixed loss (around 0.25).

Suggestion: could this be a precision issue on the Safari platform?

Code to reproduce the bug / link to feature request

Nothing fancy here, but just to be sure:

async function trainModel() {
  const h = await model.fit(trainingData.X, trainingData.Y, trainingConfig);
  console.log(h.history.loss[0]);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions