Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Assert dimensions of a shape are non-negative integers. #1562

Merged
merged 13 commits into from
Feb 11, 2019
Merged

Conversation

nsthorat
Copy link
Contributor

@nsthorat nsthorat commented Feb 11, 2019

Currently we check that the shape matches values in the tensor() factory method, this introduces an explicit integer check in buffer() and tensor() for integer dimensions.

towards tensorflow/tfjs#882


This change is Reviewable

@nsthorat nsthorat changed the title Assert dimensions of a shape are integers. Assert dimensions of a shape are positive integers. Feb 11, 2019
@nsthorat nsthorat changed the title Assert dimensions of a shape are positive integers. Assert dimensions of a shape are non-negative integers. Feb 11, 2019
@nsthorat nsthorat merged commit fef134c into master Feb 11, 2019
@nsthorat nsthorat deleted the int-shape branch February 11, 2019 21:04
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.

2 participants