tree: 8c5c1ebdf0b491df455799d91646e00855105336 [path history] [tgz]
  1. example_preprocessing.cc
  2. example_preprocessing.h
  3. example_preprocessing_test.cc
  4. ranker_example_util.cc
  5. ranker_example_util.h
  6. ranker_example_util_test.cc
  7. README.md
ml/example_preprocessor/README.md

Example preprocessor

This is used in a feature-level ml-service. RankerExample proto contains a feature map from name to value, and ExamplePreprocessor can vectorize it to a float list with an ExamplePreprocessorConfig. The vectorized list can be used as tensor and fed to tflite models.

Files in this directory are copied from chromium repo: //components/assist_ranker/.

ranker_example.proto and example_preprocessor.proto in ../proto are copied from chromium repo: //components/assist_ranker/proto/