Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Allow serializing NaN in SDK #1711

Closed
wants to merge 1 commit into from
Closed

Conversation

liuzhe-lz
Copy link
Contributor

@liuzhe-lz liuzhe-lz commented Nov 6, 2019

I found json_tricks has a parameter allow_nan, which can hopefully solve issue #1589 .
But this may introduce other problems, because NaN is not part of JSON standard and cannot be deserialized in major browsers or Node.js.

Update: Maybe we can use JSON5 in TypeScript side. However our JSONs can be really large so we should assess its performance before using it.

The pipeline failed for "cannot find module sqlite3". Seems we have some version problems again. @chicm-ms

@liuzhe-lz liuzhe-lz requested a review from chicm-ms November 6, 2019 17:48
@QuanluZhang
Copy link
Contributor

this change may break nniDataStore and webui.

@liuzhe-lz
Copy link
Contributor Author

Implemented in PR #1958

@liuzhe-lz liuzhe-lz closed this Jan 15, 2020
@liuzhe-lz liuzhe-lz deleted the nan branch April 14, 2020 02:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants