Skip to content

Conversation

@bani-intelaipg
Copy link
Contributor

@bani-intelaipg bani-intelaipg commented Jan 14, 2020

condition on val_size > i as tensor size can be smaller. See NGTF-2515
Prior PR related to this: #395

case DT_INT32:
val_size = tensor.int_val_size();
if (val_size > 0) val_i = tensor.int_val()[i];
if (val_size > i) val_i = tensor.int_val()[i];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a test, which tests this fix

@adk9 adk9 deleted the bani/bugfix_const_NGTF-2515 branch September 17, 2020 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants