Skip to content

How to fill or provide input tensor while inferencing in cpp. #915

@sagar1899

Description

@sagar1899

i'm using memcpy like below.

memcpy(interpreter->typed_input_tensor(0), frame.data, frame.step[0] * frame.rows);
frame is numpy array got using opencv imread.

at run time i'm getting Segmentation fault (core dumped) error.

also used vector instead of numpy array like below.

memcpy(interpreter->typed_input_tensor(0), myvec, sizeof(myvec));
myvec is vector. but got the same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions