1# Description: 2# TensorFlow C++ inference example for labeling images. 3 4load("//tensorflow:tensorflow.bzl", "tf_cc_binary", "tf_cc_test") 5 6package( 7 default_visibility = ["//tensorflow:internal"], 8 licenses = ["notice"], 9) 10 11cc_library( 12 name = "wav_to_spectrogram_lib", 13 srcs = ["wav_to_spectrogram.cc"], 14 hdrs = ["wav_to_spectrogram.h"], 15 deps = [ 16 "//tensorflow/cc:cc_ops", 17 "//tensorflow/core:core_cpu", 18 "//tensorflow/core:framework", 19 "//tensorflow/core:framework_internal", 20 "//tensorflow/core:lib", 21 "//tensorflow/core:protos_all_cc", 22 "//tensorflow/core:tensorflow", 23 ], 24) 25 26tf_cc_binary( 27 name = "wav_to_spectrogram", 28 srcs = ["main.cc"], 29 deps = [ 30 ":wav_to_spectrogram_lib", 31 "//tensorflow/core:framework_internal", 32 "//tensorflow/core:lib", 33 ], 34) 35 36tf_cc_test( 37 name = "wav_to_spectrogram_test", 38 size = "medium", 39 srcs = ["wav_to_spectrogram_test.cc"], 40 deps = [ 41 ":wav_to_spectrogram_lib", 42 "//tensorflow/core:lib", 43 "//tensorflow/core:lib_internal", 44 "//tensorflow/core:test", 45 "//tensorflow/core:test_main", 46 ], 47) 48