| 41 | } // namespace tensorflow |
| 42 | |
| 43 | int main(int argc, char* argv[]) { |
| 44 | tensorflow::port::InitMain(argv[0], &argc, &argv); |
| 45 | if (argc < 2) { |
| 46 | LOG(ERROR) << "You must supply a CSV file as the first argument"; |
| 47 | return 1; |
| 48 | } |
| 49 | tensorflow::string filename(argv[1]); |
| 50 | tensorflow::Status status = tensorflow::wav::ConvertCsvToRaw(filename); |
| 51 | if (!status.ok()) { |
| 52 | LOG(ERROR) << "Error processing '" << filename << "':" << status; |
| 53 | return 1; |
| 54 | } |
| 55 | return 0; |
| 56 | } |
nothing calls this directly
no test coverage detected