Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Change isNumber check for tensor indexing API #117

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

raedle
Copy link
Contributor

@raedle raedle commented Aug 30, 2022

Summary:
The tensor indexing API as implemented before was relying on exceptions when a prop name was not a number. This fails with RN 0.69.x on iOS with the following error:

Exception in HostObject::get for prop 'reshape': stoi: no conversion

This change implements an isNumber function using the ::isdigit function

Differential Revision: D39141720

@vercel
Copy link

vercel bot commented Aug 30, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
playtorch ⬜️ Ignored (Inspect) Aug 30, 2022 at 8:41PM (UTC)

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Aug 30, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D39141720

raedle added a commit to raedle/playtorch that referenced this pull request Aug 30, 2022
Summary:
Pull Request resolved: facebookresearch#117

The tensor indexing API as implemented before was relying on exceptions when a prop name was not a number. This fails with RN 0.69.x on iOS with the following error:

```
Exception in HostObject::get for prop 'reshape': stoi: no conversion
```

This change implements an `isNumber` function using the `::isdigit` function

Differential Revision: D39141720

fbshipit-source-id: 81e6efa58b0a3b7ffa34677ca722495c50cd2506
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D39141720

raedle added a commit to raedle/playtorch that referenced this pull request Aug 30, 2022
Summary:
Pull Request resolved: facebookresearch#117

The tensor indexing API as implemented before was relying on exceptions when a prop name was not a number. This fails with RN 0.69.x on iOS with the following error:

```
Exception in HostObject::get for prop 'reshape': stoi: no conversion
```

This change implements an `isNumber` function using the `::isdigit` function

Differential Revision: D39141720

fbshipit-source-id: 7fb46d8abd82751002555ea079ff9309eda93c12
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D39141720

Summary:
Pull Request resolved: facebookresearch#117

The tensor indexing API as implemented before was relying on exceptions when a prop name was not a number. This fails with RN 0.69.x on iOS with the following error:

```
Exception in HostObject::get for prop 'reshape': stoi: no conversion
```

This change implements an `isNumber` function using the `::isdigit` function

Differential Revision: D39141720

fbshipit-source-id: f5e930acfd39285a91fea362116f5297ab72411a
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D39141720

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants