Skip to content

Feature/detection postprocess - #24

Merged
lkindrat-xmos merged 3 commits into
developfrom
feature/detection_postprocess
May 6, 2021
Merged

lkindrat-xmos merged 3 commits into
developfrom
feature/detection_postprocess

Conversation

@lkindrat-xmos

Copy link
Copy Markdown

No description provided.

@andrewstanfordjason andrewstanfordjason left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

pretty much each line has a one for one replacement with the xcore custom option parser which is nice. the only note is the DCHECK was dropped, is it no longer necessary?

op_data->max_classes_per_detection = m["max_classes_per_detection"].AsInt32();
if (m["detections_per_class"].IsNull())
auto* op_data =
ops::micro::xcore::construct_persistent_object<OpData>(context);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

does this not need/benefit from TFLITE_DCHECK?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

context->AllocatePersistentBuffer should not be nullptr (if it is, it means the function pointer has not been registered, not sure how that would happen). I'll add a check inside construct_persistent_object to make sure the memory request is succesful.

@lkindrat-xmos
lkindrat-xmos merged commit c4f0392 into develop May 6, 2021
@lkindrat-xmos
lkindrat-xmos deleted the feature/detection_postprocess branch May 6, 2021 20:55
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.

2 participants