Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an InitializeTarget function that can be specialized for a given target. #47077

Merged
merged 1 commit into from
Feb 12, 2021

Commits on Feb 12, 2021

  1. Add an InitializeTarget function that can be sepcialized for a given …

    …target.
    
    This will allow the unit tests to be run on additional targets that need
    some addiitonal initialization (for example cornstone_300 from tensorflow#46830).
    
    This particular change is broken out from the Cornstone PR tensorflow#46830 to
    be able to have smaller more reviewable PRs.
    
    In the past, we have added state to the DebugLog() and
    GetCurrentTimeTicks() functions as a way to avoid having an
    InitializeTarget function. With this change, we are deciding to go with
    an explicit intitialization step instead.
    
    This change has added calls to tflite::InitializeTarget to the tests,
    benchmarks, and examples and converted the Arduino and SparkfunEdge to
    make use of this explicit initialization.
    
    The changes for the Arduino and SparkfunEdge have not been tested on
    actual hardware.
    
    Progress towards tensorflow#46829
    advaitjain committed Feb 12, 2021
    Configuration menu
    Copy the full SHA
    81d33f1 View commit details
    Browse the repository at this point in the history