├── example-tests ├── bin │ └── data │ │ ├── .gitkeep │ │ └── images │ │ ├── .gitkeep │ │ └── grace_hopper.png ├── addons.make └── Makefile ├── example-basic ├── bin │ ├── data │ │ └── models │ │ │ ├── .gitkeep │ │ │ └── model.pb │ └── py │ │ └── model_builder.py ├── addons.make └── Makefile ├── libs └── tensorflow │ ├── lib │ ├── linux64 │ │ └── .gitkeep │ └── osx │ │ └── README.md │ └── include │ ├── Eigen │ ├── Eigen │ ├── src │ │ ├── Core │ │ │ ├── util │ │ │ │ ├── NonMPL2.h │ │ │ │ └── ReenableStupidWarnings.h │ │ │ ├── functors │ │ │ │ └── TernaryFunctors.h │ │ │ ├── DiagonalProduct.h │ │ │ └── arch │ │ │ │ └── AVX │ │ │ │ └── TypeCasting.h │ │ ├── misc │ │ │ └── lapacke_mangling.h │ │ └── SparseCore │ │ │ └── SparseFuzzy.h │ ├── Dense │ ├── StdList │ ├── StdDeque │ ├── StdVector │ ├── Householder │ ├── Sparse │ ├── Jacobi │ ├── QtAlignedMalloc │ ├── MetisSupport │ ├── PardisoSupport │ ├── Cholesky │ ├── SPQRSupport │ ├── SparseQR │ └── QR │ ├── third_party │ └── eigen3 │ │ ├── Eigen │ │ ├── LU │ │ ├── QR │ │ ├── SVD │ │ ├── Core │ │ ├── Cholesky │ │ └── Eigenvalues │ │ ├── unsupported │ │ └── Eigen │ │ │ ├── CXX11 │ │ │ ├── ThreadPool │ │ │ └── Tensor │ │ │ └── SpecialFunctions │ │ └── BUILD │ ├── tensorflow │ ├── cc │ │ ├── saved_model │ │ │ ├── README.md │ │ │ ├── testdata │ │ │ │ ├── half_plus_two │ │ │ │ │ └── 00000123 │ │ │ │ │ │ └── variables │ │ │ │ │ │ ├── variables.data-00000-of-00001 │ │ │ │ │ │ └── variables.index │ │ │ │ ├── half_plus_two_main_op │ │ │ │ │ └── 00000123 │ │ │ │ │ │ └── variables │ │ │ │ │ │ ├── variables.data-00000-of-00001 │ │ │ │ │ │ └── variables.index │ │ │ │ └── half_plus_two_pbtxt │ │ │ │ │ └── 00000123 │ │ │ │ │ └── variables │ │ │ │ │ ├── variables.data-00000-of-00001 │ │ │ │ │ └── variables.index │ │ │ └── tag_constants.h │ │ ├── ops │ │ │ ├── no_op_internal.h │ │ │ ├── io_ops_internal.h │ │ │ ├── user_ops_internal.h │ │ │ ├── audio_ops_internal.h │ │ │ ├── state_ops_internal.h │ │ │ ├── linalg_ops_internal.h │ │ │ ├── random_ops_internal.h │ │ │ ├── sparse_ops_internal.h │ │ │ ├── string_ops_internal.h │ │ │ ├── logging_ops_internal.h │ │ │ ├── parsing_ops_internal.h │ │ │ ├── training_ops_internal.h │ │ │ ├── data_flow_ops_internal.h │ │ │ ├── candidate_sampling_ops_internal.h │ │ │ ├── no_op.h │ │ │ └── user_ops.h │ │ └── framework │ │ │ ├── cc_op_gen.h │ │ │ ├── scope_internal.h │ │ │ └── testutil.h │ └── core │ │ ├── lib │ │ ├── bmp │ │ │ └── testdata │ │ │ │ └── lena.bmp │ │ ├── gif │ │ │ └── testdata │ │ │ │ ├── lena.gif │ │ │ │ ├── scan.gif │ │ │ │ └── optimized.gif │ │ ├── lmdb │ │ │ └── testdata │ │ │ │ └── data.mdb │ │ ├── jpeg │ │ │ └── testdata │ │ │ │ ├── corrupt.jpg │ │ │ │ ├── bad_huffman.jpg │ │ │ │ ├── corrupt34_2.jpg │ │ │ │ ├── corrupt34_3.jpg │ │ │ │ ├── corrupt34_4.jpg │ │ │ │ ├── jpeg_merge_test1.jpg │ │ │ │ └── jpeg_merge_test1_cmyk.jpg │ │ ├── png │ │ │ └── testdata │ │ │ │ ├── lena_gray.png │ │ │ │ └── lena_rgba.png │ │ ├── core │ │ │ ├── error_codes.pb_text-impl.h │ │ │ ├── error_codes.pb_text.h │ │ │ └── notification.h │ │ ├── io │ │ │ └── compression.h │ │ └── random │ │ │ └── random.h │ │ ├── profiler │ │ ├── g3doc │ │ │ ├── code_timeline.png │ │ │ ├── graph_timeline.png │ │ │ └── scope_timeline.png │ │ └── internal │ │ │ └── testdata │ │ │ ├── run_meta │ │ │ ├── ckpt.index │ │ │ ├── ckpt.meta │ │ │ ├── tfprof_log │ │ │ └── ckpt.data-00000-of-00001 │ │ ├── kernels │ │ ├── spectrogram_test_data │ │ │ ├── short_test_segment.wav │ │ │ ├── short_test_segment_spectrogram.csv.bin │ │ │ ├── short_test_segment_spectrogram_400_200.csv.bin │ │ │ └── README │ │ ├── neon │ │ │ └── BUILD │ │ ├── multinomial_op.h │ │ ├── random_poisson_op.h │ │ ├── warn_about_ints.h │ │ ├── no_op.h │ │ ├── inplace_ops_functor.h │ │ └── bitcast_op.h │ │ ├── platform │ │ ├── cloud │ │ │ ├── testdata │ │ │ │ └── application_default_credentials.json │ │ │ └── time_util.h │ │ ├── default │ │ │ ├── gpu │ │ │ │ └── BUILD │ │ │ ├── context.h │ │ │ ├── strong_hash.h │ │ │ ├── fingerprint.h │ │ │ └── integral_types.h │ │ ├── cuda.h │ │ ├── net.h │ │ ├── windows │ │ │ ├── subprocess.h │ │ │ ├── error.h │ │ │ └── cpu_info.h │ │ ├── posix │ │ │ └── error.h │ │ ├── stream_executor.h │ │ ├── host_info.h │ │ ├── cupti_wrapper.h │ │ ├── stream_executor_no_cuda.h │ │ ├── png.h │ │ ├── init_main.h │ │ ├── gif.h │ │ ├── demangle.h │ │ ├── cuda_libdevice_path.h │ │ ├── load_library.h │ │ ├── snappy.h │ │ ├── thread_annotations.h │ │ ├── jpeg.h │ │ ├── cpu_feature_guard.h │ │ ├── stacktrace.h │ │ ├── regexp.h │ │ ├── notification.h │ │ ├── denormal.h │ │ └── dynamic_annotations.h │ │ ├── distributed_runtime │ │ ├── README.md │ │ └── rpc │ │ │ └── grpc_remote_master.h │ │ ├── framework │ │ ├── types.pb_text-impl.h │ │ ├── types.pb_text.h │ │ ├── graph.pb_text.h │ │ ├── node_def.pb_text.h │ │ ├── tensor.pb_text.h │ │ ├── versions.pb_text.h │ │ ├── reader_base.pb_text.h │ │ ├── versions.pb_text-impl.h │ │ ├── resource_handle.pb_text.h │ │ ├── tensor_description.pb_text.h │ │ ├── reader_base.pb_text-impl.h │ │ ├── allocation_description.pb_text.h │ │ ├── resource_handle.pb_text-impl.h │ │ ├── allocation_description.pb_text-impl.h │ │ ├── partial_tensor_shape.h │ │ ├── variable.pb_text-impl.h │ │ ├── variable.pb_text.h │ │ ├── tensor_shape.pb_text-impl.h │ │ ├── tensor_slice.pb_text-impl.h │ │ ├── kernel_def.pb_text.h │ │ ├── device_attributes.pb_text-impl.h │ │ ├── tensor.pb_text-impl.h │ │ ├── device_attributes.pb_text.h │ │ ├── tensor_shape.pb_text.h │ │ ├── tensor_slice.pb_text.h │ │ └── tensor_description.pb_text-impl.h │ │ ├── protobuf │ │ ├── saver.pb_text-impl.h │ │ ├── queue_runner.pb_text.h │ │ ├── device_properties.pb_text.h │ │ ├── device_properties.pb_text-impl.h │ │ ├── saver.pb_text.h │ │ ├── queue_runner.pb_text-impl.h │ │ ├── cluster.pb_text-impl.h │ │ ├── cluster.pb_text.h │ │ ├── debug.pb_text-impl.h │ │ ├── debug.pb_text.h │ │ ├── rewriter_config.pb_text-impl.h │ │ ├── rewriter_config.pb_text.h │ │ └── tensor_bundle.pb_text.h │ │ ├── util │ │ ├── use_cudnn.h │ │ ├── port.h │ │ ├── memmapped_file_system.pb_text-impl.h │ │ └── memmapped_file_system.pb_text.h │ │ ├── example │ │ ├── example.pb_text.h │ │ └── example.pb_text-impl.h │ │ ├── graph │ │ ├── colors.h │ │ ├── types.h │ │ ├── mkl_layout_pass.h │ │ └── mkl_tfconversion_pass.h │ │ └── grappler │ │ ├── utils │ │ └── topological_sort.h │ │ └── inputs │ │ ├── input_yielder.h │ │ └── utils.h │ └── unsupported │ ├── Eigen │ ├── MoreVectorization │ ├── CXX11 │ │ ├── src │ │ │ └── ThreadPool │ │ │ │ ├── ThreadYield.h │ │ │ │ ├── ThreadCancel.h │ │ │ │ ├── ThreadLocal.h │ │ │ │ └── ThreadEnvironment.h │ │ └── TensorSymmetry │ ├── Splines │ ├── ArpackSupport │ ├── Skyline │ ├── KroneckerProduct │ ├── AutoDiff │ ├── src │ │ └── NonLinearOptimization │ │ │ └── r1mpyq.h │ ├── EulerAngles │ └── LevenbergMarquardt │ └── doc │ └── Overview.dox ├── example-char-rnn ├── .gitignore ├── bin │ └── data │ │ └── models │ │ └── .gitkeep ├── addons.make └── Makefile ├── example-inception3 ├── bin │ └── data │ │ ├── images │ │ └── .gitkeep │ │ └── models │ │ ├── .gitkeep │ │ └── .gitignore ├── .gitignore ├── addons.make └── Makefile ├── example-mnist ├── bin │ └── data │ │ ├── model-deep │ │ └── .gitkeep │ │ └── model-simple │ │ └── .gitkeep ├── addons.make └── Makefile ├── example-pix2pix ├── .gitignore ├── addons.make └── Makefile ├── example-handwriting-rnn ├── bin │ └── data │ │ └── models │ │ └── .gitkeep ├── addons.make └── Makefile ├── example-pix2pix-simple ├── .gitignore ├── addons.make └── Makefile ├── example-pix2pix-webcam ├── .gitignore ├── addons.make └── Makefile ├── example-style-transfer ├── bin │ └── data │ │ └── models │ │ ├── .gitkeep │ │ └── .gitignore ├── addons.make └── Makefile ├── example-graph-build ├── addons.make └── Makefile ├── src ├── ofxMSATensorFlow.h ├── ofxMSATFIncludes.h └── ofxMSATFLayerVisualizer.h └── scripts └── ubuntu └── update_lib.sh /example-tests/bin/data/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example-basic/bin/data/models/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example-tests/bin/data/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /libs/tensorflow/lib/linux64/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example-char-rnn/.gitignore: -------------------------------------------------------------------------------- 1 | bin/data/* 2 | -------------------------------------------------------------------------------- /example-char-rnn/bin/data/models/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example-inception3/bin/data/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example-inception3/bin/data/models/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example-mnist/bin/data/model-deep/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example-pix2pix/.gitignore: -------------------------------------------------------------------------------- 1 | bin/data/* 2 | -------------------------------------------------------------------------------- /example-basic/addons.make: -------------------------------------------------------------------------------- 1 | ofxMSATensorFlow 2 | -------------------------------------------------------------------------------- /example-handwriting-rnn/bin/data/models/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example-inception3/.gitignore: -------------------------------------------------------------------------------- 1 | bin/data/* 2 | -------------------------------------------------------------------------------- /example-inception3/bin/data/models/.gitignore: -------------------------------------------------------------------------------- 1 | * -------------------------------------------------------------------------------- /example-mnist/addons.make: -------------------------------------------------------------------------------- 1 | ofxMSATensorFlow 2 | -------------------------------------------------------------------------------- /example-mnist/bin/data/model-simple/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example-pix2pix-simple/.gitignore: -------------------------------------------------------------------------------- 1 | bin/data/* 2 | -------------------------------------------------------------------------------- /example-pix2pix-webcam/.gitignore: -------------------------------------------------------------------------------- 1 | bin/data/* 2 | -------------------------------------------------------------------------------- /example-pix2pix/addons.make: -------------------------------------------------------------------------------- 1 | ofxMSATensorFlow 2 | -------------------------------------------------------------------------------- /example-style-transfer/bin/data/models/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example-tests/addons.make: -------------------------------------------------------------------------------- 1 | ofxMSATensorFlow 2 | -------------------------------------------------------------------------------- /example-char-rnn/addons.make: -------------------------------------------------------------------------------- 1 | ofxMSATensorFlow 2 | -------------------------------------------------------------------------------- /example-graph-build/addons.make: -------------------------------------------------------------------------------- 1 | ofxMSATensorFlow 2 | -------------------------------------------------------------------------------- /example-inception3/addons.make: -------------------------------------------------------------------------------- 1 | ofxMSATensorFlow 2 | -------------------------------------------------------------------------------- /example-handwriting-rnn/addons.make: -------------------------------------------------------------------------------- 1 | ofxMSATensorFlow 2 | -------------------------------------------------------------------------------- /example-pix2pix-simple/addons.make: -------------------------------------------------------------------------------- 1 | ofxMSATensorFlow 2 | -------------------------------------------------------------------------------- /example-style-transfer/addons.make: -------------------------------------------------------------------------------- 1 | ofxMSATensorFlow 2 | -------------------------------------------------------------------------------- /example-style-transfer/bin/data/models/.gitignore: -------------------------------------------------------------------------------- 1 | /* 2 | -------------------------------------------------------------------------------- /example-pix2pix-webcam/addons.make: -------------------------------------------------------------------------------- 1 | ofxMSATensorFlow 2 | ofxOpenCv 3 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/Eigen: -------------------------------------------------------------------------------- 1 | #include "Dense" 2 | #include "Sparse" 3 | -------------------------------------------------------------------------------- /libs/tensorflow/include/third_party/eigen3/Eigen/LU: -------------------------------------------------------------------------------- 1 | #include "Eigen/LU" 2 | -------------------------------------------------------------------------------- /libs/tensorflow/include/third_party/eigen3/Eigen/QR: -------------------------------------------------------------------------------- 1 | #include "Eigen/QR" 2 | -------------------------------------------------------------------------------- /libs/tensorflow/include/third_party/eigen3/Eigen/SVD: -------------------------------------------------------------------------------- 1 | #include "Eigen/SVD" 2 | -------------------------------------------------------------------------------- /libs/tensorflow/include/third_party/eigen3/Eigen/Core: -------------------------------------------------------------------------------- 1 | #include "Eigen/Core" 2 | -------------------------------------------------------------------------------- /libs/tensorflow/include/third_party/eigen3/Eigen/Cholesky: -------------------------------------------------------------------------------- 1 | #include "Eigen/Cholesky" 2 | -------------------------------------------------------------------------------- /libs/tensorflow/include/third_party/eigen3/Eigen/Eigenvalues: -------------------------------------------------------------------------------- 1 | #include "Eigen/Eigenvalues" 2 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/saved_model/README.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /libs/tensorflow/include/third_party/eigen3/unsupported/Eigen/CXX11/ThreadPool: -------------------------------------------------------------------------------- 1 | #include "unsupported/Eigen/CXX11/ThreadPool" 2 | -------------------------------------------------------------------------------- /libs/tensorflow/include/third_party/eigen3/unsupported/Eigen/SpecialFunctions: -------------------------------------------------------------------------------- 1 | #include "unsupported/Eigen/SpecialFunctions" 2 | -------------------------------------------------------------------------------- /example-basic/bin/data/models/model.pb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/example-basic/bin/data/models/model.pb -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/saved_model/testdata/half_plus_two/00000123/variables/variables.data-00000-of-00001: -------------------------------------------------------------------------------- 1 | ?@@@ -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/saved_model/testdata/half_plus_two_main_op/00000123/variables/variables.data-00000-of-00001: -------------------------------------------------------------------------------- 1 | ?@@@ -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/saved_model/testdata/half_plus_two_pbtxt/00000123/variables/variables.data-00000-of-00001: -------------------------------------------------------------------------------- 1 | ?@@@ -------------------------------------------------------------------------------- /example-tests/bin/data/images/grace_hopper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/example-tests/bin/data/images/grace_hopper.png -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/src/Core/util/NonMPL2.h: -------------------------------------------------------------------------------- 1 | #ifdef EIGEN_MPL2_ONLY 2 | #error Including non-MPL2 code in EIGEN_MPL2_ONLY mode 3 | #endif 4 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/Dense: -------------------------------------------------------------------------------- 1 | #include "Core" 2 | #include "LU" 3 | #include "Cholesky" 4 | #include "QR" 5 | #include "SVD" 6 | #include "Geometry" 7 | #include "Eigenvalues" 8 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/bmp/testdata/lena.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/lib/bmp/testdata/lena.bmp -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/gif/testdata/lena.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/lib/gif/testdata/lena.gif -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/gif/testdata/scan.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/lib/gif/testdata/scan.gif -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/lmdb/testdata/data.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/lib/lmdb/testdata/data.mdb -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/gif/testdata/optimized.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/lib/gif/testdata/optimized.gif -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/jpeg/testdata/corrupt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/lib/jpeg/testdata/corrupt.jpg -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/png/testdata/lena_gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/lib/png/testdata/lena_gray.png -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/png/testdata/lena_rgba.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/lib/png/testdata/lena_rgba.png -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/jpeg/testdata/bad_huffman.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/lib/jpeg/testdata/bad_huffman.jpg -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/jpeg/testdata/corrupt34_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/lib/jpeg/testdata/corrupt34_2.jpg -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/jpeg/testdata/corrupt34_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/lib/jpeg/testdata/corrupt34_3.jpg -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/jpeg/testdata/corrupt34_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/lib/jpeg/testdata/corrupt34_4.jpg -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/profiler/g3doc/code_timeline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/profiler/g3doc/code_timeline.png -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/profiler/g3doc/graph_timeline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/profiler/g3doc/graph_timeline.png -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/profiler/g3doc/scope_timeline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/profiler/g3doc/scope_timeline.png -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/profiler/internal/testdata/run_meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/profiler/internal/testdata/run_meta -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/jpeg/testdata/jpeg_merge_test1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/lib/jpeg/testdata/jpeg_merge_test1.jpg -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/profiler/internal/testdata/ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/profiler/internal/testdata/ckpt.index -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/profiler/internal/testdata/ckpt.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/profiler/internal/testdata/ckpt.meta -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/profiler/internal/testdata/tfprof_log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/profiler/internal/testdata/tfprof_log -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/jpeg/testdata/jpeg_merge_test1_cmyk.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/lib/jpeg/testdata/jpeg_merge_test1_cmyk.jpg -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/kernels/spectrogram_test_data/short_test_segment.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/kernels/spectrogram_test_data/short_test_segment.wav -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/profiler/internal/testdata/ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/profiler/internal/testdata/ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/saved_model/testdata/half_plus_two/00000123/variables/variables.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/cc/saved_model/testdata/half_plus_two/00000123/variables/variables.index -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/kernels/spectrogram_test_data/short_test_segment_spectrogram.csv.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/kernels/spectrogram_test_data/short_test_segment_spectrogram.csv.bin -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/saved_model/testdata/half_plus_two_pbtxt/00000123/variables/variables.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/cc/saved_model/testdata/half_plus_two_pbtxt/00000123/variables/variables.index -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/saved_model/testdata/half_plus_two_main_op/00000123/variables/variables.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/cc/saved_model/testdata/half_plus_two_main_op/00000123/variables/variables.index -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/kernels/spectrogram_test_data/short_test_segment_spectrogram_400_200.csv.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/memo/ofxMSATensorFlow/HEAD/libs/tensorflow/include/tensorflow/core/kernels/spectrogram_test_data/short_test_segment_spectrogram_400_200.csv.bin -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/cloud/testdata/application_default_credentials.json: -------------------------------------------------------------------------------- 1 | { 2 | "client_id": "fake-client-id.apps.googleusercontent.com", 3 | "client_secret": "fake-client-secret", 4 | "refresh_token": "fake-refresh-token", 5 | "type": "authorized_user" 6 | } 7 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/kernels/spectrogram_test_data/README: -------------------------------------------------------------------------------- 1 | The CSV spectrogram files in this directory are generated from the 2 | matlab code in ./matlab/GenerateTestData.m 3 | To save space in the repo, you'll then need to convert them into a binary packed 4 | format using the convert_test_data.cc command line tool. 5 | 6 | 7 | short_test_segment.wav is approximately 1s of music audio. 8 | 9 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/distributed_runtime/README.md: -------------------------------------------------------------------------------- 1 | # Distributed TensorFlow 2 | 3 | This directory contains the initial open-source implementation of the 4 | distributed TensorFlow runtime, using [gRPC](http://grpc.io) for inter-process 5 | communication. 6 | 7 | To learn how to use the distributed runtime to create a TensorFlow cluster, 8 | see the [Distributed TensorFlow](https://www.tensorflow.org/deploy/distributed) How-To. 9 | -------------------------------------------------------------------------------- /example-basic/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=$(realpath ../../..) 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /example-mnist/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=$(realpath ../../..) 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /example-tests/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=$(realpath ../../..) 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /example-char-rnn/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=$(realpath ../../..) 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /example-graph-build/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=$(realpath ../../..) 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /example-inception3/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=$(realpath ../../..) 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /example-pix2pix/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=$(realpath ../../..) 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /example-handwriting-rnn/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=$(realpath ../../..) 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /example-pix2pix-simple/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=$(realpath ../../..) 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /example-pix2pix-webcam/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=$(realpath ../../..) 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /example-style-transfer/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=$(realpath ../../..) 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /libs/tensorflow/lib/osx/README.md: -------------------------------------------------------------------------------- 1 | Download the library from 2 | https://github.com/memo/ofxMSATensorFlow/releases 3 | 4 | If it doesn’t already exist, create a folder called ‘lib’ in your home folder. 5 | 6 | Copy libtensorflow_cc.so into ~/lib 7 | (Make sure there’s a copy here too). 8 | 9 | Alternatively see below for other ways of installing shared libraries 10 | https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/UsingDynamicLibraries.html#//apple_ref/doc/uid/TP40002182-SW10 -------------------------------------------------------------------------------- /libs/tensorflow/include/third_party/eigen3/unsupported/Eigen/CXX11/Tensor: -------------------------------------------------------------------------------- 1 | #include "unsupported/Eigen/CXX11/Tensor" 2 | 3 | #ifdef _WIN32 4 | #ifndef SLEEP_FUNC_HEADER_GUARD 5 | #define SLEEP_FUNC_HEADER_GUARD 6 | inline void sleep(unsigned int seconds) { Sleep(1000*seconds); } 7 | #endif 8 | 9 | // On Windows, Eigen will include Windows.h, which defines various 10 | // macros that conflict with TensorFlow symbols. Undefine them here to 11 | // prevent clashes. 12 | #undef DeleteFile 13 | #undef ERROR 14 | #undef LoadLibrary 15 | #endif // _WIN32 16 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/src/misc/lapacke_mangling.h: -------------------------------------------------------------------------------- 1 | #ifndef LAPACK_HEADER_INCLUDED 2 | #define LAPACK_HEADER_INCLUDED 3 | 4 | #ifndef LAPACK_GLOBAL 5 | #if defined(LAPACK_GLOBAL_PATTERN_LC) || defined(ADD_) 6 | #define LAPACK_GLOBAL(lcname,UCNAME) lcname##_ 7 | #elif defined(LAPACK_GLOBAL_PATTERN_UC) || defined(UPPER) 8 | #define LAPACK_GLOBAL(lcname,UCNAME) UCNAME 9 | #elif defined(LAPACK_GLOBAL_PATTERN_MC) || defined(NOCHANGE) 10 | #define LAPACK_GLOBAL(lcname,UCNAME) lcname 11 | #else 12 | #define LAPACK_GLOBAL(lcname,UCNAME) lcname##_ 13 | #endif 14 | #endif 15 | 16 | #endif 17 | 18 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/default/gpu/BUILD: -------------------------------------------------------------------------------- 1 | load( 2 | "//tensorflow:tensorflow.bzl", 3 | "tf_copts", 4 | "tf_cuda_library", 5 | ) 6 | 7 | tf_cuda_library( 8 | name = "cupti_wrapper", 9 | srcs = [ 10 | "cupti_wrapper.cc", 11 | ], 12 | hdrs = [ 13 | "cupti_wrapper.h", 14 | ], 15 | copts = tf_copts(), 16 | cuda_deps = [ 17 | "//tensorflow/core:stream_executor", 18 | "@local_config_cuda//cuda:cupti_headers", 19 | ], 20 | data = ["@local_config_cuda//cuda:cupti_dsos"], 21 | visibility = ["//visibility:public"], 22 | ) 23 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/types.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_types_proto_IMPL_H_ 3 | #define tensorflow_core_framework_types_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/framework/types.pb.h" 6 | #include "tensorflow/core/framework/types.pb_text.h" 7 | #include "tensorflow/core/lib/strings/proto_text_util.h" 8 | #include "tensorflow/core/lib/strings/scanner.h" 9 | 10 | namespace tensorflow { 11 | 12 | namespace internal { 13 | 14 | } // namespace internal 15 | 16 | } // namespace tensorflow 17 | 18 | #endif // tensorflow_core_framework_types_proto_IMPL_H_ 19 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/types.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_types_proto_H_ 3 | #define tensorflow_core_framework_types_proto_H_ 4 | 5 | #include "tensorflow/core/framework/types.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Enum text output for tensorflow.DataType 13 | const char* EnumName_DataType( 14 | ::tensorflow::DataType value); 15 | 16 | } // namespace tensorflow 17 | 18 | #endif // tensorflow_core_framework_types_proto_H_ 19 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/core/error_codes.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_lib_core_error_codes_proto_IMPL_H_ 3 | #define tensorflow_core_lib_core_error_codes_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/lib/core/error_codes.pb.h" 6 | #include "tensorflow/core/lib/core/error_codes.pb_text.h" 7 | #include "tensorflow/core/lib/strings/proto_text_util.h" 8 | #include "tensorflow/core/lib/strings/scanner.h" 9 | 10 | namespace tensorflow { 11 | namespace error { 12 | 13 | namespace internal { 14 | 15 | } // namespace internal 16 | 17 | } // namespace error 18 | } // namespace tensorflow 19 | 20 | #endif // tensorflow_core_lib_core_error_codes_proto_IMPL_H_ 21 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/core/error_codes.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_lib_core_error_codes_proto_H_ 3 | #define tensorflow_core_lib_core_error_codes_proto_H_ 4 | 5 | #include "tensorflow/core/lib/core/error_codes.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | namespace error { 12 | 13 | // Enum text output for tensorflow.error.Code 14 | const char* EnumName_Code( 15 | ::tensorflow::error::Code value); 16 | 17 | } // namespace error 18 | } // namespace tensorflow 19 | 20 | #endif // tensorflow_core_lib_core_error_codes_proto_H_ 21 | -------------------------------------------------------------------------------- /libs/tensorflow/include/unsupported/Eigen/MoreVectorization: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // 5 | // This Source Code Form is subject to the terms of the Mozilla 6 | // Public License v. 2.0. If a copy of the MPL was not distributed 7 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 8 | 9 | #ifndef EIGEN_MOREVECTORIZATION_MODULE_H 10 | #define EIGEN_MOREVECTORIZATION_MODULE_H 11 | 12 | #include 13 | 14 | namespace Eigen { 15 | 16 | /** 17 | * \defgroup MoreVectorization More vectorization module 18 | */ 19 | 20 | } 21 | 22 | #include "src/MoreVectorization/MathFunctions.h" 23 | 24 | #endif // EIGEN_MOREVECTORIZATION_MODULE_H 25 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/src/Core/functors/TernaryFunctors.h: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2016 Eugene Brevdo 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #ifndef EIGEN_TERNARY_FUNCTORS_H 11 | #define EIGEN_TERNARY_FUNCTORS_H 12 | 13 | namespace Eigen { 14 | 15 | namespace internal { 16 | 17 | //---------- associative ternary functors ---------- 18 | 19 | 20 | 21 | } // end namespace internal 22 | 23 | } // end namespace Eigen 24 | 25 | #endif // EIGEN_TERNARY_FUNCTORS_H 26 | -------------------------------------------------------------------------------- /libs/tensorflow/include/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2016 Benoit Steiner 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #ifndef EIGEN_CXX11_THREADPOOL_THREAD_YIELD_H 11 | #define EIGEN_CXX11_THREADPOOL_THREAD_YIELD_H 12 | 13 | // Try to come up with a portable way to yield 14 | #if EIGEN_COMP_GNUC && EIGEN_GNUC_AT_MOST(4, 7) 15 | #define EIGEN_THREAD_YIELD() sched_yield() 16 | #else 17 | #define EIGEN_THREAD_YIELD() std::this_thread::yield() 18 | #endif 19 | 20 | #endif // EIGEN_CXX11_THREADPOOL_THREAD_YIELD_H 21 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/StdList: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2009 Hauke Heibel 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #ifndef EIGEN_STDLIST_MODULE_H 11 | #define EIGEN_STDLIST_MODULE_H 12 | 13 | #include "Core" 14 | #include 15 | 16 | #if EIGEN_COMP_MSVC && EIGEN_OS_WIN64 && (EIGEN_MAX_STATIC_ALIGN_BYTES<=16) /* MSVC auto aligns up to 16 bytes in 64 bit builds */ 17 | 18 | #define EIGEN_DEFINE_STL_LIST_SPECIALIZATION(...) 19 | 20 | #else 21 | 22 | #include "src/StlSupport/StdList.h" 23 | 24 | #endif 25 | 26 | #endif // EIGEN_STDLIST_MODULE_H 27 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/graph.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_graph_proto_H_ 3 | #define tensorflow_core_framework_graph_proto_H_ 4 | 5 | #include "tensorflow/core/framework/graph.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.GraphDef 13 | string ProtoDebugString( 14 | const ::tensorflow::GraphDef& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::GraphDef& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::GraphDef* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | } // namespace tensorflow 23 | 24 | #endif // tensorflow_core_framework_graph_proto_H_ 25 | -------------------------------------------------------------------------------- /src/ofxMSATensorFlow.h: -------------------------------------------------------------------------------- 1 | /* 2 | this is simple wrapper for a single session and graph, should suffice for most cases 3 | you can access the internal variables directly if you need more advanced setup 4 | I didn't wrap it too much as I think it's important to understand how TensorFlow works, 5 | in case you need to switch to raw tensorflow project etc. 6 | 7 | There's also a bunch of helper functions for various functions (eg vector <--> tensor <--> image conversions) 8 | 9 | */ 10 | 11 | #pragma once 12 | 13 | #include "ofxMSATFIncludes.h" 14 | #include "ofxMSATFUtils.h" 15 | #include "ofxMSATFVizUtils.h" 16 | #include "ofxMSATFImageClassifier.h" 17 | #include "ofxMSATFLayerVisualizer.h" 18 | #include "ofxMSATFSimpleModel.h" 19 | 20 | #include "ofxMSAMathUtils.h" 21 | 22 | namespace msa { 23 | namespace tf { 24 | 25 | 26 | 27 | } // namespace tf 28 | } // namespace msa 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/node_def.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_node_def_proto_H_ 3 | #define tensorflow_core_framework_node_def_proto_H_ 4 | 5 | #include "tensorflow/core/framework/node_def.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.NodeDef 13 | string ProtoDebugString( 14 | const ::tensorflow::NodeDef& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::NodeDef& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::NodeDef* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | } // namespace tensorflow 23 | 24 | #endif // tensorflow_core_framework_node_def_proto_H_ 25 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/tensor.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_tensor_proto_H_ 3 | #define tensorflow_core_framework_tensor_proto_H_ 4 | 5 | #include "tensorflow/core/framework/tensor.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.TensorProto 13 | string ProtoDebugString( 14 | const ::tensorflow::TensorProto& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::TensorProto& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::TensorProto* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | } // namespace tensorflow 23 | 24 | #endif // tensorflow_core_framework_tensor_proto_H_ 25 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/versions.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_versions_proto_H_ 3 | #define tensorflow_core_framework_versions_proto_H_ 4 | 5 | #include "tensorflow/core/framework/versions.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.VersionDef 13 | string ProtoDebugString( 14 | const ::tensorflow::VersionDef& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::VersionDef& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::VersionDef* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | } // namespace tensorflow 23 | 24 | #endif // tensorflow_core_framework_versions_proto_H_ 25 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/protobuf/saver.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_protobuf_saver_proto_IMPL_H_ 3 | #define tensorflow_core_protobuf_saver_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/lib/strings/proto_text_util.h" 6 | #include "tensorflow/core/lib/strings/scanner.h" 7 | #include "tensorflow/core/protobuf/saver.pb.h" 8 | #include "tensorflow/core/protobuf/saver.pb_text.h" 9 | 10 | namespace tensorflow { 11 | 12 | namespace internal { 13 | 14 | void AppendProtoDebugString( 15 | ::tensorflow::strings::ProtoTextOutput* o, 16 | const ::tensorflow::SaverDef& msg); 17 | bool ProtoParseFromScanner( 18 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 19 | ::tensorflow::SaverDef* msg); 20 | 21 | } // namespace internal 22 | 23 | } // namespace tensorflow 24 | 25 | #endif // tensorflow_core_protobuf_saver_proto_IMPL_H_ 26 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/protobuf/queue_runner.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_protobuf_queue_runner_proto_H_ 3 | #define tensorflow_core_protobuf_queue_runner_proto_H_ 4 | 5 | #include "tensorflow/core/protobuf/queue_runner.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.QueueRunnerDef 13 | string ProtoDebugString( 14 | const ::tensorflow::QueueRunnerDef& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::QueueRunnerDef& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::QueueRunnerDef* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | } // namespace tensorflow 23 | 24 | #endif // tensorflow_core_protobuf_queue_runner_proto_H_ 25 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/reader_base.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_reader_base_proto_H_ 3 | #define tensorflow_core_framework_reader_base_proto_H_ 4 | 5 | #include "tensorflow/core/framework/reader_base.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.ReaderBaseState 13 | string ProtoDebugString( 14 | const ::tensorflow::ReaderBaseState& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::ReaderBaseState& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::ReaderBaseState* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | } // namespace tensorflow 23 | 24 | #endif // tensorflow_core_framework_reader_base_proto_H_ 25 | -------------------------------------------------------------------------------- /libs/tensorflow/include/unsupported/Eigen/CXX11/src/ThreadPool/ThreadCancel.h: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2016 Benoit Steiner 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #ifndef EIGEN_CXX11_THREADPOOL_THREAD_CANCEL_H 11 | #define EIGEN_CXX11_THREADPOOL_THREAD_CANCEL_H 12 | 13 | // Try to come up with a portable way to cancel a thread 14 | #if EIGEN_OS_GNULINUX 15 | #define EIGEN_THREAD_CANCEL(t) \ 16 | pthread_cancel(t.native_handle()); 17 | #define EIGEN_SUPPORTS_THREAD_CANCELLATION 1 18 | #else 19 | #define EIGEN_THREAD_CANCEL(t) 20 | #endif 21 | 22 | 23 | #endif // EIGEN_CXX11_THREADPOOL_THREAD_CANCEL_H 24 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/StdDeque: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2009 Gael Guennebaud 5 | // Copyright (C) 2009 Hauke Heibel 6 | // 7 | // This Source Code Form is subject to the terms of the Mozilla 8 | // Public License v. 2.0. If a copy of the MPL was not distributed 9 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 10 | 11 | #ifndef EIGEN_STDDEQUE_MODULE_H 12 | #define EIGEN_STDDEQUE_MODULE_H 13 | 14 | #include "Core" 15 | #include 16 | 17 | #if EIGEN_COMP_MSVC && EIGEN_OS_WIN64 && (EIGEN_MAX_STATIC_ALIGN_BYTES<=16) /* MSVC auto aligns up to 16 bytes in 64 bit builds */ 18 | 19 | #define EIGEN_DEFINE_STL_DEQUE_SPECIALIZATION(...) 20 | 21 | #else 22 | 23 | #include "src/StlSupport/StdDeque.h" 24 | 25 | #endif 26 | 27 | #endif // EIGEN_STDDEQUE_MODULE_H 28 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/StdVector: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2009 Gael Guennebaud 5 | // Copyright (C) 2009 Hauke Heibel 6 | // 7 | // This Source Code Form is subject to the terms of the Mozilla 8 | // Public License v. 2.0. If a copy of the MPL was not distributed 9 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 10 | 11 | #ifndef EIGEN_STDVECTOR_MODULE_H 12 | #define EIGEN_STDVECTOR_MODULE_H 13 | 14 | #include "Core" 15 | #include 16 | 17 | #if EIGEN_COMP_MSVC && EIGEN_OS_WIN64 && (EIGEN_MAX_STATIC_ALIGN_BYTES<=16) /* MSVC auto aligns up to 16 bytes in 64 bit builds */ 18 | 19 | #define EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(...) 20 | 21 | #else 22 | 23 | #include "src/StlSupport/StdVector.h" 24 | 25 | #endif 26 | 27 | #endif // EIGEN_STDVECTOR_MODULE_H 28 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/versions.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_versions_proto_IMPL_H_ 3 | #define tensorflow_core_framework_versions_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/framework/versions.pb.h" 6 | #include "tensorflow/core/framework/versions.pb_text.h" 7 | #include "tensorflow/core/lib/strings/proto_text_util.h" 8 | #include "tensorflow/core/lib/strings/scanner.h" 9 | 10 | namespace tensorflow { 11 | 12 | namespace internal { 13 | 14 | void AppendProtoDebugString( 15 | ::tensorflow::strings::ProtoTextOutput* o, 16 | const ::tensorflow::VersionDef& msg); 17 | bool ProtoParseFromScanner( 18 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 19 | ::tensorflow::VersionDef* msg); 20 | 21 | } // namespace internal 22 | 23 | } // namespace tensorflow 24 | 25 | #endif // tensorflow_core_framework_versions_proto_IMPL_H_ 26 | -------------------------------------------------------------------------------- /libs/tensorflow/include/unsupported/Eigen/CXX11/src/ThreadPool/ThreadLocal.h: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2016 Benoit Steiner 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #ifndef EIGEN_CXX11_THREADPOOL_THREAD_LOCAL_H 11 | #define EIGEN_CXX11_THREADPOOL_THREAD_LOCAL_H 12 | 13 | // Try to come up with a portable implementation of thread local variables 14 | #if EIGEN_COMP_GNUC && EIGEN_GNUC_AT_MOST(4, 7) 15 | #define EIGEN_THREAD_LOCAL static __thread 16 | #elif EIGEN_COMP_CLANG 17 | #define EIGEN_THREAD_LOCAL static __thread 18 | #else 19 | #define EIGEN_THREAD_LOCAL static thread_local 20 | #endif 21 | 22 | #endif // EIGEN_CXX11_THREADPOOL_THREAD_LOCAL_H 23 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/protobuf/device_properties.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_protobuf_device_properties_proto_H_ 3 | #define tensorflow_core_protobuf_device_properties_proto_H_ 4 | 5 | #include "tensorflow/core/protobuf/device_properties.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.DeviceProperties 13 | string ProtoDebugString( 14 | const ::tensorflow::DeviceProperties& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::DeviceProperties& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::DeviceProperties* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | } // namespace tensorflow 23 | 24 | #endif // tensorflow_core_protobuf_device_properties_proto_H_ 25 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/resource_handle.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_resource_handle_proto_H_ 3 | #define tensorflow_core_framework_resource_handle_proto_H_ 4 | 5 | #include "tensorflow/core/framework/resource_handle.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.ResourceHandleProto 13 | string ProtoDebugString( 14 | const ::tensorflow::ResourceHandleProto& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::ResourceHandleProto& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::ResourceHandleProto* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | } // namespace tensorflow 23 | 24 | #endif // tensorflow_core_framework_resource_handle_proto_H_ 25 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/ops/no_op_internal.h: -------------------------------------------------------------------------------- 1 | // This file is MACHINE GENERATED! Do not edit. 2 | 3 | #ifndef TENSORFLOW_CC_OPS_NO_OP_INTERNAL_H_ 4 | #define TENSORFLOW_CC_OPS_NO_OP_INTERNAL_H_ 5 | 6 | // This file is MACHINE GENERATED! Do not edit. 7 | 8 | #include "tensorflow/cc/framework/ops.h" 9 | #include "tensorflow/cc/framework/scope.h" 10 | #include "tensorflow/core/framework/tensor.h" 11 | #include "tensorflow/core/framework/tensor_shape.h" 12 | #include "tensorflow/core/framework/types.h" 13 | #include "tensorflow/core/lib/gtl/array_slice.h" 14 | 15 | namespace tensorflow { 16 | namespace ops { 17 | namespace internal { 18 | // NOTE: This namespace has internal TensorFlow details that 19 | // are not part of TensorFlow's public API. 20 | 21 | /// @defgroup no_op_internal No Op Internal 22 | /// @{ 23 | 24 | } // namespace internal 25 | } // namespace ops 26 | } // namespace tensorflow 27 | 28 | #endif // TENSORFLOW_CC_OPS_NO_OP_INTERNAL_H_ 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/ops/io_ops_internal.h: -------------------------------------------------------------------------------- 1 | // This file is MACHINE GENERATED! Do not edit. 2 | 3 | #ifndef TENSORFLOW_CC_OPS_IO_OPS_INTERNAL_H_ 4 | #define TENSORFLOW_CC_OPS_IO_OPS_INTERNAL_H_ 5 | 6 | // This file is MACHINE GENERATED! Do not edit. 7 | 8 | #include "tensorflow/cc/framework/ops.h" 9 | #include "tensorflow/cc/framework/scope.h" 10 | #include "tensorflow/core/framework/tensor.h" 11 | #include "tensorflow/core/framework/tensor_shape.h" 12 | #include "tensorflow/core/framework/types.h" 13 | #include "tensorflow/core/lib/gtl/array_slice.h" 14 | 15 | namespace tensorflow { 16 | namespace ops { 17 | namespace internal { 18 | // NOTE: This namespace has internal TensorFlow details that 19 | // are not part of TensorFlow's public API. 20 | 21 | /// @defgroup io_ops_internal Io Ops Internal 22 | /// @{ 23 | 24 | } // namespace internal 25 | } // namespace ops 26 | } // namespace tensorflow 27 | 28 | #endif // TENSORFLOW_CC_OPS_IO_OPS_INTERNAL_H_ 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/tensor_description.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_tensor_description_proto_H_ 3 | #define tensorflow_core_framework_tensor_description_proto_H_ 4 | 5 | #include "tensorflow/core/framework/tensor_description.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.TensorDescription 13 | string ProtoDebugString( 14 | const ::tensorflow::TensorDescription& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::TensorDescription& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::TensorDescription* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | } // namespace tensorflow 23 | 24 | #endif // tensorflow_core_framework_tensor_description_proto_H_ 25 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/src/Core/util/ReenableStupidWarnings.h: -------------------------------------------------------------------------------- 1 | #ifdef EIGEN_WARNINGS_DISABLED 2 | #undef EIGEN_WARNINGS_DISABLED 3 | 4 | #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS 5 | #ifdef _MSC_VER 6 | #pragma warning( pop ) 7 | #elif defined __INTEL_COMPILER 8 | #pragma warning pop 9 | #elif defined __clang__ 10 | #pragma clang diagnostic pop 11 | #elif defined __GNUC__ && __GNUC__>=6 12 | #pragma GCC diagnostic pop 13 | #endif 14 | 15 | #if defined __NVCC__ 16 | // Don't reenable the diagnostic messages, as it turns out these messages need 17 | // to be disabled at the point of the template instantiation (i.e the user code) 18 | // otherwise they'll be triggered by nvcc. 19 | // #pragma diag_default code_is_unreachable 20 | // #pragma diag_default initialization_not_reachable 21 | // #pragma diag_default 2651 22 | // #pragma diag_default 2653 23 | #endif 24 | 25 | #endif 26 | 27 | #endif // EIGEN_WARNINGS_DISABLED 28 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/reader_base.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_reader_base_proto_IMPL_H_ 3 | #define tensorflow_core_framework_reader_base_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/framework/reader_base.pb.h" 6 | #include "tensorflow/core/framework/reader_base.pb_text.h" 7 | #include "tensorflow/core/lib/strings/proto_text_util.h" 8 | #include "tensorflow/core/lib/strings/scanner.h" 9 | 10 | namespace tensorflow { 11 | 12 | namespace internal { 13 | 14 | void AppendProtoDebugString( 15 | ::tensorflow::strings::ProtoTextOutput* o, 16 | const ::tensorflow::ReaderBaseState& msg); 17 | bool ProtoParseFromScanner( 18 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 19 | ::tensorflow::ReaderBaseState* msg); 20 | 21 | } // namespace internal 22 | 23 | } // namespace tensorflow 24 | 25 | #endif // tensorflow_core_framework_reader_base_proto_IMPL_H_ 26 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/ops/user_ops_internal.h: -------------------------------------------------------------------------------- 1 | // This file is MACHINE GENERATED! Do not edit. 2 | 3 | #ifndef TENSORFLOW_CC_OPS_USER_OPS_INTERNAL_H_ 4 | #define TENSORFLOW_CC_OPS_USER_OPS_INTERNAL_H_ 5 | 6 | // This file is MACHINE GENERATED! Do not edit. 7 | 8 | #include "tensorflow/cc/framework/ops.h" 9 | #include "tensorflow/cc/framework/scope.h" 10 | #include "tensorflow/core/framework/tensor.h" 11 | #include "tensorflow/core/framework/tensor_shape.h" 12 | #include "tensorflow/core/framework/types.h" 13 | #include "tensorflow/core/lib/gtl/array_slice.h" 14 | 15 | namespace tensorflow { 16 | namespace ops { 17 | namespace internal { 18 | // NOTE: This namespace has internal TensorFlow details that 19 | // are not part of TensorFlow's public API. 20 | 21 | /// @defgroup user_ops_internal User Ops Internal 22 | /// @{ 23 | 24 | } // namespace internal 25 | } // namespace ops 26 | } // namespace tensorflow 27 | 28 | #endif // TENSORFLOW_CC_OPS_USER_OPS_INTERNAL_H_ 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/unsupported/doc/Overview.dox: -------------------------------------------------------------------------------- 1 | /// \brief Namespace containing all symbols from the %Eigen library. 2 | namespace Eigen { 3 | 4 | /** \mainpage %Eigen's unsupported modules 5 | 6 | This is the API documentation for %Eigen's unsupported modules. 7 | 8 | These modules are contributions from various users. They are provided "as is", without any support. 9 | 10 | Click on the \e Modules tab at the top of this page to get a list of all unsupported modules. 11 | 12 | Don't miss the official Eigen documentation. 13 | 14 | */ 15 | 16 | /* 17 | 18 | \defgroup Unsupported_modules Unsupported modules 19 | 20 | The unsupported modules are contributions from various users. They are 21 | provided "as is", without any support. Nevertheless, some of them are 22 | subject to be included in %Eigen in the future. 23 | 24 | */ 25 | 26 | /// \internal \brief Namespace containing low-level routines from the %Eigen library. 27 | namespace internal {} 28 | } 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/ops/audio_ops_internal.h: -------------------------------------------------------------------------------- 1 | // This file is MACHINE GENERATED! Do not edit. 2 | 3 | #ifndef TENSORFLOW_CC_OPS_AUDIO_OPS_INTERNAL_H_ 4 | #define TENSORFLOW_CC_OPS_AUDIO_OPS_INTERNAL_H_ 5 | 6 | // This file is MACHINE GENERATED! Do not edit. 7 | 8 | #include "tensorflow/cc/framework/ops.h" 9 | #include "tensorflow/cc/framework/scope.h" 10 | #include "tensorflow/core/framework/tensor.h" 11 | #include "tensorflow/core/framework/tensor_shape.h" 12 | #include "tensorflow/core/framework/types.h" 13 | #include "tensorflow/core/lib/gtl/array_slice.h" 14 | 15 | namespace tensorflow { 16 | namespace ops { 17 | namespace internal { 18 | // NOTE: This namespace has internal TensorFlow details that 19 | // are not part of TensorFlow's public API. 20 | 21 | /// @defgroup audio_ops_internal Audio Ops Internal 22 | /// @{ 23 | 24 | } // namespace internal 25 | } // namespace ops 26 | } // namespace tensorflow 27 | 28 | #endif // TENSORFLOW_CC_OPS_AUDIO_OPS_INTERNAL_H_ 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/ops/state_ops_internal.h: -------------------------------------------------------------------------------- 1 | // This file is MACHINE GENERATED! Do not edit. 2 | 3 | #ifndef TENSORFLOW_CC_OPS_STATE_OPS_INTERNAL_H_ 4 | #define TENSORFLOW_CC_OPS_STATE_OPS_INTERNAL_H_ 5 | 6 | // This file is MACHINE GENERATED! Do not edit. 7 | 8 | #include "tensorflow/cc/framework/ops.h" 9 | #include "tensorflow/cc/framework/scope.h" 10 | #include "tensorflow/core/framework/tensor.h" 11 | #include "tensorflow/core/framework/tensor_shape.h" 12 | #include "tensorflow/core/framework/types.h" 13 | #include "tensorflow/core/lib/gtl/array_slice.h" 14 | 15 | namespace tensorflow { 16 | namespace ops { 17 | namespace internal { 18 | // NOTE: This namespace has internal TensorFlow details that 19 | // are not part of TensorFlow's public API. 20 | 21 | /// @defgroup state_ops_internal State Ops Internal 22 | /// @{ 23 | 24 | } // namespace internal 25 | } // namespace ops 26 | } // namespace tensorflow 27 | 28 | #endif // TENSORFLOW_CC_OPS_STATE_OPS_INTERNAL_H_ 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/ops/linalg_ops_internal.h: -------------------------------------------------------------------------------- 1 | // This file is MACHINE GENERATED! Do not edit. 2 | 3 | #ifndef TENSORFLOW_CC_OPS_LINALG_OPS_INTERNAL_H_ 4 | #define TENSORFLOW_CC_OPS_LINALG_OPS_INTERNAL_H_ 5 | 6 | // This file is MACHINE GENERATED! Do not edit. 7 | 8 | #include "tensorflow/cc/framework/ops.h" 9 | #include "tensorflow/cc/framework/scope.h" 10 | #include "tensorflow/core/framework/tensor.h" 11 | #include "tensorflow/core/framework/tensor_shape.h" 12 | #include "tensorflow/core/framework/types.h" 13 | #include "tensorflow/core/lib/gtl/array_slice.h" 14 | 15 | namespace tensorflow { 16 | namespace ops { 17 | namespace internal { 18 | // NOTE: This namespace has internal TensorFlow details that 19 | // are not part of TensorFlow's public API. 20 | 21 | /// @defgroup linalg_ops_internal Linalg Ops Internal 22 | /// @{ 23 | 24 | } // namespace internal 25 | } // namespace ops 26 | } // namespace tensorflow 27 | 28 | #endif // TENSORFLOW_CC_OPS_LINALG_OPS_INTERNAL_H_ 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/ops/random_ops_internal.h: -------------------------------------------------------------------------------- 1 | // This file is MACHINE GENERATED! Do not edit. 2 | 3 | #ifndef TENSORFLOW_CC_OPS_RANDOM_OPS_INTERNAL_H_ 4 | #define TENSORFLOW_CC_OPS_RANDOM_OPS_INTERNAL_H_ 5 | 6 | // This file is MACHINE GENERATED! Do not edit. 7 | 8 | #include "tensorflow/cc/framework/ops.h" 9 | #include "tensorflow/cc/framework/scope.h" 10 | #include "tensorflow/core/framework/tensor.h" 11 | #include "tensorflow/core/framework/tensor_shape.h" 12 | #include "tensorflow/core/framework/types.h" 13 | #include "tensorflow/core/lib/gtl/array_slice.h" 14 | 15 | namespace tensorflow { 16 | namespace ops { 17 | namespace internal { 18 | // NOTE: This namespace has internal TensorFlow details that 19 | // are not part of TensorFlow's public API. 20 | 21 | /// @defgroup random_ops_internal Random Ops Internal 22 | /// @{ 23 | 24 | } // namespace internal 25 | } // namespace ops 26 | } // namespace tensorflow 27 | 28 | #endif // TENSORFLOW_CC_OPS_RANDOM_OPS_INTERNAL_H_ 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/ops/sparse_ops_internal.h: -------------------------------------------------------------------------------- 1 | // This file is MACHINE GENERATED! Do not edit. 2 | 3 | #ifndef TENSORFLOW_CC_OPS_SPARSE_OPS_INTERNAL_H_ 4 | #define TENSORFLOW_CC_OPS_SPARSE_OPS_INTERNAL_H_ 5 | 6 | // This file is MACHINE GENERATED! Do not edit. 7 | 8 | #include "tensorflow/cc/framework/ops.h" 9 | #include "tensorflow/cc/framework/scope.h" 10 | #include "tensorflow/core/framework/tensor.h" 11 | #include "tensorflow/core/framework/tensor_shape.h" 12 | #include "tensorflow/core/framework/types.h" 13 | #include "tensorflow/core/lib/gtl/array_slice.h" 14 | 15 | namespace tensorflow { 16 | namespace ops { 17 | namespace internal { 18 | // NOTE: This namespace has internal TensorFlow details that 19 | // are not part of TensorFlow's public API. 20 | 21 | /// @defgroup sparse_ops_internal Sparse Ops Internal 22 | /// @{ 23 | 24 | } // namespace internal 25 | } // namespace ops 26 | } // namespace tensorflow 27 | 28 | #endif // TENSORFLOW_CC_OPS_SPARSE_OPS_INTERNAL_H_ 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/ops/string_ops_internal.h: -------------------------------------------------------------------------------- 1 | // This file is MACHINE GENERATED! Do not edit. 2 | 3 | #ifndef TENSORFLOW_CC_OPS_STRING_OPS_INTERNAL_H_ 4 | #define TENSORFLOW_CC_OPS_STRING_OPS_INTERNAL_H_ 5 | 6 | // This file is MACHINE GENERATED! Do not edit. 7 | 8 | #include "tensorflow/cc/framework/ops.h" 9 | #include "tensorflow/cc/framework/scope.h" 10 | #include "tensorflow/core/framework/tensor.h" 11 | #include "tensorflow/core/framework/tensor_shape.h" 12 | #include "tensorflow/core/framework/types.h" 13 | #include "tensorflow/core/lib/gtl/array_slice.h" 14 | 15 | namespace tensorflow { 16 | namespace ops { 17 | namespace internal { 18 | // NOTE: This namespace has internal TensorFlow details that 19 | // are not part of TensorFlow's public API. 20 | 21 | /// @defgroup string_ops_internal String Ops Internal 22 | /// @{ 23 | 24 | } // namespace internal 25 | } // namespace ops 26 | } // namespace tensorflow 27 | 28 | #endif // TENSORFLOW_CC_OPS_STRING_OPS_INTERNAL_H_ 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/ops/logging_ops_internal.h: -------------------------------------------------------------------------------- 1 | // This file is MACHINE GENERATED! Do not edit. 2 | 3 | #ifndef TENSORFLOW_CC_OPS_LOGGING_OPS_INTERNAL_H_ 4 | #define TENSORFLOW_CC_OPS_LOGGING_OPS_INTERNAL_H_ 5 | 6 | // This file is MACHINE GENERATED! Do not edit. 7 | 8 | #include "tensorflow/cc/framework/ops.h" 9 | #include "tensorflow/cc/framework/scope.h" 10 | #include "tensorflow/core/framework/tensor.h" 11 | #include "tensorflow/core/framework/tensor_shape.h" 12 | #include "tensorflow/core/framework/types.h" 13 | #include "tensorflow/core/lib/gtl/array_slice.h" 14 | 15 | namespace tensorflow { 16 | namespace ops { 17 | namespace internal { 18 | // NOTE: This namespace has internal TensorFlow details that 19 | // are not part of TensorFlow's public API. 20 | 21 | /// @defgroup logging_ops_internal Logging Ops Internal 22 | /// @{ 23 | 24 | } // namespace internal 25 | } // namespace ops 26 | } // namespace tensorflow 27 | 28 | #endif // TENSORFLOW_CC_OPS_LOGGING_OPS_INTERNAL_H_ 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/ops/parsing_ops_internal.h: -------------------------------------------------------------------------------- 1 | // This file is MACHINE GENERATED! Do not edit. 2 | 3 | #ifndef TENSORFLOW_CC_OPS_PARSING_OPS_INTERNAL_H_ 4 | #define TENSORFLOW_CC_OPS_PARSING_OPS_INTERNAL_H_ 5 | 6 | // This file is MACHINE GENERATED! Do not edit. 7 | 8 | #include "tensorflow/cc/framework/ops.h" 9 | #include "tensorflow/cc/framework/scope.h" 10 | #include "tensorflow/core/framework/tensor.h" 11 | #include "tensorflow/core/framework/tensor_shape.h" 12 | #include "tensorflow/core/framework/types.h" 13 | #include "tensorflow/core/lib/gtl/array_slice.h" 14 | 15 | namespace tensorflow { 16 | namespace ops { 17 | namespace internal { 18 | // NOTE: This namespace has internal TensorFlow details that 19 | // are not part of TensorFlow's public API. 20 | 21 | /// @defgroup parsing_ops_internal Parsing Ops Internal 22 | /// @{ 23 | 24 | } // namespace internal 25 | } // namespace ops 26 | } // namespace tensorflow 27 | 28 | #endif // TENSORFLOW_CC_OPS_PARSING_OPS_INTERNAL_H_ 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/ops/training_ops_internal.h: -------------------------------------------------------------------------------- 1 | // This file is MACHINE GENERATED! Do not edit. 2 | 3 | #ifndef TENSORFLOW_CC_OPS_TRAINING_OPS_INTERNAL_H_ 4 | #define TENSORFLOW_CC_OPS_TRAINING_OPS_INTERNAL_H_ 5 | 6 | // This file is MACHINE GENERATED! Do not edit. 7 | 8 | #include "tensorflow/cc/framework/ops.h" 9 | #include "tensorflow/cc/framework/scope.h" 10 | #include "tensorflow/core/framework/tensor.h" 11 | #include "tensorflow/core/framework/tensor_shape.h" 12 | #include "tensorflow/core/framework/types.h" 13 | #include "tensorflow/core/lib/gtl/array_slice.h" 14 | 15 | namespace tensorflow { 16 | namespace ops { 17 | namespace internal { 18 | // NOTE: This namespace has internal TensorFlow details that 19 | // are not part of TensorFlow's public API. 20 | 21 | /// @defgroup training_ops_internal Training Ops Internal 22 | /// @{ 23 | 24 | } // namespace internal 25 | } // namespace ops 26 | } // namespace tensorflow 27 | 28 | #endif // TENSORFLOW_CC_OPS_TRAINING_OPS_INTERNAL_H_ 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/allocation_description.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_allocation_description_proto_H_ 3 | #define tensorflow_core_framework_allocation_description_proto_H_ 4 | 5 | #include "tensorflow/core/framework/allocation_description.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.AllocationDescription 13 | string ProtoDebugString( 14 | const ::tensorflow::AllocationDescription& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::AllocationDescription& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::AllocationDescription* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | } // namespace tensorflow 23 | 24 | #endif // tensorflow_core_framework_allocation_description_proto_H_ 25 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/resource_handle.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_resource_handle_proto_IMPL_H_ 3 | #define tensorflow_core_framework_resource_handle_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/framework/resource_handle.pb.h" 6 | #include "tensorflow/core/framework/resource_handle.pb_text.h" 7 | #include "tensorflow/core/lib/strings/proto_text_util.h" 8 | #include "tensorflow/core/lib/strings/scanner.h" 9 | 10 | namespace tensorflow { 11 | 12 | namespace internal { 13 | 14 | void AppendProtoDebugString( 15 | ::tensorflow::strings::ProtoTextOutput* o, 16 | const ::tensorflow::ResourceHandleProto& msg); 17 | bool ProtoParseFromScanner( 18 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 19 | ::tensorflow::ResourceHandleProto* msg); 20 | 21 | } // namespace internal 22 | 23 | } // namespace tensorflow 24 | 25 | #endif // tensorflow_core_framework_resource_handle_proto_IMPL_H_ 26 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/protobuf/device_properties.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_protobuf_device_properties_proto_IMPL_H_ 3 | #define tensorflow_core_protobuf_device_properties_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/lib/strings/proto_text_util.h" 6 | #include "tensorflow/core/lib/strings/scanner.h" 7 | #include "tensorflow/core/protobuf/device_properties.pb.h" 8 | #include "tensorflow/core/protobuf/device_properties.pb_text.h" 9 | 10 | namespace tensorflow { 11 | 12 | namespace internal { 13 | 14 | void AppendProtoDebugString( 15 | ::tensorflow::strings::ProtoTextOutput* o, 16 | const ::tensorflow::DeviceProperties& msg); 17 | bool ProtoParseFromScanner( 18 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 19 | ::tensorflow::DeviceProperties* msg); 20 | 21 | } // namespace internal 22 | 23 | } // namespace tensorflow 24 | 25 | #endif // tensorflow_core_protobuf_device_properties_proto_IMPL_H_ 26 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/ops/data_flow_ops_internal.h: -------------------------------------------------------------------------------- 1 | // This file is MACHINE GENERATED! Do not edit. 2 | 3 | #ifndef TENSORFLOW_CC_OPS_DATA_FLOW_OPS_INTERNAL_H_ 4 | #define TENSORFLOW_CC_OPS_DATA_FLOW_OPS_INTERNAL_H_ 5 | 6 | // This file is MACHINE GENERATED! Do not edit. 7 | 8 | #include "tensorflow/cc/framework/ops.h" 9 | #include "tensorflow/cc/framework/scope.h" 10 | #include "tensorflow/core/framework/tensor.h" 11 | #include "tensorflow/core/framework/tensor_shape.h" 12 | #include "tensorflow/core/framework/types.h" 13 | #include "tensorflow/core/lib/gtl/array_slice.h" 14 | 15 | namespace tensorflow { 16 | namespace ops { 17 | namespace internal { 18 | // NOTE: This namespace has internal TensorFlow details that 19 | // are not part of TensorFlow's public API. 20 | 21 | /// @defgroup data_flow_ops_internal Data Flow Ops Internal 22 | /// @{ 23 | 24 | } // namespace internal 25 | } // namespace ops 26 | } // namespace tensorflow 27 | 28 | #endif // TENSORFLOW_CC_OPS_DATA_FLOW_OPS_INTERNAL_H_ 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/cuda.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_CUDA_H_ 17 | #define TENSORFLOW_PLATFORM_CUDA_H_ 18 | 19 | #include "tensorflow/core/platform/platform.h" 20 | #include "tensorflow/stream_executor/cuda/cuda_activation.h" 21 | 22 | #endif // TENSORFLOW_PLATFORM_CUDA_H_ 23 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/Householder: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // This Source Code Form is subject to the terms of the Mozilla 5 | // Public License v. 2.0. If a copy of the MPL was not distributed 6 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 | 8 | #ifndef EIGEN_HOUSEHOLDER_MODULE_H 9 | #define EIGEN_HOUSEHOLDER_MODULE_H 10 | 11 | #include "Core" 12 | 13 | #include "src/Core/util/DisableStupidWarnings.h" 14 | 15 | /** \defgroup Householder_Module Householder module 16 | * This module provides Householder transformations. 17 | * 18 | * \code 19 | * #include 20 | * \endcode 21 | */ 22 | 23 | #include "src/Householder/Householder.h" 24 | #include "src/Householder/HouseholderSequence.h" 25 | #include "src/Householder/BlockHouseholder.h" 26 | 27 | #include "src/Core/util/ReenableStupidWarnings.h" 28 | 29 | #endif // EIGEN_HOUSEHOLDER_MODULE_H 30 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */ 31 | -------------------------------------------------------------------------------- /libs/tensorflow/include/unsupported/Eigen/Splines: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 20010-2011 Hauke Heibel 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #ifndef EIGEN_SPLINES_MODULE_H 11 | #define EIGEN_SPLINES_MODULE_H 12 | 13 | namespace Eigen 14 | { 15 | /** 16 | * \defgroup Splines_Module Spline and spline fitting module 17 | * 18 | * This module provides a simple multi-dimensional spline class while 19 | * offering most basic functionality to fit a spline to point sets. 20 | * 21 | * \code 22 | * #include 23 | * \endcode 24 | */ 25 | } 26 | 27 | #include "src/Splines/SplineFwd.h" 28 | #include "src/Splines/Spline.h" 29 | #include "src/Splines/SplineFitting.h" 30 | 31 | #endif // EIGEN_SPLINES_MODULE_H 32 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/allocation_description.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_allocation_description_proto_IMPL_H_ 3 | #define tensorflow_core_framework_allocation_description_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/framework/allocation_description.pb.h" 6 | #include "tensorflow/core/framework/allocation_description.pb_text.h" 7 | #include "tensorflow/core/lib/strings/proto_text_util.h" 8 | #include "tensorflow/core/lib/strings/scanner.h" 9 | 10 | namespace tensorflow { 11 | 12 | namespace internal { 13 | 14 | void AppendProtoDebugString( 15 | ::tensorflow::strings::ProtoTextOutput* o, 16 | const ::tensorflow::AllocationDescription& msg); 17 | bool ProtoParseFromScanner( 18 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 19 | ::tensorflow::AllocationDescription* msg); 20 | 21 | } // namespace internal 22 | 23 | } // namespace tensorflow 24 | 25 | #endif // tensorflow_core_framework_allocation_description_proto_IMPL_H_ 26 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/net.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_NET_H_ 17 | #define TENSORFLOW_PLATFORM_NET_H_ 18 | 19 | namespace tensorflow { 20 | namespace internal { 21 | 22 | int PickUnusedPortOrDie(); 23 | 24 | } // namespace internal 25 | } // namespace tensorflow 26 | 27 | #endif // TENSORFLOW_PLATFORM_NET_H_ 28 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/ops/candidate_sampling_ops_internal.h: -------------------------------------------------------------------------------- 1 | // This file is MACHINE GENERATED! Do not edit. 2 | 3 | #ifndef TENSORFLOW_CC_OPS_CANDIDATE_SAMPLING_OPS_INTERNAL_H_ 4 | #define TENSORFLOW_CC_OPS_CANDIDATE_SAMPLING_OPS_INTERNAL_H_ 5 | 6 | // This file is MACHINE GENERATED! Do not edit. 7 | 8 | #include "tensorflow/cc/framework/ops.h" 9 | #include "tensorflow/cc/framework/scope.h" 10 | #include "tensorflow/core/framework/tensor.h" 11 | #include "tensorflow/core/framework/tensor_shape.h" 12 | #include "tensorflow/core/framework/types.h" 13 | #include "tensorflow/core/lib/gtl/array_slice.h" 14 | 15 | namespace tensorflow { 16 | namespace ops { 17 | namespace internal { 18 | // NOTE: This namespace has internal TensorFlow details that 19 | // are not part of TensorFlow's public API. 20 | 21 | /// @defgroup candidate_sampling_ops_internal Candidate Sampling Ops Internal 22 | /// @{ 23 | 24 | } // namespace internal 25 | } // namespace ops 26 | } // namespace tensorflow 27 | 28 | #endif // TENSORFLOW_CC_OPS_CANDIDATE_SAMPLING_OPS_INTERNAL_H_ 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/protobuf/saver.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_protobuf_saver_proto_H_ 3 | #define tensorflow_core_protobuf_saver_proto_H_ 4 | 5 | #include "tensorflow/core/protobuf/saver.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Enum text output for tensorflow.SaverDef.CheckpointFormatVersion 13 | const char* EnumName_SaverDef_CheckpointFormatVersion( 14 | ::tensorflow::SaverDef_CheckpointFormatVersion value); 15 | 16 | // Message-text conversion for tensorflow.SaverDef 17 | string ProtoDebugString( 18 | const ::tensorflow::SaverDef& msg); 19 | string ProtoShortDebugString( 20 | const ::tensorflow::SaverDef& msg); 21 | bool ProtoParseFromString( 22 | const string& s, 23 | ::tensorflow::SaverDef* msg) 24 | TF_MUST_USE_RESULT; 25 | 26 | } // namespace tensorflow 27 | 28 | #endif // tensorflow_core_protobuf_saver_proto_H_ 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/unsupported/Eigen/ArpackSupport: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // 5 | // This Source Code Form is subject to the terms of the Mozilla 6 | // Public License v. 2.0. If a copy of the MPL was not distributed 7 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 8 | 9 | #ifndef EIGEN_ARPACKSUPPORT_MODULE_H 10 | #define EIGEN_ARPACKSUPPORT_MODULE_H 11 | 12 | #include 13 | 14 | #include 15 | 16 | /** \defgroup ArpackSupport_Module Arpack support module 17 | * 18 | * This module provides a wrapper to Arpack, a library for sparse eigenvalue decomposition. 19 | * 20 | * \code 21 | * #include 22 | * \endcode 23 | */ 24 | 25 | #include 26 | #include "src/Eigenvalues/ArpackSelfAdjointEigenSolver.h" 27 | 28 | #include 29 | 30 | #endif // EIGEN_ARPACKSUPPORT_MODULE_H 31 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */ 32 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/partial_tensor_shape.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_CORE_FRAMEWORK_PARTIAL_TENSOR_SHAPE_H_ 17 | #define TENSORFLOW_CORE_FRAMEWORK_PARTIAL_TENSOR_SHAPE_H_ 18 | 19 | // TODO(irving): Remove this forwarding header 20 | #include "tensorflow/core/framework/tensor_shape.h" 21 | 22 | #endif // TENSORFLOW_CORE_FRAMEWORK_PARTIAL_TENSOR_SHAPE_H_ 23 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/core/notification.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_UTIL_NOTIFICATION_H_ 17 | #define TENSORFLOW_UTIL_NOTIFICATION_H_ 18 | 19 | // Notification implementation is platform-dependent, to support 20 | // alternative synchronization primitives. 21 | #include "tensorflow/core/platform/notification.h" 22 | 23 | #endif // TENSORFLOW_UTIL_NOTIFICATION_H_ 24 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/protobuf/queue_runner.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_protobuf_queue_runner_proto_IMPL_H_ 3 | #define tensorflow_core_protobuf_queue_runner_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/lib/core/error_codes.pb.h" 6 | #include "tensorflow/core/lib/core/error_codes.pb_text-impl.h" 7 | #include "tensorflow/core/lib/strings/proto_text_util.h" 8 | #include "tensorflow/core/lib/strings/scanner.h" 9 | #include "tensorflow/core/protobuf/queue_runner.pb.h" 10 | #include "tensorflow/core/protobuf/queue_runner.pb_text.h" 11 | 12 | namespace tensorflow { 13 | 14 | namespace internal { 15 | 16 | void AppendProtoDebugString( 17 | ::tensorflow::strings::ProtoTextOutput* o, 18 | const ::tensorflow::QueueRunnerDef& msg); 19 | bool ProtoParseFromScanner( 20 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 21 | ::tensorflow::QueueRunnerDef* msg); 22 | 23 | } // namespace internal 24 | 25 | } // namespace tensorflow 26 | 27 | #endif // tensorflow_core_protobuf_queue_runner_proto_IMPL_H_ 28 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/Sparse: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // This Source Code Form is subject to the terms of the Mozilla 5 | // Public License v. 2.0. If a copy of the MPL was not distributed 6 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 | 8 | #ifndef EIGEN_SPARSE_MODULE_H 9 | #define EIGEN_SPARSE_MODULE_H 10 | 11 | /** \defgroup Sparse_Module Sparse meta-module 12 | * 13 | * Meta-module including all related modules: 14 | * - \ref SparseCore_Module 15 | * - \ref OrderingMethods_Module 16 | * - \ref SparseCholesky_Module 17 | * - \ref SparseLU_Module 18 | * - \ref SparseQR_Module 19 | * - \ref IterativeLinearSolvers_Module 20 | * 21 | \code 22 | #include 23 | \endcode 24 | */ 25 | 26 | #include "SparseCore" 27 | #include "OrderingMethods" 28 | #ifndef EIGEN_MPL2_ONLY 29 | #include "SparseCholesky" 30 | #endif 31 | #include "SparseLU" 32 | #include "SparseQR" 33 | #include "IterativeLinearSolvers" 34 | 35 | #endif // EIGEN_SPARSE_MODULE_H 36 | 37 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/Jacobi: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // This Source Code Form is subject to the terms of the Mozilla 5 | // Public License v. 2.0. If a copy of the MPL was not distributed 6 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 | 8 | #ifndef EIGEN_JACOBI_MODULE_H 9 | #define EIGEN_JACOBI_MODULE_H 10 | 11 | #include "Core" 12 | 13 | #include "src/Core/util/DisableStupidWarnings.h" 14 | 15 | /** \defgroup Jacobi_Module Jacobi module 16 | * This module provides Jacobi and Givens rotations. 17 | * 18 | * \code 19 | * #include 20 | * \endcode 21 | * 22 | * In addition to listed classes, it defines the two following MatrixBase methods to apply a Jacobi or Givens rotation: 23 | * - MatrixBase::applyOnTheLeft() 24 | * - MatrixBase::applyOnTheRight(). 25 | */ 26 | 27 | #include "src/Jacobi/Jacobi.h" 28 | 29 | #include "src/Core/util/ReenableStupidWarnings.h" 30 | 31 | #endif // EIGEN_JACOBI_MODULE_H 32 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */ 33 | 34 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/util/use_cudnn.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | // The utility to check whether we have Cudnn dependency. 17 | 18 | #ifndef TENSORFLOW_UTIL_USE_CUDNN_H_ 19 | #define TENSORFLOW_UTIL_USE_CUDNN_H_ 20 | 21 | namespace tensorflow { 22 | 23 | bool CanUseCudnn(); 24 | bool CudnnUseAutotune(); 25 | 26 | } // namespace tensorflow 27 | 28 | #endif // TENSORFLOW_UTIL_USE_CUDNN_H_ 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/windows/subprocess.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_WINDOWS_SUBPROCESS_H_ 17 | #define TENSORFLOW_PLATFORM_WINDOWS_SUBPROCESS_H_ 18 | 19 | namespace tensorflow { 20 | 21 | // SubProcess is not yet implemented for Windows. 22 | class SubProcess { 23 | }; 24 | 25 | } // namespace tensorflow 26 | 27 | #endif // TENSORFLOW_PLATFORM_WINDOWS_SUBPROCESS_H_ 28 | -------------------------------------------------------------------------------- /libs/tensorflow/include/unsupported/Eigen/Skyline: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // 5 | // This Source Code Form is subject to the terms of the Mozilla 6 | // Public License v. 2.0. If a copy of the MPL was not distributed 7 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 8 | 9 | #ifndef EIGEN_SKYLINE_MODULE_H 10 | #define EIGEN_SKYLINE_MODULE_H 11 | 12 | 13 | #include "Eigen/Core" 14 | 15 | #include "Eigen/src/Core/util/DisableStupidWarnings.h" 16 | 17 | #include 18 | #include 19 | #include 20 | #include 21 | 22 | /** 23 | * \defgroup Skyline_Module Skyline module 24 | * 25 | * 26 | * 27 | * 28 | */ 29 | 30 | #include "src/Skyline/SkylineUtil.h" 31 | #include "src/Skyline/SkylineMatrixBase.h" 32 | #include "src/Skyline/SkylineStorage.h" 33 | #include "src/Skyline/SkylineMatrix.h" 34 | #include "src/Skyline/SkylineInplaceLU.h" 35 | #include "src/Skyline/SkylineProduct.h" 36 | 37 | #include "Eigen/src/Core/util/ReenableStupidWarnings.h" 38 | 39 | #endif // EIGEN_SKYLINE_MODULE_H 40 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/kernels/neon/BUILD: -------------------------------------------------------------------------------- 1 | # Description: 2 | # Kernel implementations using Neon intrinsics. 3 | # 4 | package( 5 | default_visibility = ["//visibility:public"], 6 | features = ["-parse_headers"], 7 | ) 8 | 9 | licenses(["notice"]) # Apache 2.0 10 | 11 | load( 12 | "//tensorflow:tensorflow.bzl", 13 | "tf_kernel_library", 14 | ) 15 | 16 | filegroup( 17 | name = "all_files", 18 | srcs = glob( 19 | ["**/*"], 20 | exclude = [ 21 | "**/METADATA", 22 | "**/OWNERS", 23 | ], 24 | ), 25 | visibility = ["//tensorflow:__subpackages__"], 26 | ) 27 | 28 | tf_kernel_library( 29 | name = "neon_depthwise_conv_op", 30 | hdrs = [ 31 | "depthwiseconv_float.h", 32 | "types.h", 33 | ], 34 | prefix = "neon_depthwise_conv_op", 35 | deps = [ 36 | "//tensorflow/core:core_cpu", 37 | "//tensorflow/core:framework", 38 | "//tensorflow/core:lib", 39 | "//tensorflow/core:nn_ops_op_lib", 40 | "//tensorflow/core/kernels:ops_util", 41 | "@gemmlowp//:gemmlowp", 42 | ], 43 | ) 44 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/posix/error.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_CORE_PLATFORM_POSIX_ERROR_H_ 17 | #define TENSORFLOW_CORE_PLATFORM_POSIX_ERROR_H_ 18 | 19 | #include "tensorflow/core/lib/core/status.h" 20 | 21 | namespace tensorflow { 22 | 23 | Status IOError(const string& context, int err_number); 24 | 25 | } // namespace tensorflow 26 | 27 | #endif // TENSORFLOW_CORE_PLATFORM_POSIX_POSIX_FILE_SYSTEM_H_ 28 | -------------------------------------------------------------------------------- /libs/tensorflow/include/unsupported/Eigen/KroneckerProduct: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // 5 | // This Source Code Form is subject to the terms of the Mozilla 6 | // Public License v. 2.0. If a copy of the MPL was not distributed 7 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 8 | 9 | #ifndef EIGEN_KRONECKER_PRODUCT_MODULE_H 10 | #define EIGEN_KRONECKER_PRODUCT_MODULE_H 11 | 12 | #include "../../Eigen/Core" 13 | 14 | #include "../../Eigen/src/Core/util/DisableStupidWarnings.h" 15 | 16 | #include "../../Eigen/src/SparseCore/SparseUtil.h" 17 | 18 | namespace Eigen { 19 | 20 | /** 21 | * \defgroup KroneckerProduct_Module KroneckerProduct module 22 | * 23 | * This module contains an experimental Kronecker product implementation. 24 | * 25 | * \code 26 | * #include 27 | * \endcode 28 | */ 29 | 30 | } // namespace Eigen 31 | 32 | #include "src/KroneckerProduct/KroneckerTensorProduct.h" 33 | 34 | #include "../../Eigen/src/Core/util/ReenableStupidWarnings.h" 35 | 36 | #endif // EIGEN_KRONECKER_PRODUCT_MODULE_H 37 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/QtAlignedMalloc: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // This Source Code Form is subject to the terms of the Mozilla 5 | // Public License v. 2.0. If a copy of the MPL was not distributed 6 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 | 8 | #ifndef EIGEN_QTMALLOC_MODULE_H 9 | #define EIGEN_QTMALLOC_MODULE_H 10 | 11 | #include "Core" 12 | 13 | #if (!EIGEN_MALLOC_ALREADY_ALIGNED) 14 | 15 | #include "src/Core/util/DisableStupidWarnings.h" 16 | 17 | void *qMalloc(std::size_t size) 18 | { 19 | return Eigen::internal::aligned_malloc(size); 20 | } 21 | 22 | void qFree(void *ptr) 23 | { 24 | Eigen::internal::aligned_free(ptr); 25 | } 26 | 27 | void *qRealloc(void *ptr, std::size_t size) 28 | { 29 | void* newPtr = Eigen::internal::aligned_malloc(size); 30 | memcpy(newPtr, ptr, size); 31 | Eigen::internal::aligned_free(ptr); 32 | return newPtr; 33 | } 34 | 35 | #include "src/Core/util/ReenableStupidWarnings.h" 36 | 37 | #endif 38 | 39 | #endif // EIGEN_QTMALLOC_MODULE_H 40 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */ 41 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/src/Core/DiagonalProduct.h: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2008 Gael Guennebaud 5 | // Copyright (C) 2007-2009 Benoit Jacob 6 | // 7 | // This Source Code Form is subject to the terms of the Mozilla 8 | // Public License v. 2.0. If a copy of the MPL was not distributed 9 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 10 | 11 | #ifndef EIGEN_DIAGONALPRODUCT_H 12 | #define EIGEN_DIAGONALPRODUCT_H 13 | 14 | namespace Eigen { 15 | 16 | /** \returns the diagonal matrix product of \c *this by the diagonal matrix \a diagonal. 17 | */ 18 | template 19 | template 20 | EIGEN_DEVICE_FUNC inline const Product 21 | MatrixBase::operator*(const DiagonalBase &a_diagonal) const 22 | { 23 | return Product(derived(),a_diagonal.derived()); 24 | } 25 | 26 | } // end namespace Eigen 27 | 28 | #endif // EIGEN_DIAGONALPRODUCT_H 29 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/ops/no_op.h: -------------------------------------------------------------------------------- 1 | // This file is MACHINE GENERATED! Do not edit. 2 | 3 | #ifndef TENSORFLOW_CC_OPS_NO_OP_H_ 4 | #define TENSORFLOW_CC_OPS_NO_OP_H_ 5 | 6 | // This file is MACHINE GENERATED! Do not edit. 7 | 8 | #include "tensorflow/cc/framework/ops.h" 9 | #include "tensorflow/cc/framework/scope.h" 10 | #include "tensorflow/core/framework/tensor.h" 11 | #include "tensorflow/core/framework/tensor_shape.h" 12 | #include "tensorflow/core/framework/types.h" 13 | #include "tensorflow/core/lib/gtl/array_slice.h" 14 | 15 | namespace tensorflow { 16 | namespace ops { 17 | 18 | /// @defgroup no_op No Op 19 | /// @{ 20 | 21 | /// Does nothing. Only useful as a placeholder for control edges. 22 | /// 23 | /// Arguments: 24 | /// * scope: A Scope object 25 | /// 26 | /// Returns: 27 | /// * the created `Operation` 28 | class NoOp { 29 | public: 30 | NoOp(const ::tensorflow::Scope& scope); 31 | operator ::tensorflow::Operation() const { return operation; } 32 | 33 | Operation operation; 34 | }; 35 | 36 | /// @} 37 | 38 | } // namespace ops 39 | } // namespace tensorflow 40 | 41 | #endif // TENSORFLOW_CC_OPS_NO_OP_H_ 42 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/io/compression.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef THIRD_PARTY_TENSORFLOW_CORE_LIB_IO_COMPRESSION_H_ 17 | #define THIRD_PARTY_TENSORFLOW_CORE_LIB_IO_COMPRESSION_H_ 18 | 19 | namespace tensorflow { 20 | namespace io { 21 | namespace compression { 22 | 23 | extern const char kNone[]; 24 | extern const char kGzip[]; 25 | 26 | } 27 | } 28 | } 29 | 30 | #endif // THIRD_PARTY_TENSORFLOW_CORE_LIB_IO_COMPRESSION_H_ 31 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/windows/error.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_CORE_PLATFORM_WINDOWS_ERROR_H_ 17 | #define TENSORFLOW_CORE_PLATFORM_WINDOWS_ERROR_H_ 18 | 19 | #include 20 | 21 | #include 22 | 23 | namespace tensorflow { 24 | namespace internal { 25 | 26 | std::string GetWindowsErrorMessage(DWORD err); 27 | 28 | } 29 | } 30 | 31 | #endif // TENSORFLOW_CORE_PLATFORM_WINDOWS_ERROR_H_ 32 | 33 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/MetisSupport: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // This Source Code Form is subject to the terms of the Mozilla 5 | // Public License v. 2.0. If a copy of the MPL was not distributed 6 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 | 8 | #ifndef EIGEN_METISSUPPORT_MODULE_H 9 | #define EIGEN_METISSUPPORT_MODULE_H 10 | 11 | #include "SparseCore" 12 | 13 | #include "src/Core/util/DisableStupidWarnings.h" 14 | 15 | extern "C" { 16 | #include 17 | } 18 | 19 | 20 | /** \ingroup Support_modules 21 | * \defgroup MetisSupport_Module MetisSupport module 22 | * 23 | * \code 24 | * #include 25 | * \endcode 26 | * This module defines an interface to the METIS reordering package (http://glaros.dtc.umn.edu/gkhome/views/metis). 27 | * It can be used just as any other built-in method as explained in \link OrderingMethods_Module here. \endlink 28 | */ 29 | 30 | 31 | #include "src/MetisSupport/MetisSupport.h" 32 | 33 | #include "src/Core/util/ReenableStupidWarnings.h" 34 | 35 | #endif // EIGEN_METISSUPPORT_MODULE_H 36 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/stream_executor.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_STREAM_EXECUTOR_H_ 17 | #define TENSORFLOW_PLATFORM_STREAM_EXECUTOR_H_ 18 | 19 | #include "tensorflow/core/platform/platform.h" 20 | 21 | #if defined(PLATFORM_GOOGLE) 22 | #include "tensorflow/core/platform/google/stream_executor.h" 23 | #else 24 | #include "tensorflow/core/platform/default/stream_executor.h" 25 | #endif 26 | 27 | #endif // TENSORFLOW_PLATFORM_STREAM_EXECUTOR_H_ 28 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/kernels/multinomial_op.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_KERNELS_MULTINOMIAL_OP_H_ 17 | #define TENSORFLOW_KERNELS_MULTINOMIAL_OP_H_ 18 | 19 | namespace tensorflow { 20 | 21 | namespace functor { 22 | 23 | // Generic helper functor for the Multinomial Op. 24 | template 25 | struct MultinomialFunctor; 26 | 27 | } // namespace functor 28 | } // namespace tensorflow 29 | 30 | #endif // TENSORFLOW_KERNELS_MULTINOMIAL_OP_H_ 31 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/host_info.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_HOST_INFO_H_ 17 | #define TENSORFLOW_PLATFORM_HOST_INFO_H_ 18 | 19 | #include "tensorflow/core/platform/types.h" 20 | 21 | namespace tensorflow { 22 | namespace port { 23 | 24 | // Return the hostname of the machine on which this process is running 25 | string Hostname(); 26 | 27 | } // namespace port 28 | } // namespace tensorflow 29 | 30 | #endif // TENSORFLOW_PLATFORM_HOST_INFO_H_ 31 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/kernels/random_poisson_op.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_KERNELS_RANDOM_POISSON_OP_H_ 17 | #define TENSORFLOW_KERNELS_RANDOM_POISSON_OP_H_ 18 | 19 | namespace tensorflow { 20 | 21 | namespace functor { 22 | 23 | // Generic helper functor for the Random Poisson Op. 24 | template 25 | struct PoissonFunctor; 26 | 27 | } // namespace functor 28 | 29 | } // namespace tensorflow 30 | 31 | #endif // TENSORFLOW_KERNELS_RANDOM_POISSON_OP_H_ 32 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/protobuf/cluster.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_protobuf_cluster_proto_IMPL_H_ 3 | #define tensorflow_core_protobuf_cluster_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/lib/strings/proto_text_util.h" 6 | #include "tensorflow/core/lib/strings/scanner.h" 7 | #include "tensorflow/core/protobuf/cluster.pb.h" 8 | #include "tensorflow/core/protobuf/cluster.pb_text.h" 9 | 10 | namespace tensorflow { 11 | 12 | namespace internal { 13 | 14 | void AppendProtoDebugString( 15 | ::tensorflow::strings::ProtoTextOutput* o, 16 | const ::tensorflow::JobDef& msg); 17 | bool ProtoParseFromScanner( 18 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 19 | ::tensorflow::JobDef* msg); 20 | 21 | void AppendProtoDebugString( 22 | ::tensorflow::strings::ProtoTextOutput* o, 23 | const ::tensorflow::ClusterDef& msg); 24 | bool ProtoParseFromScanner( 25 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 26 | ::tensorflow::ClusterDef* msg); 27 | 28 | } // namespace internal 29 | 30 | } // namespace tensorflow 31 | 32 | #endif // tensorflow_core_protobuf_cluster_proto_IMPL_H_ 33 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/protobuf/cluster.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_protobuf_cluster_proto_H_ 3 | #define tensorflow_core_protobuf_cluster_proto_H_ 4 | 5 | #include "tensorflow/core/protobuf/cluster.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.JobDef 13 | string ProtoDebugString( 14 | const ::tensorflow::JobDef& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::JobDef& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::JobDef* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | // Message-text conversion for tensorflow.ClusterDef 23 | string ProtoDebugString( 24 | const ::tensorflow::ClusterDef& msg); 25 | string ProtoShortDebugString( 26 | const ::tensorflow::ClusterDef& msg); 27 | bool ProtoParseFromString( 28 | const string& s, 29 | ::tensorflow::ClusterDef* msg) 30 | TF_MUST_USE_RESULT; 31 | 32 | } // namespace tensorflow 33 | 34 | #endif // tensorflow_core_protobuf_cluster_proto_H_ 35 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/lib/random/random.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_LIB_RANDOM_RANDOM_H_ 17 | #define TENSORFLOW_LIB_RANDOM_RANDOM_H_ 18 | 19 | #include "tensorflow/core/platform/types.h" 20 | 21 | namespace tensorflow { 22 | namespace random { 23 | 24 | // Return a 64-bit random value. Different sequences are generated 25 | // in different processes. 26 | uint64 New64(); 27 | 28 | } // namespace random 29 | } // namespace tensorflow 30 | 31 | #endif // TENSORFLOW_LIB_RANDOM_RANDOM_H_ 32 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/protobuf/debug.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_protobuf_debug_proto_IMPL_H_ 3 | #define tensorflow_core_protobuf_debug_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/lib/strings/proto_text_util.h" 6 | #include "tensorflow/core/lib/strings/scanner.h" 7 | #include "tensorflow/core/protobuf/debug.pb.h" 8 | #include "tensorflow/core/protobuf/debug.pb_text.h" 9 | 10 | namespace tensorflow { 11 | 12 | namespace internal { 13 | 14 | void AppendProtoDebugString( 15 | ::tensorflow::strings::ProtoTextOutput* o, 16 | const ::tensorflow::DebugTensorWatch& msg); 17 | bool ProtoParseFromScanner( 18 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 19 | ::tensorflow::DebugTensorWatch* msg); 20 | 21 | void AppendProtoDebugString( 22 | ::tensorflow::strings::ProtoTextOutput* o, 23 | const ::tensorflow::DebugOptions& msg); 24 | bool ProtoParseFromScanner( 25 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 26 | ::tensorflow::DebugOptions* msg); 27 | 28 | } // namespace internal 29 | 30 | } // namespace tensorflow 31 | 32 | #endif // tensorflow_core_protobuf_debug_proto_IMPL_H_ 33 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/example/example.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_example_example_proto_H_ 3 | #define tensorflow_core_example_example_proto_H_ 4 | 5 | #include "tensorflow/core/example/example.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.Example 13 | string ProtoDebugString( 14 | const ::tensorflow::Example& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::Example& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::Example* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | // Message-text conversion for tensorflow.SequenceExample 23 | string ProtoDebugString( 24 | const ::tensorflow::SequenceExample& msg); 25 | string ProtoShortDebugString( 26 | const ::tensorflow::SequenceExample& msg); 27 | bool ProtoParseFromString( 28 | const string& s, 29 | ::tensorflow::SequenceExample* msg) 30 | TF_MUST_USE_RESULT; 31 | 32 | } // namespace tensorflow 33 | 34 | #endif // tensorflow_core_example_example_proto_H_ 35 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/cupti_wrapper.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef THIRD_PARTY_TENSORFLOW_CORE_PLATFORM_CUPTI_WRAPPER_H_ 17 | #define THIRD_PARTY_TENSORFLOW_CORE_PLATFORM_CUPTI_WRAPPER_H_ 18 | 19 | #include "tensorflow/core/platform/platform.h" 20 | 21 | #if defined(PLATFORM_GOOGLE) 22 | #include "tensorflow/core/platform/google/cupti_wrapper.h" 23 | #else 24 | #include "tensorflow/core/platform/default/gpu/cupti_wrapper.h" 25 | #endif 26 | 27 | #endif // THIRD_PARTY_TENSORFLOW_CORE_PLATFORM_CUPTI_WRAPPER_H_ 28 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/stream_executor_no_cuda.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_STREAM_EXECUTOR_NO_CUDA_H_ 17 | #define TENSORFLOW_PLATFORM_STREAM_EXECUTOR_NO_CUDA_H_ 18 | 19 | #include "tensorflow/core/platform/platform.h" 20 | 21 | #if defined(PLATFORM_GOOGLE) 22 | #include "tensorflow/core/platform/google/stream_executor_no_cuda.h" 23 | #else 24 | #include "tensorflow/core/platform/default/stream_executor_no_cuda.h" 25 | #endif 26 | 27 | #endif // TENSORFLOW_PLATFORM_STREAM_EXECUTOR_NO_CUDA_H_ 28 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/util/port.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_UTIL_PORT_H_ 17 | #define TENSORFLOW_UTIL_PORT_H_ 18 | 19 | namespace tensorflow { 20 | 21 | // Returns true if GOOGLE_CUDA is defined. 22 | bool IsGoogleCudaEnabled(); 23 | 24 | // Returns true if GOOGLE_CUDA is defined, and the given CUDA version supports 25 | // half-precision matrix multiplications and convolution operations. 26 | bool CudaSupportsHalfMatMulAndConv(); 27 | 28 | } // end namespace tensorflow 29 | 30 | #endif // TENSORFLOW_UTIL_PORT_H_ 31 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/variable.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_variable_proto_IMPL_H_ 3 | #define tensorflow_core_framework_variable_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/framework/variable.pb.h" 6 | #include "tensorflow/core/framework/variable.pb_text.h" 7 | #include "tensorflow/core/lib/strings/proto_text_util.h" 8 | #include "tensorflow/core/lib/strings/scanner.h" 9 | 10 | namespace tensorflow { 11 | 12 | namespace internal { 13 | 14 | void AppendProtoDebugString( 15 | ::tensorflow::strings::ProtoTextOutput* o, 16 | const ::tensorflow::VariableDef& msg); 17 | bool ProtoParseFromScanner( 18 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 19 | ::tensorflow::VariableDef* msg); 20 | 21 | void AppendProtoDebugString( 22 | ::tensorflow::strings::ProtoTextOutput* o, 23 | const ::tensorflow::SaveSliceInfoDef& msg); 24 | bool ProtoParseFromScanner( 25 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 26 | ::tensorflow::SaveSliceInfoDef* msg); 27 | 28 | } // namespace internal 29 | 30 | } // namespace tensorflow 31 | 32 | #endif // tensorflow_core_framework_variable_proto_IMPL_H_ 33 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/protobuf/debug.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_protobuf_debug_proto_H_ 3 | #define tensorflow_core_protobuf_debug_proto_H_ 4 | 5 | #include "tensorflow/core/protobuf/debug.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.DebugTensorWatch 13 | string ProtoDebugString( 14 | const ::tensorflow::DebugTensorWatch& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::DebugTensorWatch& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::DebugTensorWatch* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | // Message-text conversion for tensorflow.DebugOptions 23 | string ProtoDebugString( 24 | const ::tensorflow::DebugOptions& msg); 25 | string ProtoShortDebugString( 26 | const ::tensorflow::DebugOptions& msg); 27 | bool ProtoParseFromString( 28 | const string& s, 29 | ::tensorflow::DebugOptions* msg) 30 | TF_MUST_USE_RESULT; 31 | 32 | } // namespace tensorflow 33 | 34 | #endif // tensorflow_core_protobuf_debug_proto_H_ 35 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/graph/colors.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_GRAPH_COLORS_H_ 17 | #define TENSORFLOW_GRAPH_COLORS_H_ 18 | 19 | namespace tensorflow { 20 | 21 | // Return a color drawn from a palette to represent an entity 22 | // identified by "i". The return value has the form "#RRGGBB" Note 23 | // that the palette has a limited set of colors and therefore colors 24 | // will be reused eventually. 25 | const char* ColorFor(int dindex); 26 | 27 | } // namespace tensorflow 28 | 29 | #endif // TENSORFLOW_GRAPH_COLORS_H_ 30 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/kernels/warn_about_ints.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_KERNELS_WARN_ABOUT_INTS_H_ 17 | #define TENSORFLOW_KERNELS_WARN_ABOUT_INTS_H_ 18 | 19 | #include "tensorflow/core/framework/op_kernel.h" 20 | 21 | namespace tensorflow { 22 | 23 | // Warn if a kernel is being created using ints 24 | // TODO(irving): Remove in TF 2.0 along with the bad op registrations. 25 | void WarnAboutInts(OpKernelConstruction* context); 26 | 27 | } // namespace tensorflow 28 | 29 | #endif // TENSORFLOW_KERNELS_WARN_ABOUT_INTS_H_ 30 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/ops/user_ops.h: -------------------------------------------------------------------------------- 1 | // This file is MACHINE GENERATED! Do not edit. 2 | 3 | #ifndef TENSORFLOW_CC_OPS_USER_OPS_H_ 4 | #define TENSORFLOW_CC_OPS_USER_OPS_H_ 5 | 6 | // This file is MACHINE GENERATED! Do not edit. 7 | 8 | #include "tensorflow/cc/framework/ops.h" 9 | #include "tensorflow/cc/framework/scope.h" 10 | #include "tensorflow/core/framework/tensor.h" 11 | #include "tensorflow/core/framework/tensor_shape.h" 12 | #include "tensorflow/core/framework/types.h" 13 | #include "tensorflow/core/lib/gtl/array_slice.h" 14 | 15 | namespace tensorflow { 16 | namespace ops { 17 | 18 | /// @defgroup user_ops User Ops 19 | /// @{ 20 | 21 | /// Output a fact about factorials. 22 | /// 23 | /// Arguments: 24 | /// * scope: A Scope object 25 | /// 26 | /// Returns: 27 | /// * `Output`: The fact tensor. 28 | class Fact { 29 | public: 30 | Fact(const ::tensorflow::Scope& scope); 31 | operator ::tensorflow::Output() const { return fact; } 32 | operator ::tensorflow::Input() const { return fact; } 33 | ::tensorflow::Node* node() const { return fact.node(); } 34 | 35 | ::tensorflow::Output fact; 36 | }; 37 | 38 | /// @} 39 | 40 | } // namespace ops 41 | } // namespace tensorflow 42 | 43 | #endif // TENSORFLOW_CC_OPS_USER_OPS_H_ 44 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/default/context.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_CORE_PLATFORM_DEFAULT_CONTEXT_H_ 17 | #define TENSORFLOW_CORE_PLATFORM_DEFAULT_CONTEXT_H_ 18 | 19 | namespace tensorflow { 20 | 21 | class Context { 22 | public: 23 | Context() {} 24 | Context(const ContextKind kind) {} 25 | }; 26 | 27 | class WithContext { 28 | public: 29 | explicit WithContext(const Context& x) {} 30 | ~WithContext() {} 31 | }; 32 | 33 | } // namespace tensorflow 34 | 35 | #endif // TENSORFLOW_CORE_PLATFORM_DEFAULT_CONTEXT_H_ 36 | -------------------------------------------------------------------------------- /libs/tensorflow/include/unsupported/Eigen/AutoDiff: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2008-2009 Gael Guennebaud 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #ifndef EIGEN_AUTODIFF_MODULE 11 | #define EIGEN_AUTODIFF_MODULE 12 | 13 | namespace Eigen { 14 | 15 | /** 16 | * \defgroup AutoDiff_Module Auto Diff module 17 | * 18 | * This module features forward automatic differentation via a simple 19 | * templated scalar type wrapper AutoDiffScalar. 20 | * 21 | * Warning : this should NOT be confused with numerical differentiation, which 22 | * is a different method and has its own module in Eigen : \ref NumericalDiff_Module. 23 | * 24 | * \code 25 | * #include 26 | * \endcode 27 | */ 28 | //@{ 29 | 30 | } 31 | 32 | #include "src/AutoDiff/AutoDiffScalar.h" 33 | // #include "src/AutoDiff/AutoDiffVector.h" 34 | #include "src/AutoDiff/AutoDiffJacobian.h" 35 | 36 | namespace Eigen { 37 | //@} 38 | } 39 | 40 | #endif // EIGEN_AUTODIFF_MODULE 41 | -------------------------------------------------------------------------------- /libs/tensorflow/include/unsupported/Eigen/src/NonLinearOptimization/r1mpyq.h: -------------------------------------------------------------------------------- 1 | namespace Eigen { 2 | 3 | namespace internal { 4 | 5 | // TODO : move this to GivensQR once there's such a thing in Eigen 6 | 7 | template 8 | void r1mpyq(DenseIndex m, DenseIndex n, Scalar *a, const std::vector > &v_givens, const std::vector > &w_givens) 9 | { 10 | typedef DenseIndex Index; 11 | 12 | /* apply the first set of givens rotations to a. */ 13 | for (Index j = n-2; j>=0; --j) 14 | for (Index i = 0; i 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #ifndef EIGEN_SPARSE_FUZZY_H 11 | #define EIGEN_SPARSE_FUZZY_H 12 | 13 | namespace Eigen { 14 | 15 | template 16 | template 17 | bool SparseMatrixBase::isApprox(const SparseMatrixBase& other, const RealScalar &prec) const 18 | { 19 | const typename internal::nested_eval::type actualA(derived()); 20 | typename internal::conditional::type, 22 | const PlainObject>::type actualB(other.derived()); 23 | 24 | return (actualA - actualB).squaredNorm() <= prec * prec * numext::mini(actualA.squaredNorm(), actualB.squaredNorm()); 25 | } 26 | 27 | } // end namespace Eigen 28 | 29 | #endif // EIGEN_SPARSE_FUZZY_H 30 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/variable.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_variable_proto_H_ 3 | #define tensorflow_core_framework_variable_proto_H_ 4 | 5 | #include "tensorflow/core/framework/variable.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.VariableDef 13 | string ProtoDebugString( 14 | const ::tensorflow::VariableDef& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::VariableDef& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::VariableDef* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | // Message-text conversion for tensorflow.SaveSliceInfoDef 23 | string ProtoDebugString( 24 | const ::tensorflow::SaveSliceInfoDef& msg); 25 | string ProtoShortDebugString( 26 | const ::tensorflow::SaveSliceInfoDef& msg); 27 | bool ProtoParseFromString( 28 | const string& s, 29 | ::tensorflow::SaveSliceInfoDef* msg) 30 | TF_MUST_USE_RESULT; 31 | 32 | } // namespace tensorflow 33 | 34 | #endif // tensorflow_core_framework_variable_proto_H_ 35 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/png.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_PNG_H_ 17 | #define TENSORFLOW_PLATFORM_PNG_H_ 18 | 19 | #include "tensorflow/core/platform/platform.h" 20 | 21 | #if defined(PLATFORM_GOOGLE) 22 | #include "tensorflow/core/platform/google/build_config/png.h" 23 | #elif (defined(PLATFORM_POSIX) && !defined(IS_MOBILE_PLATFORM)) || defined(PLATFORM_WINDOWS) 24 | #include 25 | #else 26 | #error Define the appropriate PLATFORM_ macro for this platform 27 | #endif 28 | 29 | #endif // TENSORFLOW_PLATFORM_PNG_H_ 30 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/kernels/no_op.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_KERNELS_NO_OP_H_ 17 | #define TENSORFLOW_KERNELS_NO_OP_H_ 18 | 19 | #include "tensorflow/core/framework/op_kernel.h" 20 | 21 | namespace tensorflow { 22 | 23 | class NoOp : public OpKernel { 24 | public: 25 | explicit NoOp(OpKernelConstruction* context) : OpKernel(context) {} 26 | void Compute(OpKernelContext* context) override {} 27 | bool IsExpensive() override { return false; } 28 | }; 29 | 30 | } // namespace tensorflow 31 | 32 | #endif // TENSORFLOW_KERNELS_NO_OP_H_ 33 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/init_main.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_INIT_MAIN_H_ 17 | #define TENSORFLOW_PLATFORM_INIT_MAIN_H_ 18 | 19 | namespace tensorflow { 20 | namespace port { 21 | 22 | // Platform-specific initialization routine that may be invoked by a 23 | // main() program that uses TensorFlow. 24 | // 25 | // Default implementation does nothing. 26 | void InitMain(const char* usage, int* argc, char*** argv); 27 | 28 | } // namespace port 29 | } // namespace tensorflow 30 | 31 | #endif // TENSORFLOW_PLATFORM_INIT_MAIN_H_ 32 | -------------------------------------------------------------------------------- /src/ofxMSATFIncludes.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | 4 | #include "ofMain.h" 5 | 6 | #ifdef Success 7 | #undef Success // /usr/include/X11/X.h is defining this making compile fail 8 | #endif 9 | 10 | #ifdef Status 11 | #undef Status // /usr/include/X11/X.h is defining this making compile fail 12 | #endif 13 | 14 | #ifdef None 15 | #undef None // /usr/include/X11/X.h is defining this making compile fail 16 | #endif 17 | 18 | #ifdef Complex 19 | #undef Complex // /usr/include/X11/X.h is defining this making compile fail 20 | #endif 21 | 22 | #ifdef BadColor 23 | #undef BadColor // /usr/include/X11/X.h is defining this making compile fail 24 | #endif 25 | 26 | 27 | 28 | #include "tensorflow/cc/client/client_session.h" 29 | #include "tensorflow/cc/ops/standard_ops.h" 30 | #include "tensorflow/core/framework/graph.pb.h" 31 | #include "tensorflow/core/framework/tensor.h" 32 | #include "tensorflow/core/graph/default_device.h" 33 | #include "tensorflow/core/graph/graph_def_builder.h" 34 | #include "tensorflow/core/lib/core/threadpool.h" 35 | #include "tensorflow/core/lib/strings/stringprintf.h" 36 | #include "tensorflow/core/platform/init_main.h" 37 | #include "tensorflow/core/platform/logging.h" 38 | #include "tensorflow/core/platform/types.h" 39 | #include "tensorflow/core/public/session.h" 40 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/tensor_shape.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_tensor_shape_proto_IMPL_H_ 3 | #define tensorflow_core_framework_tensor_shape_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/framework/tensor_shape.pb.h" 6 | #include "tensorflow/core/framework/tensor_shape.pb_text.h" 7 | #include "tensorflow/core/lib/strings/proto_text_util.h" 8 | #include "tensorflow/core/lib/strings/scanner.h" 9 | 10 | namespace tensorflow { 11 | 12 | namespace internal { 13 | 14 | void AppendProtoDebugString( 15 | ::tensorflow::strings::ProtoTextOutput* o, 16 | const ::tensorflow::TensorShapeProto_Dim& msg); 17 | bool ProtoParseFromScanner( 18 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 19 | ::tensorflow::TensorShapeProto_Dim* msg); 20 | 21 | void AppendProtoDebugString( 22 | ::tensorflow::strings::ProtoTextOutput* o, 23 | const ::tensorflow::TensorShapeProto& msg); 24 | bool ProtoParseFromScanner( 25 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 26 | ::tensorflow::TensorShapeProto* msg); 27 | 28 | } // namespace internal 29 | 30 | } // namespace tensorflow 31 | 32 | #endif // tensorflow_core_framework_tensor_shape_proto_IMPL_H_ 33 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/cloud/time_util.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef THIRD_PARTY_TENSORFLOW_CORE_PLATFORM_CLOUD_TIME_UTIL_H_ 17 | #define THIRD_PARTY_TENSORFLOW_CORE_PLATFORM_CLOUD_TIME_UTIL_H_ 18 | 19 | #include "tensorflow/core/lib/core/status.h" 20 | 21 | namespace tensorflow { 22 | 23 | /// Parses the timestamp in RFC 3339 format and returns it 24 | /// as nanoseconds since epoch. 25 | Status ParseRfc3339Time(const string& time, int64* mtime_nsec); 26 | 27 | } // namespace tensorflow 28 | 29 | #endif // THIRD_PARTY_TENSORFLOW_CORE_PLATFORM_CLOUD_TIME_UTIL_H_ 30 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/gif.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_CORE_PLATFORM_GIF_H_ 17 | #define TENSORFLOW_CORE_PLATFORM_GIF_H_ 18 | 19 | #include "tensorflow/core/platform/platform.h" 20 | 21 | #if defined(PLATFORM_GOOGLE) 22 | #include "tensorflow/core/platform/google/build_config/gif.h" 23 | #elif (defined(PLATFORM_POSIX) && !defined(IS_MOBILE_PLATFORM)) || defined(PLATFORM_WINDOWS) 24 | #include 25 | #else 26 | #error Define the appropriate PLATFORM_ macro for this platform 27 | #endif 28 | 29 | #endif // TENSORFLOW_CORE_PLATFORM_GIF_H_ 30 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/PardisoSupport: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // This Source Code Form is subject to the terms of the Mozilla 5 | // Public License v. 2.0. If a copy of the MPL was not distributed 6 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 | 8 | #ifndef EIGEN_PARDISOSUPPORT_MODULE_H 9 | #define EIGEN_PARDISOSUPPORT_MODULE_H 10 | 11 | #include "SparseCore" 12 | 13 | #include "src/Core/util/DisableStupidWarnings.h" 14 | 15 | #include 16 | 17 | /** \ingroup Support_modules 18 | * \defgroup PardisoSupport_Module PardisoSupport module 19 | * 20 | * This module brings support for the Intel(R) MKL PARDISO direct sparse solvers. 21 | * 22 | * \code 23 | * #include 24 | * \endcode 25 | * 26 | * In order to use this module, the MKL headers must be accessible from the include paths, and your binary must be linked to the MKL library and its dependencies. 27 | * See this \ref TopicUsingIntelMKL "page" for more information on MKL-Eigen integration. 28 | * 29 | */ 30 | 31 | #include "src/PardisoSupport/PardisoSupport.h" 32 | 33 | #include "src/Core/util/ReenableStupidWarnings.h" 34 | 35 | #endif // EIGEN_PARDISOSUPPORT_MODULE_H 36 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/tensor_slice.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_tensor_slice_proto_IMPL_H_ 3 | #define tensorflow_core_framework_tensor_slice_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/framework/tensor_slice.pb.h" 6 | #include "tensorflow/core/framework/tensor_slice.pb_text.h" 7 | #include "tensorflow/core/lib/strings/proto_text_util.h" 8 | #include "tensorflow/core/lib/strings/scanner.h" 9 | 10 | namespace tensorflow { 11 | 12 | namespace internal { 13 | 14 | void AppendProtoDebugString( 15 | ::tensorflow::strings::ProtoTextOutput* o, 16 | const ::tensorflow::TensorSliceProto_Extent& msg); 17 | bool ProtoParseFromScanner( 18 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 19 | ::tensorflow::TensorSliceProto_Extent* msg); 20 | 21 | void AppendProtoDebugString( 22 | ::tensorflow::strings::ProtoTextOutput* o, 23 | const ::tensorflow::TensorSliceProto& msg); 24 | bool ProtoParseFromScanner( 25 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 26 | ::tensorflow::TensorSliceProto* msg); 27 | 28 | } // namespace internal 29 | 30 | } // namespace tensorflow 31 | 32 | #endif // tensorflow_core_framework_tensor_slice_proto_IMPL_H_ 33 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/grappler/utils/topological_sort.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef THIRD_PARTY_TENSORFLOW_CORE_GRAPPLER_UTILS_TOPOLOGICAL_SORT_H_ 17 | #define THIRD_PARTY_TENSORFLOW_CORE_GRAPPLER_UTILS_TOPOLOGICAL_SORT_H_ 18 | 19 | #include "tensorflow/core/framework/graph.pb.h" 20 | 21 | namespace tensorflow { 22 | namespace grappler { 23 | 24 | // Sort a graph in topological order. 25 | void TopologicalSort(GraphDef* graph); 26 | 27 | } // namespace grappler 28 | } // namespace tensorflow 29 | 30 | #endif // THIRD_PARTY_TENSORFLOW_CORE_GRAPPLER_UTILS_TOPOLOGICAL_SORT_H_ 31 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/default/strong_hash.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_CORE_PLATFORM_DEFAULT_STRONG_HASH_H_ 17 | #define TENSORFLOW_CORE_PLATFORM_DEFAULT_STRONG_HASH_H_ 18 | 19 | #include "highwayhash/sip_hash.h" 20 | #include "highwayhash/state_helpers.h" 21 | 22 | namespace tensorflow { 23 | 24 | inline uint64 StrongKeyedHash(const uint64 (&key)[2], const string& s) { 25 | return highwayhash::StringHasher()(key, s); 26 | } 27 | 28 | } // namespace tensorflow 29 | 30 | #endif // TENSORFLOW_CORE_PLATFORM_DEFAULT_STRONG_HASH_H_ 31 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/protobuf/rewriter_config.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_protobuf_rewriter_config_proto_IMPL_H_ 3 | #define tensorflow_core_protobuf_rewriter_config_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/lib/strings/proto_text_util.h" 6 | #include "tensorflow/core/lib/strings/scanner.h" 7 | #include "tensorflow/core/protobuf/rewriter_config.pb.h" 8 | #include "tensorflow/core/protobuf/rewriter_config.pb_text.h" 9 | 10 | namespace tensorflow { 11 | 12 | namespace internal { 13 | 14 | void AppendProtoDebugString( 15 | ::tensorflow::strings::ProtoTextOutput* o, 16 | const ::tensorflow::AutoParallelOptions& msg); 17 | bool ProtoParseFromScanner( 18 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 19 | ::tensorflow::AutoParallelOptions* msg); 20 | 21 | void AppendProtoDebugString( 22 | ::tensorflow::strings::ProtoTextOutput* o, 23 | const ::tensorflow::RewriterConfig& msg); 24 | bool ProtoParseFromScanner( 25 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 26 | ::tensorflow::RewriterConfig* msg); 27 | 28 | } // namespace internal 29 | 30 | } // namespace tensorflow 31 | 32 | #endif // tensorflow_core_protobuf_rewriter_config_proto_IMPL_H_ 33 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/kernel_def.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_kernel_def_proto_H_ 3 | #define tensorflow_core_framework_kernel_def_proto_H_ 4 | 5 | #include "tensorflow/core/framework/kernel_def.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.KernelDef.AttrConstraint 13 | string ProtoDebugString( 14 | const ::tensorflow::KernelDef_AttrConstraint& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::KernelDef_AttrConstraint& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::KernelDef_AttrConstraint* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | // Message-text conversion for tensorflow.KernelDef 23 | string ProtoDebugString( 24 | const ::tensorflow::KernelDef& msg); 25 | string ProtoShortDebugString( 26 | const ::tensorflow::KernelDef& msg); 27 | bool ProtoParseFromString( 28 | const string& s, 29 | ::tensorflow::KernelDef* msg) 30 | TF_MUST_USE_RESULT; 31 | 32 | } // namespace tensorflow 33 | 34 | #endif // tensorflow_core_framework_kernel_def_proto_H_ 35 | -------------------------------------------------------------------------------- /scripts/ubuntu/update_lib.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # this script copies the required dynamic lib (libtensorflow_cc.so) to desired folder 4 | 5 | if [[ $(/usr/bin/id -u) -ne 0 ]]; then 6 | echo "*** You need to run this script as root (try with sudo) ***" 7 | echo 8 | echo "This script": 9 | echo " 1. copies libtensorflow_cc.so" 10 | echo " from src path (ofxMSATensorFlow/libs/tensorflow/lib/linux64 by default)" 11 | echo " to destination folder (~/lib by defaut)" 12 | echo " 2. adds this path to /etc/ld.so.conf.d/libtensorflow_cc.so.conf" 13 | echo " 3. runs ldconfig" 14 | echo 15 | echo 16 | echo "Usage (parameters optional):" 17 | echo 18 | echo "$ update_lib.sh [dst_folder] [src_folder]" 19 | echo 20 | exit 21 | fi 22 | 23 | # DEFAULTS 24 | LIB_DST=$HOME'/lib' # override with arg 1 25 | LIB_SRC='../../libs/tensorflow/lib/linux64/libtensorflow_cc.so' # override with arg2 26 | 27 | DST_LD_CONF='/etc/ld.so.conf.d/libtensorflow_cc.so.conf' 28 | 29 | 30 | if ! ([ -z "$1" ]); then LIB_DST=$1; fi 31 | if ! ([ -z "$2" ]); then LIB_SRC=$2; fi 32 | 33 | 34 | echo 'Copying' $LIB_SRC 'to' $LIB_DST 35 | mkdir -p $LIB_DST 36 | cp $LIB_SRC $LIB_DST 37 | 38 | echo 'Writing path to' $DST_LD_CONF 39 | echo $LIB_DST > $DST_LD_CONF 40 | 41 | echo 'Running ldconfig...' 42 | ldconfig 43 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/device_attributes.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_device_attributes_proto_IMPL_H_ 3 | #define tensorflow_core_framework_device_attributes_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/framework/device_attributes.pb.h" 6 | #include "tensorflow/core/framework/device_attributes.pb_text.h" 7 | #include "tensorflow/core/lib/strings/proto_text_util.h" 8 | #include "tensorflow/core/lib/strings/scanner.h" 9 | 10 | namespace tensorflow { 11 | 12 | namespace internal { 13 | 14 | void AppendProtoDebugString( 15 | ::tensorflow::strings::ProtoTextOutput* o, 16 | const ::tensorflow::DeviceLocality& msg); 17 | bool ProtoParseFromScanner( 18 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 19 | ::tensorflow::DeviceLocality* msg); 20 | 21 | void AppendProtoDebugString( 22 | ::tensorflow::strings::ProtoTextOutput* o, 23 | const ::tensorflow::DeviceAttributes& msg); 24 | bool ProtoParseFromScanner( 25 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 26 | ::tensorflow::DeviceAttributes* msg); 27 | 28 | } // namespace internal 29 | 30 | } // namespace tensorflow 31 | 32 | #endif // tensorflow_core_framework_device_attributes_proto_IMPL_H_ 33 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/tensor.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_tensor_proto_IMPL_H_ 3 | #define tensorflow_core_framework_tensor_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/framework/resource_handle.pb.h" 6 | #include "tensorflow/core/framework/resource_handle.pb_text-impl.h" 7 | #include "tensorflow/core/framework/tensor.pb.h" 8 | #include "tensorflow/core/framework/tensor.pb_text.h" 9 | #include "tensorflow/core/framework/tensor_shape.pb.h" 10 | #include "tensorflow/core/framework/tensor_shape.pb_text-impl.h" 11 | #include "tensorflow/core/framework/types.pb.h" 12 | #include "tensorflow/core/framework/types.pb_text-impl.h" 13 | #include "tensorflow/core/lib/strings/proto_text_util.h" 14 | #include "tensorflow/core/lib/strings/scanner.h" 15 | 16 | namespace tensorflow { 17 | 18 | namespace internal { 19 | 20 | void AppendProtoDebugString( 21 | ::tensorflow::strings::ProtoTextOutput* o, 22 | const ::tensorflow::TensorProto& msg); 23 | bool ProtoParseFromScanner( 24 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 25 | ::tensorflow::TensorProto* msg); 26 | 27 | } // namespace internal 28 | 29 | } // namespace tensorflow 30 | 31 | #endif // tensorflow_core_framework_tensor_proto_IMPL_H_ 32 | -------------------------------------------------------------------------------- /libs/tensorflow/include/third_party/eigen3/BUILD: -------------------------------------------------------------------------------- 1 | # Description: 2 | # Eigen is a C++ template library for linear algebra: vectors, 3 | # matrices, and related algorithms. 4 | 5 | licenses([ 6 | # Note: Eigen is an MPL2 library that includes GPL v3 and LGPL v2.1+ code. 7 | # We've taken special care to not reference any restricted code. 8 | "reciprocal", # MPL2 9 | "notice", # Portions BSD 10 | ]) 11 | 12 | exports_files(["LICENSE"]) 13 | 14 | # INTEL_MKL start 15 | load("//tensorflow:tensorflow.bzl", "if_mkl") 16 | 17 | # INTEL_MKL end 18 | load("//tensorflow:tensorflow.bzl", "if_mkl") 19 | 20 | cc_library( 21 | name = "eigen3", 22 | hdrs = glob(["unsupported/Eigen/CXX11/src/FixedPoint/*.h"]) + [ 23 | "Eigen/Core", 24 | "Eigen/LU", 25 | "Eigen/Cholesky", 26 | "Eigen/Eigenvalues", 27 | "Eigen/QR", 28 | "Eigen/SVD", 29 | "unsupported/Eigen/SpecialFunctions", 30 | "unsupported/Eigen/CXX11/ThreadPool", 31 | "unsupported/Eigen/CXX11/Tensor", 32 | "unsupported/Eigen/CXX11/FixedPoint", 33 | ], 34 | includes = if_mkl(["./mkl_include"]), 35 | visibility = ["//visibility:public"], 36 | deps = [ 37 | "@eigen_archive//:eigen", 38 | "@local_config_sycl//sycl:sycl", 39 | ], 40 | ) 41 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/device_attributes.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_device_attributes_proto_H_ 3 | #define tensorflow_core_framework_device_attributes_proto_H_ 4 | 5 | #include "tensorflow/core/framework/device_attributes.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.DeviceLocality 13 | string ProtoDebugString( 14 | const ::tensorflow::DeviceLocality& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::DeviceLocality& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::DeviceLocality* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | // Message-text conversion for tensorflow.DeviceAttributes 23 | string ProtoDebugString( 24 | const ::tensorflow::DeviceAttributes& msg); 25 | string ProtoShortDebugString( 26 | const ::tensorflow::DeviceAttributes& msg); 27 | bool ProtoParseFromString( 28 | const string& s, 29 | ::tensorflow::DeviceAttributes* msg) 30 | TF_MUST_USE_RESULT; 31 | 32 | } // namespace tensorflow 33 | 34 | #endif // tensorflow_core_framework_device_attributes_proto_H_ 35 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/tensor_shape.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_tensor_shape_proto_H_ 3 | #define tensorflow_core_framework_tensor_shape_proto_H_ 4 | 5 | #include "tensorflow/core/framework/tensor_shape.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.TensorShapeProto.Dim 13 | string ProtoDebugString( 14 | const ::tensorflow::TensorShapeProto_Dim& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::TensorShapeProto_Dim& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::TensorShapeProto_Dim* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | // Message-text conversion for tensorflow.TensorShapeProto 23 | string ProtoDebugString( 24 | const ::tensorflow::TensorShapeProto& msg); 25 | string ProtoShortDebugString( 26 | const ::tensorflow::TensorShapeProto& msg); 27 | bool ProtoParseFromString( 28 | const string& s, 29 | ::tensorflow::TensorShapeProto* msg) 30 | TF_MUST_USE_RESULT; 31 | 32 | } // namespace tensorflow 33 | 34 | #endif // tensorflow_core_framework_tensor_shape_proto_H_ 35 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/demangle.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef THIRD_PARTY_TENSORFLOW_CORE_PLATFORM_DEMANGLE_H_ 17 | #define THIRD_PARTY_TENSORFLOW_CORE_PLATFORM_DEMANGLE_H_ 18 | 19 | #include "tensorflow/core/platform/types.h" 20 | 21 | namespace tensorflow { 22 | namespace port { 23 | 24 | // If the compiler supports, demangle a mangled symbol name and return 25 | // the demangled name. Otherwise, returns 'mangled' as is. 26 | string Demangle(const char* mangled); 27 | 28 | } // namespace port 29 | } // namespace tensorflow 30 | 31 | #endif // THIRD_PARTY_TENSORFLOW_CORE_PLATFORM_DEMANGLE_H_ 32 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/Cholesky: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // This Source Code Form is subject to the terms of the Mozilla 5 | // Public License v. 2.0. If a copy of the MPL was not distributed 6 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 | 8 | #ifndef EIGEN_CHOLESKY_MODULE_H 9 | #define EIGEN_CHOLESKY_MODULE_H 10 | 11 | #include "Core" 12 | 13 | #include "src/Core/util/DisableStupidWarnings.h" 14 | 15 | /** \defgroup Cholesky_Module Cholesky module 16 | * 17 | * 18 | * 19 | * This module provides two variants of the Cholesky decomposition for selfadjoint (hermitian) matrices. 20 | * Those decompositions are also accessible via the following methods: 21 | * - MatrixBase::llt() 22 | * - MatrixBase::ldlt() 23 | * - SelfAdjointView::llt() 24 | * - SelfAdjointView::ldlt() 25 | * 26 | * \code 27 | * #include 28 | * \endcode 29 | */ 30 | 31 | #include "src/Cholesky/LLT.h" 32 | #include "src/Cholesky/LDLT.h" 33 | #ifdef EIGEN_USE_LAPACKE 34 | #include "src/misc/lapacke.h" 35 | #include "src/Cholesky/LLT_LAPACKE.h" 36 | #endif 37 | 38 | #include "src/Core/util/ReenableStupidWarnings.h" 39 | 40 | #endif // EIGEN_CHOLESKY_MODULE_H 41 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */ 42 | -------------------------------------------------------------------------------- /libs/tensorflow/include/unsupported/Eigen/EulerAngles: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2015 Tal Hadad 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #ifndef EIGEN_EULERANGLES_MODULE_H 11 | #define EIGEN_EULERANGLES_MODULE_H 12 | 13 | 14 | #include "Eigen/Core" 15 | #include "Eigen/Geometry" 16 | 17 | #include "Eigen/src/Core/util/DisableStupidWarnings.h" 18 | 19 | namespace Eigen { 20 | 21 | /** 22 | * \defgroup EulerAngles_Module EulerAngles module 23 | * \brief This module provides generic euler angles rotation. 24 | * 25 | * Euler angles are a way to represent 3D rotation. 26 | * 27 | * In order to use this module in your code, include this header: 28 | * \code 29 | * #include 30 | * \endcode 31 | * 32 | * See \ref EulerAngles for more information. 33 | * 34 | */ 35 | 36 | } 37 | 38 | #include "src/EulerAngles/EulerSystem.h" 39 | #include "src/EulerAngles/EulerAngles.h" 40 | 41 | #include "Eigen/src/Core/util/ReenableStupidWarnings.h" 42 | 43 | #endif // EIGEN_EULERANGLES_MODULE_H 44 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/SPQRSupport: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // This Source Code Form is subject to the terms of the Mozilla 5 | // Public License v. 2.0. If a copy of the MPL was not distributed 6 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 | 8 | #ifndef EIGEN_SPQRSUPPORT_MODULE_H 9 | #define EIGEN_SPQRSUPPORT_MODULE_H 10 | 11 | #include "SparseCore" 12 | 13 | #include "src/Core/util/DisableStupidWarnings.h" 14 | 15 | #include "SuiteSparseQR.hpp" 16 | 17 | /** \ingroup Support_modules 18 | * \defgroup SPQRSupport_Module SuiteSparseQR module 19 | * 20 | * This module provides an interface to the SPQR library, which is part of the suitesparse package. 21 | * 22 | * \code 23 | * #include 24 | * \endcode 25 | * 26 | * In order to use this module, the SPQR headers must be accessible from the include paths, and your binary must be linked to the SPQR library and its dependencies (Cholmod, AMD, COLAMD,...). 27 | * For a cmake based project, you can use our FindSPQR.cmake and FindCholmod.Cmake modules 28 | * 29 | */ 30 | 31 | #include "src/CholmodSupport/CholmodSupport.h" 32 | #include "src/SPQRSupport/SuiteSparseQRSupport.h" 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/example/example.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_example_example_proto_IMPL_H_ 3 | #define tensorflow_core_example_example_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/example/example.pb.h" 6 | #include "tensorflow/core/example/example.pb_text.h" 7 | #include "tensorflow/core/example/feature.pb.h" 8 | #include "tensorflow/core/example/feature.pb_text-impl.h" 9 | #include "tensorflow/core/lib/strings/proto_text_util.h" 10 | #include "tensorflow/core/lib/strings/scanner.h" 11 | 12 | namespace tensorflow { 13 | 14 | namespace internal { 15 | 16 | void AppendProtoDebugString( 17 | ::tensorflow::strings::ProtoTextOutput* o, 18 | const ::tensorflow::Example& msg); 19 | bool ProtoParseFromScanner( 20 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 21 | ::tensorflow::Example* msg); 22 | 23 | void AppendProtoDebugString( 24 | ::tensorflow::strings::ProtoTextOutput* o, 25 | const ::tensorflow::SequenceExample& msg); 26 | bool ProtoParseFromScanner( 27 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 28 | ::tensorflow::SequenceExample* msg); 29 | 30 | } // namespace internal 31 | 32 | } // namespace tensorflow 33 | 34 | #endif // tensorflow_core_example_example_proto_IMPL_H_ 35 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/tensor_slice.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_tensor_slice_proto_H_ 3 | #define tensorflow_core_framework_tensor_slice_proto_H_ 4 | 5 | #include "tensorflow/core/framework/tensor_slice.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.TensorSliceProto.Extent 13 | string ProtoDebugString( 14 | const ::tensorflow::TensorSliceProto_Extent& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::TensorSliceProto_Extent& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::TensorSliceProto_Extent* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | // Message-text conversion for tensorflow.TensorSliceProto 23 | string ProtoDebugString( 24 | const ::tensorflow::TensorSliceProto& msg); 25 | string ProtoShortDebugString( 26 | const ::tensorflow::TensorSliceProto& msg); 27 | bool ProtoParseFromString( 28 | const string& s, 29 | ::tensorflow::TensorSliceProto* msg) 30 | TF_MUST_USE_RESULT; 31 | 32 | } // namespace tensorflow 33 | 34 | #endif // tensorflow_core_framework_tensor_slice_proto_H_ 35 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/saved_model/tag_constants.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef THIRD_PARTY_TENSORFLOW_CC_SAVED_MODEL_TAG_CONSTANTS_H_ 17 | #define THIRD_PARTY_TENSORFLOW_CC_SAVED_MODEL_TAG_CONSTANTS_H_ 18 | 19 | namespace tensorflow { 20 | 21 | /// Tag for the `gpu` graph. 22 | constexpr char kSavedModelTagGpu[] = "gpu"; 23 | 24 | /// Tag for the `serving` graph. 25 | constexpr char kSavedModelTagServe[] = "serve"; 26 | 27 | /// Tag for the `training` graph. 28 | constexpr char kSavedModelTagTrain[] = "train"; 29 | 30 | } // namespace tensorflow 31 | 32 | #endif // THIRD_PARTY_TENSORFLOW_CC_SAVED_MODEL_TAG_CONSTANTS_H_ 33 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/grappler/inputs/input_yielder.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_GRAPPLER_INPUTS_INPUT_YIELDER_H_ 17 | #define TENSORFLOW_GRAPPLER_INPUTS_INPUT_YIELDER_H_ 18 | 19 | namespace tensorflow { 20 | namespace grappler { 21 | 22 | struct GrapplerItem; 23 | 24 | // Abstract interface for yielding graphs that we want to optimize. 25 | class InputYielder { 26 | public: 27 | virtual ~InputYielder() {} 28 | 29 | virtual bool NextItem(GrapplerItem* item) = 0; 30 | }; 31 | 32 | } // end namespace grappler 33 | } // end namespace tensorflow 34 | 35 | #endif // TENSORFLOW_GRAPPLER_INPUTS_INPUT_YIELDER_H_ 36 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/kernels/inplace_ops_functor.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_KERNELS_INPLACE_FUNCTOR_H_ 17 | #define TENSORFLOW_KERNELS_INPLACE_FUNCTOR_H_ 18 | 19 | #include "tensorflow/core/framework/tensor.h" 20 | #include "tensorflow/core/lib/core/status.h" 21 | 22 | namespace tensorflow { 23 | namespace functor { 24 | 25 | template 26 | Status DoParallelConcat(const Device& device, const Tensor& value, int32 loc, 27 | Tensor* output); 28 | 29 | } // end namespace functor 30 | } // end namespace tensorflow 31 | 32 | #endif // TENSORFLOW_KERNELS_INPLACE_FUNCTOR_H_ 33 | -------------------------------------------------------------------------------- /libs/tensorflow/include/unsupported/Eigen/LevenbergMarquardt: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2009 Thomas Capricelli 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #ifndef EIGEN_LEVENBERGMARQUARDT_MODULE 11 | #define EIGEN_LEVENBERGMARQUARDT_MODULE 12 | 13 | // #include 14 | 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | #include 21 | 22 | /** 23 | * \defgroup LevenbergMarquardt_Module Levenberg-Marquardt module 24 | * 25 | * \code 26 | * #include 27 | * \endcode 28 | * 29 | * 30 | */ 31 | 32 | #include "Eigen/SparseCore" 33 | #ifndef EIGEN_PARSED_BY_DOXYGEN 34 | 35 | #include "src/LevenbergMarquardt/LMqrsolv.h" 36 | #include "src/LevenbergMarquardt/LMcovar.h" 37 | #include "src/LevenbergMarquardt/LMpar.h" 38 | 39 | #endif 40 | 41 | #include "src/LevenbergMarquardt/LevenbergMarquardt.h" 42 | #include "src/LevenbergMarquardt/LMonestep.h" 43 | 44 | 45 | #endif // EIGEN_LEVENBERGMARQUARDT_MODULE 46 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/framework/cc_op_gen.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef THIRD_PARTY_TENSORFLOW_CC_FRAMEWORK_CC_OP_GEN_H_ 17 | #define THIRD_PARTY_TENSORFLOW_CC_FRAMEWORK_CC_OP_GEN_H_ 18 | 19 | #include "tensorflow/core/framework/op_def.pb.h" 20 | #include "tensorflow/core/platform/types.h" 21 | 22 | namespace tensorflow { 23 | 24 | /// Result is written to files dot_h and dot_cc. 25 | void WriteCCOps(const OpList& ops, const string& dot_h_fname, 26 | const string& dot_cc_fname, const string& overrides_fnames); 27 | 28 | } // namespace tensorflow 29 | 30 | #endif // THIRD_PARTY_TENSORFLOW_CC_FRAMEWORK_CC_OP_GEN_H_ 31 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/windows/cpu_info.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_WINDOWS_CPU_INFO_H_ 17 | #define TENSORFLOW_PLATFORM_WINDOWS_CPU_INFO_H_ 18 | 19 | // included so __cpuidex function is available for GETCPUID on Windows 20 | #include 21 | 22 | // Byte order defines provided by gcc. MSVC doesn't define those so 23 | // we define them here. 24 | // We assume that all windows platform out there are little endian. 25 | #define __ORDER_LITTLE_ENDIAN__ 0x4d2 26 | #define __ORDER_BIG_ENDIAN__ 0x10e1 27 | #define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__ 28 | 29 | #endif // TENSORFLOW_PLATFORM_WINDOWS_CPU_INFO_H_ 30 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/util/memmapped_file_system.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_util_memmapped_file_system_proto_IMPL_H_ 3 | #define tensorflow_core_util_memmapped_file_system_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/lib/strings/proto_text_util.h" 6 | #include "tensorflow/core/lib/strings/scanner.h" 7 | #include "tensorflow/core/util/memmapped_file_system.pb.h" 8 | #include "tensorflow/core/util/memmapped_file_system.pb_text.h" 9 | 10 | namespace tensorflow { 11 | 12 | namespace internal { 13 | 14 | void AppendProtoDebugString( 15 | ::tensorflow::strings::ProtoTextOutput* o, 16 | const ::tensorflow::MemmappedFileSystemDirectoryElement& msg); 17 | bool ProtoParseFromScanner( 18 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 19 | ::tensorflow::MemmappedFileSystemDirectoryElement* msg); 20 | 21 | void AppendProtoDebugString( 22 | ::tensorflow::strings::ProtoTextOutput* o, 23 | const ::tensorflow::MemmappedFileSystemDirectory& msg); 24 | bool ProtoParseFromScanner( 25 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 26 | ::tensorflow::MemmappedFileSystemDirectory* msg); 27 | 28 | } // namespace internal 29 | 30 | } // namespace tensorflow 31 | 32 | #endif // tensorflow_core_util_memmapped_file_system_proto_IMPL_H_ 33 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/kernels/bitcast_op.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | // See docs in ../ops/array_ops.cc. 17 | 18 | #ifndef THIRD_PARTY_TENSORFLOW_CORE_KERNELS_BITCAST_OP_H_ 19 | #define THIRD_PARTY_TENSORFLOW_CORE_KERNELS_BITCAST_OP_H_ 20 | 21 | #include // for memcpy 22 | 23 | #include "tensorflow/core/framework/op_kernel.h" 24 | #include "tensorflow/core/framework/register_types.h" 25 | #include "tensorflow/core/framework/tensor.h" 26 | #include "tensorflow/core/framework/tensor_shape.h" 27 | #include "tensorflow/core/framework/types.h" 28 | #include "tensorflow/core/lib/core/casts.h" 29 | 30 | #endif // THIRD_PARTY_TENSORFLOW_CORE_KERNELS_BITCAST_OP_H_ 31 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/graph/types.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_GRAPH_TYPES_H_ 17 | #define TENSORFLOW_GRAPH_TYPES_H_ 18 | 19 | #include "tensorflow/core/lib/gtl/int_type.h" 20 | #include "tensorflow/core/platform/types.h" 21 | 22 | namespace tensorflow { 23 | 24 | // We model running time in microseconds. 25 | TF_LIB_GTL_DEFINE_INT_TYPE(Microseconds, int64); 26 | 27 | // We can also model running time in nanoseconds for more accuracy. 28 | TF_LIB_GTL_DEFINE_INT_TYPE(Nanoseconds, int64); 29 | 30 | // We model size in bytes. 31 | TF_LIB_GTL_DEFINE_INT_TYPE(Bytes, int64); 32 | 33 | } // namespace tensorflow 34 | 35 | #endif // TENSORFLOW_GRAPH_TYPES_H_ 36 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/grappler/inputs/utils.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_GRAPPLER_INPUTS_UTILS_H_ 17 | #define TENSORFLOW_GRAPPLER_INPUTS_UTILS_H_ 18 | 19 | #include 20 | #include 21 | 22 | #include "tensorflow/core/framework/graph.pb.h" 23 | #include "tensorflow/core/lib/core/status.h" 24 | 25 | namespace tensorflow { 26 | namespace grappler { 27 | 28 | bool FilesExist(const std::vector& files, 29 | std::vector* status = nullptr); 30 | bool FilesExist(const std::set& files); 31 | 32 | } // end namespace grappler 33 | } // end namespace tensorflow 34 | 35 | #endif // TENSORFLOW_GRAPPLER_INPUTS_UTILS_H_ 36 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/cuda_libdevice_path.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef THIRD_PARTY_TENSORFLOW_CORE_PLATFORM_CUDA_LIBDEVICE_PATH_H_ 17 | #define THIRD_PARTY_TENSORFLOW_CORE_PLATFORM_CUDA_LIBDEVICE_PATH_H_ 18 | 19 | #include "tensorflow/core/platform/types.h" 20 | 21 | namespace tensorflow { 22 | 23 | // Returns the root directory of the CUDA SDK, which contains sub-folders such 24 | // as bin, lib64, and nvvm. 25 | string CudaRoot(); 26 | 27 | // Returns the directory that contains nvvm libdevice files in the CUDA SDK. 28 | string LibdeviceRoot(); 29 | 30 | } // namespace tensorflow 31 | 32 | #endif // THIRD_PARTY_TENSORFLOW_CORE_PLATFORM_CUDA_LIBDEVICE_PATH_H_ 33 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/load_library.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_LOAD_LIBRARY_H_ 17 | #define TENSORFLOW_PLATFORM_LOAD_LIBRARY_H_ 18 | 19 | #include "tensorflow/core/lib/core/status.h" 20 | 21 | namespace tensorflow { 22 | 23 | namespace internal { 24 | 25 | Status LoadLibrary(const char* library_filename, void** handle); 26 | Status GetSymbolFromLibrary(void* handle, const char* symbol_name, 27 | void** symbol); 28 | string FormatLibraryFileName(const string& name, const string& version); 29 | 30 | } // namespace internal 31 | 32 | } // namespace tensorflow 33 | 34 | #endif // TENSORFLOW_PLATFORM_LOAD_LIBRARY_H_ 35 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/SparseQR: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // This Source Code Form is subject to the terms of the Mozilla 5 | // Public License v. 2.0. If a copy of the MPL was not distributed 6 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 | 8 | #ifndef EIGEN_SPARSEQR_MODULE_H 9 | #define EIGEN_SPARSEQR_MODULE_H 10 | 11 | #include "SparseCore" 12 | #include "OrderingMethods" 13 | #include "src/Core/util/DisableStupidWarnings.h" 14 | 15 | /** \defgroup SparseQR_Module SparseQR module 16 | * \brief Provides QR decomposition for sparse matrices 17 | * 18 | * This module provides a simplicial version of the left-looking Sparse QR decomposition. 19 | * The columns of the input matrix should be reordered to limit the fill-in during the 20 | * decomposition. Built-in methods (COLAMD, AMD) or external methods (METIS) can be used to this end. 21 | * See the \link OrderingMethods_Module OrderingMethods\endlink module for the list 22 | * of built-in and external ordering methods. 23 | * 24 | * \code 25 | * #include 26 | * \endcode 27 | * 28 | * 29 | */ 30 | 31 | #include "OrderingMethods" 32 | #include "src/SparseCore/SparseColEtree.h" 33 | #include "src/SparseQR/SparseQR.h" 34 | 35 | #include "src/Core/util/ReenableStupidWarnings.h" 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/graph/mkl_layout_pass.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | // A graph pass that rewrites graph for propagating MKL layout as a tensor 17 | 18 | #ifndef TENSORFLOW_GRAPH_MKL_LAYOUT_PASS_H_ 19 | #define TENSORFLOW_GRAPH_MKL_LAYOUT_PASS_H_ 20 | 21 | #ifdef INTEL_MKL 22 | 23 | #include 24 | #include 25 | #include "tensorflow/core/graph/graph.h" 26 | 27 | namespace tensorflow { 28 | // Interface to invoke the pass for unit test 29 | // 30 | // Returns true if and only if 'g' is mutated. 31 | extern bool RunMklLayoutRewritePass(std::unique_ptr* g); 32 | } // namespace tensorflow 33 | 34 | #endif 35 | 36 | #endif // TENSORFLOW_GRAPH_MKL_LAYOUT_PASS_H_ 37 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/default/fingerprint.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_CORE_PLATFORM_DEFAULT_FINGERPRINT_H_ 17 | #define TENSORFLOW_CORE_PLATFORM_DEFAULT_FINGERPRINT_H_ 18 | 19 | #include 20 | 21 | namespace tensorflow { 22 | 23 | inline uint64 Fingerprint64(const string& s) { 24 | return ::util::Fingerprint64(s); 25 | } 26 | 27 | inline Fprint128 Fingerprint128(const string& s) { 28 | const auto fingerprint = ::util::Fingerprint128(s); 29 | return {::util::Uint128Low64(fingerprint), 30 | ::util::Uint128High64(fingerprint)}; 31 | } 32 | 33 | } // namespace tensorflow 34 | 35 | #endif // TENSORFLOW_CORE_PLATFORM_DEFAULT_FINGERPRINT_H_ 36 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/framework/tensor_description.pb_text-impl.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_framework_tensor_description_proto_IMPL_H_ 3 | #define tensorflow_core_framework_tensor_description_proto_IMPL_H_ 4 | 5 | #include "tensorflow/core/framework/allocation_description.pb.h" 6 | #include "tensorflow/core/framework/allocation_description.pb_text-impl.h" 7 | #include "tensorflow/core/framework/tensor_description.pb.h" 8 | #include "tensorflow/core/framework/tensor_description.pb_text.h" 9 | #include "tensorflow/core/framework/tensor_shape.pb.h" 10 | #include "tensorflow/core/framework/tensor_shape.pb_text-impl.h" 11 | #include "tensorflow/core/framework/types.pb.h" 12 | #include "tensorflow/core/framework/types.pb_text-impl.h" 13 | #include "tensorflow/core/lib/strings/proto_text_util.h" 14 | #include "tensorflow/core/lib/strings/scanner.h" 15 | 16 | namespace tensorflow { 17 | 18 | namespace internal { 19 | 20 | void AppendProtoDebugString( 21 | ::tensorflow::strings::ProtoTextOutput* o, 22 | const ::tensorflow::TensorDescription& msg); 23 | bool ProtoParseFromScanner( 24 | ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, 25 | ::tensorflow::TensorDescription* msg); 26 | 27 | } // namespace internal 28 | 29 | } // namespace tensorflow 30 | 31 | #endif // tensorflow_core_framework_tensor_description_proto_IMPL_H_ 32 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/distributed_runtime/rpc/grpc_remote_master.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef THIRD_PARTY_TENSORFLOW_CORE_DISTRIBUTED_RUNTIME_RPC_GRPC_REMOTE_MASTER_H_ 17 | #define THIRD_PARTY_TENSORFLOW_CORE_DISTRIBUTED_RUNTIME_RPC_GRPC_REMOTE_MASTER_H_ 18 | 19 | #include "tensorflow/core/distributed_runtime/master_interface.h" 20 | #include "tensorflow/core/distributed_runtime/rpc/grpc_util.h" 21 | 22 | namespace tensorflow { 23 | // Returns a MasterInterface wrapped around the gRPC channel `channel`. 24 | MasterInterface* NewGrpcMaster(const SharedGrpcChannelPtr& channel); 25 | } // namespace tensorflow 26 | 27 | #endif // THIRD_PARTY_TENSORFLOW_CORE_DISTRIBUTED_RUNTIME_RPC_GRPC_REMOTE_MASTER_H_ 28 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/snappy.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_SNAPPY_H_ 17 | #define TENSORFLOW_PLATFORM_SNAPPY_H_ 18 | 19 | #include "tensorflow/core/platform/types.h" 20 | 21 | namespace tensorflow { 22 | namespace port { 23 | 24 | // Snappy compression/decompression support 25 | bool Snappy_Compress(const char* input, size_t length, string* output); 26 | 27 | bool Snappy_GetUncompressedLength(const char* input, size_t length, 28 | size_t* result); 29 | bool Snappy_Uncompress(const char* input, size_t length, char* output); 30 | 31 | } // namespace port 32 | } // namespace tensorflow 33 | 34 | #endif // TENSORFLOW_PLATFORM_SNAPPY_H_ 35 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/thread_annotations.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_THREAD_ANNOTATIONS_H_ 17 | #define TENSORFLOW_PLATFORM_THREAD_ANNOTATIONS_H_ 18 | 19 | #include "tensorflow/core/platform/types.h" 20 | 21 | #if defined(PLATFORM_GOOGLE) 22 | #include "tensorflow/core/platform/google/build_config/thread_annotations.h" 23 | #elif defined(PLATFORM_POSIX) || defined(PLATFORM_POSIX_ANDROID) || \ 24 | defined(PLATFORM_GOOGLE_ANDROID) || defined(PLATFORM_WINDOWS) 25 | #include "tensorflow/core/platform/default/thread_annotations.h" 26 | #else 27 | #error Define the appropriate PLATFORM_ macro for this platform 28 | #endif 29 | 30 | #endif // TENSORFLOW_PLATFORM_THREAD_ANNOTATIONS_H_ 31 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/jpeg.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_CORE_PLATFORM_JPEG_H_ 17 | #define TENSORFLOW_CORE_PLATFORM_JPEG_H_ 18 | 19 | #include "tensorflow/core/platform/platform.h" 20 | 21 | #if defined(PLATFORM_GOOGLE) 22 | #include "tensorflow/core/platform/google/build_config/jpeg.h" 23 | #elif (defined(PLATFORM_POSIX) && !defined(IS_MOBILE_PLATFORM)) || defined(PLATFORM_WINDOWS) 24 | #include 25 | #include 26 | #include 27 | #include 28 | extern "C" { 29 | #include "jerror.h" 30 | #include "jpeglib.h" 31 | } 32 | #else 33 | #error Define the appropriate PLATFORM_ macro for this platform 34 | #endif 35 | 36 | #endif // TENSORFLOW_CORE_PLATFORM_JPEG_H_ 37 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/graph/mkl_tfconversion_pass.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | // An optimization pass that inserts MklToTf conversion nodes in the graph 17 | 18 | #ifndef TENSORFLOW_CORE_GRAPH_MKL_TFCONVERSION_PASS_H_ 19 | #define TENSORFLOW_CORE_GRAPH_MKL_TFCONVERSION_PASS_H_ 20 | 21 | #ifdef INTEL_MKL 22 | 23 | #include 24 | #include 25 | #include "tensorflow/core/graph/graph.h" 26 | 27 | namespace tensorflow { 28 | // Interface to invoke the pass for unit test 29 | // 30 | // Returns true if and only if 'g' is mutated. 31 | extern bool InsertMklToTfConversionNodes(std::unique_ptr* g); 32 | } // namespace tensorflow 33 | 34 | #endif 35 | 36 | #endif // TENSORFLOW_CORE_GRAPH_MKL_TFCONVERSION_PASS_H_ 37 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/cpu_feature_guard.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_CPU_FEATURE_GUARD_H_ 17 | #define TENSORFLOW_PLATFORM_CPU_FEATURE_GUARD_H_ 18 | 19 | namespace tensorflow { 20 | namespace port { 21 | 22 | // Called by the framework when we expect heavy CPU computation and we want to 23 | // be sure that the code has been compiled to run optimally on the current 24 | // hardware. The first time it's called it will run lightweight checks of 25 | // available SIMD acceleration features and log warnings about any that aren't 26 | // used. 27 | void WarnAboutUnusedCPUFeatures(); 28 | 29 | } // namespace port 30 | } // namespace tensorflow 31 | 32 | #endif // TENSORFLOW_PLATFORM_CPU_FEATURE_GUARD_H_ 33 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/util/memmapped_file_system.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_util_memmapped_file_system_proto_H_ 3 | #define tensorflow_core_util_memmapped_file_system_proto_H_ 4 | 5 | #include "tensorflow/core/util/memmapped_file_system.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.MemmappedFileSystemDirectoryElement 13 | string ProtoDebugString( 14 | const ::tensorflow::MemmappedFileSystemDirectoryElement& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::MemmappedFileSystemDirectoryElement& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::MemmappedFileSystemDirectoryElement* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | // Message-text conversion for tensorflow.MemmappedFileSystemDirectory 23 | string ProtoDebugString( 24 | const ::tensorflow::MemmappedFileSystemDirectory& msg); 25 | string ProtoShortDebugString( 26 | const ::tensorflow::MemmappedFileSystemDirectory& msg); 27 | bool ProtoParseFromString( 28 | const string& s, 29 | ::tensorflow::MemmappedFileSystemDirectory* msg) 30 | TF_MUST_USE_RESULT; 31 | 32 | } // namespace tensorflow 33 | 34 | #endif // tensorflow_core_util_memmapped_file_system_proto_H_ 35 | -------------------------------------------------------------------------------- /libs/tensorflow/include/unsupported/Eigen/CXX11/src/ThreadPool/ThreadEnvironment.h: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2014 Benoit Steiner 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #ifndef EIGEN_CXX11_THREADPOOL_THREAD_ENVIRONMENT_H 11 | #define EIGEN_CXX11_THREADPOOL_THREAD_ENVIRONMENT_H 12 | 13 | namespace Eigen { 14 | 15 | struct StlThreadEnvironment { 16 | struct Task { 17 | std::function f; 18 | }; 19 | 20 | // EnvThread constructor must start the thread, 21 | // destructor must join the thread. 22 | class EnvThread { 23 | public: 24 | EnvThread(std::function f) : thr_(std::move(f)) {} 25 | ~EnvThread() { thr_.join(); } 26 | // This function is called when the threadpool is cancelled. 27 | void OnCancel() { } 28 | 29 | private: 30 | std::thread thr_; 31 | }; 32 | 33 | EnvThread* CreateThread(std::function f) { return new EnvThread(std::move(f)); } 34 | Task CreateTask(std::function f) { return Task{std::move(f)}; } 35 | void ExecuteTask(const Task& t) { t.f(); } 36 | }; 37 | 38 | } // namespace Eigen 39 | 40 | #endif // EIGEN_CXX11_THREADPOOL_THREAD_ENVIRONMENT_H 41 | -------------------------------------------------------------------------------- /example-basic/bin/py/model_builder.py: -------------------------------------------------------------------------------- 1 | # ============================================================================== 2 | ### IF YOU ARE RUNNING THIS IN SPYDER MAKE SURE TO USE A NEW CONSOLE EACH TIME 3 | ### TO CLEAR THE SESSION 4 | ### (press F6, and select 'Execute in a new dedicated Python console') 5 | 6 | # ============================================================================== 7 | # Simple script to generate & export tensorflow graph calculating c:=a*b 8 | # based on https://medium.com/jim-fleming/loading-a-tensorflow-graph-with-the-c-api-4caaff88463f#.63x5c9hhg 9 | # 10 | # Modified by Memo Akten to demonstrate ofxMSATensorFlow 11 | # http://github.com/memo/ofxMSATensorFlow 12 | # ============================================================================== 13 | 14 | 15 | 16 | import tensorflow as tf 17 | import shutil 18 | import os 19 | 20 | out_path = '../data/models' 21 | out_fname = 'model.pb' 22 | 23 | with tf.Session() as sess: 24 | a = tf.Variable(3.0, name='a') 25 | b = tf.Variable(4.0, name='b') 26 | c = tf.mul(a, b, name="c") 27 | 28 | sess.run(tf.initialize_all_variables()) 29 | 30 | print a.eval() 31 | print b.eval() 32 | print c.eval() 33 | 34 | # Delete output folder if it exists 35 | if os.path.exists(out_path): 36 | shutil.rmtree(out_path) 37 | 38 | # Write graph to disk 39 | tf.train.write_graph(sess.graph_def, out_path, out_fname, as_text=False) 40 | 41 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/stacktrace.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_CORE_PLATFORM_STACKTRACE_H_ 17 | #define TENSORFLOW_CORE_PLATFORM_STACKTRACE_H_ 18 | 19 | #include "tensorflow/core/platform/platform.h" 20 | 21 | // Include appropriate platform-dependent implementation. 22 | #if defined(PLATFORM_GOOGLE) 23 | #include "tensorflow/core/platform/google/stacktrace.h" 24 | #elif defined(PLATFORM_POSIX) || defined(PLATFORM_POSIX_ANDROID) || \ 25 | defined(PLATFORM_GOOGLE_ANDROID) || defined(PLATFORM_WINDOWS) 26 | #include "tensorflow/core/platform/default/stacktrace.h" 27 | #else 28 | #error Define the appropriate PLATFORM_ macro for this platform 29 | #endif 30 | 31 | #endif // TENSORFLOW_CORE_PLATFORM_STACKTRACE_H_ 32 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/default/integral_types.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_DEFAULT_INTEGRAL_TYPES_H_ 17 | #define TENSORFLOW_PLATFORM_DEFAULT_INTEGRAL_TYPES_H_ 18 | 19 | // IWYU pragma: private, include "third_party/tensorflow/core/platform/types.h" 20 | // IWYU pragma: friend third_party/tensorflow/core/platform/types.h 21 | 22 | namespace tensorflow { 23 | 24 | typedef signed char int8; 25 | typedef short int16; 26 | typedef int int32; 27 | typedef long long int64; 28 | 29 | typedef unsigned char uint8; 30 | typedef unsigned short uint16; 31 | typedef unsigned int uint32; 32 | typedef unsigned long long uint64; 33 | 34 | } // namespace tensorflow 35 | 36 | #endif // TENSORFLOW_PLATFORM_DEFAULT_INTEGRAL_TYPES_H_ 37 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/regexp.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_REGEXP_H_ 17 | #define TENSORFLOW_PLATFORM_REGEXP_H_ 18 | 19 | #include "tensorflow/core/platform/platform.h" 20 | #include "tensorflow/core/platform/types.h" 21 | 22 | #if defined(PLATFORM_GOOGLE) || defined(PLATFORM_GOOGLE_ANDROID) || \ 23 | defined(GOOGLE_RE2) 24 | #include "tensorflow/core/platform/google/build_config/re2.h" 25 | namespace tensorflow { 26 | typedef ::StringPiece RegexpStringPiece; 27 | } // namespace tensorflow 28 | 29 | #else 30 | 31 | #include "re2/re2.h" 32 | namespace tensorflow { 33 | typedef re2::StringPiece RegexpStringPiece; 34 | } // namespace tensorflow 35 | 36 | #endif 37 | 38 | #endif // TENSORFLOW_PLATFORM_REGEXP_H_ 39 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/src/Core/arch/AVX/TypeCasting.h: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2015 Benoit Steiner 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #ifndef EIGEN_TYPE_CASTING_AVX_H 11 | #define EIGEN_TYPE_CASTING_AVX_H 12 | 13 | namespace Eigen { 14 | 15 | namespace internal { 16 | 17 | // For now we use SSE to handle integers, so we can't use AVX instructions to cast 18 | // from int to float 19 | template <> 20 | struct type_casting_traits { 21 | enum { 22 | VectorizedCast = 0, 23 | SrcCoeffRatio = 1, 24 | TgtCoeffRatio = 1 25 | }; 26 | }; 27 | 28 | template <> 29 | struct type_casting_traits { 30 | enum { 31 | VectorizedCast = 0, 32 | SrcCoeffRatio = 1, 33 | TgtCoeffRatio = 1 34 | }; 35 | }; 36 | 37 | 38 | 39 | template<> EIGEN_STRONG_INLINE Packet8i pcast(const Packet8f& a) { 40 | return _mm256_cvtps_epi32(a); 41 | } 42 | 43 | template<> EIGEN_STRONG_INLINE Packet8f pcast(const Packet8i& a) { 44 | return _mm256_cvtepi32_ps(a); 45 | } 46 | 47 | } // end namespace internal 48 | 49 | } // end namespace Eigen 50 | 51 | #endif // EIGEN_TYPE_CASTING_AVX_H 52 | -------------------------------------------------------------------------------- /src/ofxMSATFLayerVisualizer.h: -------------------------------------------------------------------------------- 1 | /* 2 | very simple visualization of layers 3 | only really meaningful on single layer models, 4 | deeper networks need more complex visualization ( see http://arxiv.org/abs/1311.2901 ) 5 | 6 | only tested on MNIST. needs testing on other models 7 | 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "ofxMSATFIncludes.h" 13 | #include "ofxMSATFUtils.h" 14 | 15 | namespace msa { 16 | namespace tf { 17 | 18 | class ofxMSATensorFlow; 19 | 20 | class LayerVisualizer { 21 | public: 22 | 23 | // pass instance of session/graph to visualize 24 | // visualizes all layers with viz_layer_suffix in the layer name 25 | void setup(tensorflow::Session& session, const tensorflow::GraphDef& graph_def, string viz_layer_suffix); 26 | 27 | void setup(Session_ptr session, const GraphDef_ptr graph_def, string viz_layer_suffix) { setup(*session, *graph_def, viz_layer_suffix); } 28 | 29 | // draw all layers at (x,y) with total width w, and padding 30 | // return total height of whatever is drawn 31 | float draw(float x, float y, float w, float padding = 0.1) const; 32 | 33 | protected: 34 | // will use for visualizing weights. 35 | // inner storage is for each node of layer, outer storage is for layers 36 | vector< vector< std::shared_ptr > > weight_imgs; 37 | // vector< std::shared_ptr > bias_imgs; 38 | 39 | }; 40 | 41 | 42 | } // namespace tf 43 | } // namespace msa 44 | -------------------------------------------------------------------------------- /libs/tensorflow/include/Eigen/QR: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // This Source Code Form is subject to the terms of the Mozilla 5 | // Public License v. 2.0. If a copy of the MPL was not distributed 6 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 | 8 | #ifndef EIGEN_QR_MODULE_H 9 | #define EIGEN_QR_MODULE_H 10 | 11 | #include "Core" 12 | 13 | #include "src/Core/util/DisableStupidWarnings.h" 14 | 15 | #include "Cholesky" 16 | #include "Jacobi" 17 | #include "Householder" 18 | 19 | /** \defgroup QR_Module QR module 20 | * 21 | * 22 | * 23 | * This module provides various QR decompositions 24 | * This module also provides some MatrixBase methods, including: 25 | * - MatrixBase::householderQr() 26 | * - MatrixBase::colPivHouseholderQr() 27 | * - MatrixBase::fullPivHouseholderQr() 28 | * 29 | * \code 30 | * #include 31 | * \endcode 32 | */ 33 | 34 | #include "src/QR/HouseholderQR.h" 35 | #include "src/QR/FullPivHouseholderQR.h" 36 | #include "src/QR/ColPivHouseholderQR.h" 37 | #include "src/QR/CompleteOrthogonalDecomposition.h" 38 | #ifdef EIGEN_USE_LAPACKE 39 | #include "src/misc/lapacke.h" 40 | #include "src/QR/HouseholderQR_LAPACKE.h" 41 | #include "src/QR/ColPivHouseholderQR_LAPACKE.h" 42 | #endif 43 | 44 | #include "src/Core/util/ReenableStupidWarnings.h" 45 | 46 | #endif // EIGEN_QR_MODULE_H 47 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */ 48 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/notification.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_CORE_PLATFORM_NOTIFICATION_H_ 17 | #define TENSORFLOW_CORE_PLATFORM_NOTIFICATION_H_ 18 | 19 | #include "tensorflow/core/platform/platform.h" 20 | 21 | // Include appropriate platform-dependent implementations of Notification. 22 | #if defined(PLATFORM_GOOGLE) 23 | #include "tensorflow/core/platform/google/notification.h" 24 | #elif defined(PLATFORM_POSIX) || defined(PLATFORM_POSIX_ANDROID) || \ 25 | defined(PLATFORM_GOOGLE_ANDROID) || defined(PLATFORM_WINDOWS) 26 | #include "tensorflow/core/platform/default/notification.h" 27 | #else 28 | #error Define the appropriate PLATFORM_ macro for this platform 29 | #endif 30 | 31 | #endif // TENSORFLOW_CORE_PLATFORM_NOTIFICATION_H_ 32 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/denormal.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_DENORMAL_H_ 17 | #define TENSORFLOW_PLATFORM_DENORMAL_H_ 18 | 19 | #include "tensorflow/core/platform/macros.h" 20 | 21 | namespace tensorflow { 22 | namespace port { 23 | 24 | // While this class is active, denormal floating point numbers are flushed 25 | // to zero. The destructor restores the original flags. 26 | class ScopedFlushDenormal { 27 | public: 28 | ScopedFlushDenormal(); 29 | ~ScopedFlushDenormal(); 30 | 31 | private: 32 | bool flush_zero_mode_; 33 | bool denormals_zero_mode_; 34 | TF_DISALLOW_COPY_AND_ASSIGN(ScopedFlushDenormal); 35 | }; 36 | 37 | } // namespace port 38 | } // namespace tensorflow 39 | 40 | #endif // TENSORFLOW_PLATFORM_DENORMAL_H_ 41 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/protobuf/rewriter_config.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_protobuf_rewriter_config_proto_H_ 3 | #define tensorflow_core_protobuf_rewriter_config_proto_H_ 4 | 5 | #include "tensorflow/core/protobuf/rewriter_config.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Message-text conversion for tensorflow.AutoParallelOptions 13 | string ProtoDebugString( 14 | const ::tensorflow::AutoParallelOptions& msg); 15 | string ProtoShortDebugString( 16 | const ::tensorflow::AutoParallelOptions& msg); 17 | bool ProtoParseFromString( 18 | const string& s, 19 | ::tensorflow::AutoParallelOptions* msg) 20 | TF_MUST_USE_RESULT; 21 | 22 | // Enum text output for tensorflow.RewriterConfig.MemOptType 23 | const char* EnumName_RewriterConfig_MemOptType( 24 | ::tensorflow::RewriterConfig_MemOptType value); 25 | 26 | // Message-text conversion for tensorflow.RewriterConfig 27 | string ProtoDebugString( 28 | const ::tensorflow::RewriterConfig& msg); 29 | string ProtoShortDebugString( 30 | const ::tensorflow::RewriterConfig& msg); 31 | bool ProtoParseFromString( 32 | const string& s, 33 | ::tensorflow::RewriterConfig* msg) 34 | TF_MUST_USE_RESULT; 35 | 36 | } // namespace tensorflow 37 | 38 | #endif // tensorflow_core_protobuf_rewriter_config_proto_H_ 39 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/protobuf/tensor_bundle.pb_text.h: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT MODIFY 2 | #ifndef tensorflow_core_protobuf_tensor_bundle_proto_H_ 3 | #define tensorflow_core_protobuf_tensor_bundle_proto_H_ 4 | 5 | #include "tensorflow/core/protobuf/tensor_bundle.pb.h" 6 | #include "tensorflow/core/platform/macros.h" 7 | #include "tensorflow/core/platform/protobuf.h" 8 | #include "tensorflow/core/platform/types.h" 9 | 10 | namespace tensorflow { 11 | 12 | // Enum text output for tensorflow.BundleHeaderProto.Endianness 13 | const char* EnumName_BundleHeaderProto_Endianness( 14 | ::tensorflow::BundleHeaderProto_Endianness value); 15 | 16 | // Message-text conversion for tensorflow.BundleHeaderProto 17 | string ProtoDebugString( 18 | const ::tensorflow::BundleHeaderProto& msg); 19 | string ProtoShortDebugString( 20 | const ::tensorflow::BundleHeaderProto& msg); 21 | bool ProtoParseFromString( 22 | const string& s, 23 | ::tensorflow::BundleHeaderProto* msg) 24 | TF_MUST_USE_RESULT; 25 | 26 | // Message-text conversion for tensorflow.BundleEntryProto 27 | string ProtoDebugString( 28 | const ::tensorflow::BundleEntryProto& msg); 29 | string ProtoShortDebugString( 30 | const ::tensorflow::BundleEntryProto& msg); 31 | bool ProtoParseFromString( 32 | const string& s, 33 | ::tensorflow::BundleEntryProto* msg) 34 | TF_MUST_USE_RESULT; 35 | 36 | } // namespace tensorflow 37 | 38 | #endif // tensorflow_core_protobuf_tensor_bundle_proto_H_ 39 | -------------------------------------------------------------------------------- /libs/tensorflow/include/unsupported/Eigen/CXX11/TensorSymmetry: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2013 Christian Seiler 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #ifndef EIGEN_CXX11_TENSORSYMMETRY_MODULE 11 | #define EIGEN_CXX11_TENSORSYMMETRY_MODULE 12 | 13 | #include 14 | 15 | #include 16 | 17 | #include "src/util/CXX11Meta.h" 18 | 19 | /** \defgroup CXX11_TensorSymmetry_Module Tensor Symmetry Module 20 | * 21 | * This module provides a classes that allow for the definition of 22 | * symmetries w.r.t. tensor indices. 23 | * 24 | * Including this module will implicitly include the Tensor module. 25 | * 26 | * \code 27 | * #include 28 | * \endcode 29 | */ 30 | 31 | #include "src/TensorSymmetry/util/TemplateGroupTheory.h" 32 | #include "src/TensorSymmetry/Symmetry.h" 33 | #include "src/TensorSymmetry/StaticSymmetry.h" 34 | #include "src/TensorSymmetry/DynamicSymmetry.h" 35 | 36 | #include 37 | 38 | #endif // EIGEN_CXX11_TENSORSYMMETRY_MODULE 39 | 40 | /* 41 | * kate: space-indent on; indent-width 2; mixedindent off; indent-mode cstyle; 42 | */ 43 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/framework/scope_internal.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef THIRD_PARTY_TENSORFLOW_CC_FRAMEWORK_SCOPE_INTERNAL_H_ 17 | #define THIRD_PARTY_TENSORFLOW_CC_FRAMEWORK_SCOPE_INTERNAL_H_ 18 | 19 | #include "tensorflow/cc/framework/scope.h" 20 | 21 | namespace tensorflow { 22 | 23 | class ShapeRefiner; 24 | 25 | // NewInternalScope returns a new scope which doesn't take ownership of 26 | // graph, status, name_map, and refiner. 27 | // This is intended to enable the C API (which are used by other language 28 | // bindings) to create a Scope and access C++ functionality (i.e. gradients). 29 | Scope NewInternalScope(Graph* graph, Status* status, ShapeRefiner* refiner); 30 | 31 | } // namespace tensorflow 32 | 33 | #endif // THIRD_PARTY_TENSORFLOW_CC_FRAMEWORK_SCOPE_INTERNAL_H_ 34 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/core/platform/dynamic_annotations.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef TENSORFLOW_PLATFORM_DYNAMIC_ANNOTATIONS_H_ 17 | #define TENSORFLOW_PLATFORM_DYNAMIC_ANNOTATIONS_H_ 18 | 19 | #include "tensorflow/core/platform/platform.h" 20 | 21 | // Include appropriate platform-dependent implementation. 22 | #if defined(PLATFORM_GOOGLE) 23 | #include "tensorflow/core/platform/google/build_config/dynamic_annotations.h" 24 | #elif defined(PLATFORM_POSIX) || defined(PLATFORM_POSIX_ANDROID) || \ 25 | defined(PLATFORM_GOOGLE_ANDROID) || defined(PLATFORM_WINDOWS) 26 | #include "tensorflow/core/platform/default/dynamic_annotations.h" 27 | #else 28 | #error Define the appropriate PLATFORM_ macro for this platform 29 | #endif 30 | 31 | #endif // TENSORFLOW_PLATFORM_DYNAMIC_ANNOTATIONS_H_ 32 | -------------------------------------------------------------------------------- /libs/tensorflow/include/tensorflow/cc/framework/testutil.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ==============================================================================*/ 15 | 16 | #ifndef THIRD_PARTY_TENSORFLOW_CC_FRAMEWORK_TESTUTIL_H_ 17 | #define THIRD_PARTY_TENSORFLOW_CC_FRAMEWORK_TESTUTIL_H_ 18 | 19 | #include "tensorflow/cc/framework/ops.h" 20 | #include "tensorflow/cc/framework/scope.h" 21 | 22 | namespace tensorflow { 23 | namespace test { 24 | 25 | /// Computes the outputs listed in 'tensors', returns the tensors in 'out'. 26 | void GetTensors(const Scope& scope, OutputList tensors, 27 | std::vector* out); 28 | 29 | /// Computes the output 'tensor', returning the resulting tensor in 'out'. 30 | void GetTensor(const Scope& scope, Output tensor, Tensor* out); 31 | 32 | } // namespace test 33 | } // namespace tensorflow 34 | 35 | #endif // THIRD_PARTY_TENSORFLOW_CC_FRAMEWORK_TESTUTIL_H_ 36 | --------------------------------------------------------------------------------