Collective Knowledge Aggregator proof-of-concept
Crowd results Raw CK browser Graphs Reports Datasets Models Home

This page is outdated! New version is available here.


C++ TensorFlow classification example

Added by: cTuning foundation
Date: 2018-05-14 16:38:23.750371
License: See CK LICENSE.txt for licensing details
Module: program
Repo: ck-tensorflow
CID (DOI-like distributed ID): b0ac08fe1d3c2615:dda4f4bb0b8cf989
Tags: image-classification,tf,tensorflow,lang-cpp

Files:
README.md    (3KB)
classification.cpp    (4KB)

Cross-linking (dependencies):

Meta:
{
  "backup_data_uid": "dda4f4bb0b8cf989", 
  "compile_deps": {
    "compiler": {
      "local": "yes", 
      "name": "C++ compiler", 
      "sort": 0, 
      "tags": "compiler,lang-cpp"
    }, 
    "library": {
      "local": "yes", 
      "name": "TensorFlow C++ API", 
      "no_tags": "tensorflow-lite", 
      "sort": 20, 
      "tags": "lib,tensorflow,vstatic"
    }, 
    "xopenme": {
      "local": "yes", 
      "name": "xOpenME library", 
      "sort": 100, 
      "tags": "lib,xopenme"
    }
  }, 
  "compiler_add_include_as_env_from_deps": [
    "CK_ENV_LIB_STDCPP_INCLUDE", 
    "CK_ENV_LIB_STDCPP_INCLUDE_EXTRA", 
    "CK_ENV_LIB_TF_INCLUDE0", 
    "CK_ENV_LIB_TF_INCLUDE1", 
    "CK_ENV_LIB_TF_INCLUDE2", 
    "CK_ENV_LIB_TF_INCLUDE3", 
    "CK_ENV_LIB_TF_INCLUDE4", 
    "CK_ENV_LIB_TF_INCLUDE5", 
    "CK_ENV_LIB_TF_INCLUDE6"
  ], 
  "compiler_env": "CK_CXX", 
  "compiler_flags_as_env": "$<>$", 
  "data_name": "image-classification-tf-cpp", 
  "extra_ld_vars": "$<>$ $<>$ $<>$", 
  "linker_add_lib_as_env": [
    "CK_CXX_EXTRA", 
    "CK_ENV_LIB_STDCPP_STATIC"
  ], 
  "main_language": "cpp", 
  "only_for_target_os_tags": [
    "linux", 
    "android"
  ], 
  "process_in_tmp": "yes", 
  "program": "yes", 
  "run_cmds": {
    "default": {
      "ignore_return_code": "no", 
      "run_time": {
        "copy_env_to_remote": [
          "CK_ENV_DATASET_IMAGENET_PREPROCESSED_SUBSET_FOF", 
          "CK_ENV_DATASET_IMAGENET_PREPROCESSED_INPUT_SQUARE_SIDE", 
          "CK_ENV_TENSORFLOW_MODEL_NORMALIZE_DATA", 
          "CK_ENV_TENSORFLOW_MODEL_SUBTRACT_MEAN", 
          "ML_MODEL_GIVEN_CHANNEL_MEANS"
        ], 
        "fine_grain_timer_file": "tmp-ck-timer.json", 
        "post_process_via_ck": {
          "data_uoa": "b98ee24399ef4c3a", 
          "module_uoa": "script", 
          "script_name": "postprocess"
        }, 
        "pre_process_via_ck": {
          "data_uoa": "b98ee24399ef4c3a", 
          "module_uoa": "script", 
          "script_name": "schindler"
        }, 
        "run_cmd_main": "$#BIN_FILE#$", 
        "run_input_files": [
          "$<>$"
        ], 
        "run_output_files": [
          "tmp-ck-timer.json", 
          "predictions"
        ]
      }
    }
  }, 
  "run_deps": {
    "imagenet-aux": {
      "force_target_as_host": "yes", 
      "local": "yes", 
      "name": "ImageNet dataset (aux)", 
      "sort": 30, 
      "tags": "dataset,imagenet,aux"
    }, 
    "images": {
      "force_target_as_host": "yes", 
      "local": "yes", 
      "name": "ImageNet dataset (preprocessed subset)", 
      "sort": 20, 
      "tags": "dataset,imagenet,preprocessed"
    }, 
    "weights": {
      "force_target_as_host": "yes", 
      "local": "yes", 
      "name": "TensorFlow model and weights", 
      "no_tags": "mobilenet-all", 
      "sort": 40, 
      "tags": "model,tf,image-classification"
    }
  }, 
  "run_vars": {
    "CK_BATCH_COUNT": 1, 
    "CK_BATCH_SIZE": 1, 
    "CK_CROP_PERCENT": 87.5, 
    "CK_IMAGE_FILE": "", 
    "CK_RECREATE_CACHE": "NO", 
    "CK_RESULTS_DIR": "predictions", 
    "CK_SILENT_MODE": 0, 
    "CK_SKIP_IMAGES": 0, 
    "CK_SUBTRACT_MEAN": "YES", 
    "CK_TMP_IMAGE_SIZE": 0, 
    "IMAGE_FILENAME": "ILSVRC2012_val_00000290.JPEG"
  }, 
  "skip_bin_ext": "yes", 
  "source_files": [
    "classification.cpp"
  ], 
  "tags": [
    "image-classification", 
    "tf", 
    "tensorflow", 
    "lang-cpp"
  ], 
  "target_file": "classification", 
  "template": "yes", 
  "template_type": "image classification via TensorFlow (C++)"
}

API desc:
{}

If you notice copyrighted, inappropriate or illegal content that should not be here, please report us as soon as possible and we will try to remove it within 48hours!

Developed by Grigori Fursin           
Implemented as a CK workflow
                         
   
                      Hosted at