├── .gitignore ├── .gitmodules ├── ACKNOWLEDGMENTS ├── AUTHORS ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md ├── LICENSE ├── README.md ├── RELEASE.md ├── WORKSPACE ├── bower.BUILD ├── configure ├── eigen.BUILD ├── jpeg.BUILD ├── navbar.md ├── png.BUILD ├── six.BUILD ├── tensorflow ├── BUILD ├── __init__.py ├── cc │ ├── BUILD │ ├── ops │ │ ├── cc_op_gen.cc │ │ ├── cc_op_gen.h │ │ ├── cc_op_gen_main.cc │ │ ├── const_op.cc │ │ ├── const_op.h │ │ └── standard_ops.h │ └── tutorials │ │ └── example_trainer.cc ├── contrib │ ├── BUILD │ ├── README.md │ ├── __init__.py │ ├── cmake │ │ ├── CMakeLists.txt │ │ ├── README.md │ │ ├── external │ │ │ ├── eigen.cmake │ │ │ ├── jpeg.cmake │ │ │ ├── png.cmake │ │ │ └── re2.cmake │ │ ├── install.cmake │ │ ├── patches │ │ │ └── jpeg │ │ │ │ └── CMakeLists.txt │ │ ├── tests.cmake │ │ ├── tf_cc_ops.cmake │ │ ├── tf_core_cpu.cmake │ │ ├── tf_core_direct_session.cmake │ │ ├── tf_core_framework.cmake │ │ ├── tf_core_kernels.cmake │ │ ├── tf_core_ops.cmake │ │ ├── tf_models.cmake │ │ ├── tf_stream_executor.cmake │ │ └── tf_tutorials.cmake │ ├── ctc │ │ ├── BUILD │ │ ├── __init__.py │ │ ├── ctc_decoder_ops_test.py │ │ ├── ctc_loss_op_test.py │ │ └── ctc_ops.py │ ├── distributions │ │ ├── BUILD │ │ ├── __init__.py │ │ └── python │ │ │ ├── __init__.py │ │ │ ├── kernel_tests │ │ │ ├── gaussian_conjugate_posteriors_test.py │ │ │ └── gaussian_test.py │ │ │ └── ops │ │ │ ├── gaussian.py │ │ │ └── gaussian_conjugate_posteriors.py │ ├── layers │ │ ├── BUILD │ │ ├── __init__.py │ │ └── python │ │ │ ├── framework │ │ │ ├── tensor_util.py │ │ │ └── tensor_util_test.py │ │ │ ├── layers │ │ │ ├── __init__.py │ │ │ ├── initializers.py │ │ │ ├── initializers_test.py │ │ │ ├── layers.py │ │ │ ├── layers_test.py │ │ │ ├── regularizers.py │ │ │ ├── regularizers_test.py │ │ │ ├── summaries.py │ │ │ └── summaries_test.py │ │ │ └── ops │ │ │ ├── __init__.py │ │ │ ├── loss_ops.py │ │ │ └── loss_ops_test.py │ ├── linear_optimizer │ │ ├── BUILD │ │ ├── __init__.py │ │ ├── kernels │ │ │ ├── BUILD │ │ │ ├── hinge-loss.h │ │ │ ├── logistic-loss.h │ │ │ ├── loss.h │ │ │ ├── loss_updaters_test.cc │ │ │ ├── resources.cc │ │ │ ├── resources.h │ │ │ ├── resources_test.cc │ │ │ ├── sdca_ops.cc │ │ │ └── squared-loss.h │ │ ├── ops │ │ │ └── sdca_ops.cc │ │ └── python │ │ │ ├── kernel_tests │ │ │ └── sdca_ops_test.py │ │ │ └── ops │ │ │ └── sdca_ops.py │ ├── testing │ │ ├── BUILD │ │ ├── __init__.py │ │ └── python │ │ │ └── framework │ │ │ └── test_util.py │ └── util │ │ ├── BUILD │ │ ├── __init__.py │ │ └── inspect_checkpoint.cc ├── core │ ├── BUILD │ ├── client │ │ ├── tensor_c_api.cc │ │ └── tensor_c_api_test.cc │ ├── common_runtime │ │ ├── constant_folding.cc │ │ ├── constant_folding.h │ │ ├── constant_folding_test.cc │ │ ├── copy_tensor.cc │ │ ├── copy_tensor.h │ │ ├── device.cc │ │ ├── device.h │ │ ├── device_factory.cc │ │ ├── device_factory.h │ │ ├── device_mgr.cc │ │ ├── device_mgr.h │ │ ├── device_set.cc │ │ ├── device_set.h │ │ ├── device_set_test.cc │ │ ├── direct_session.cc │ │ ├── direct_session.h │ │ ├── direct_session_test.cc │ │ ├── dma_helper.h │ │ ├── eigen_thread_pool.h │ │ ├── executor.cc │ │ ├── executor.h │ │ ├── function.cc │ │ ├── function.h │ │ ├── function_test.cc │ │ ├── gpu │ │ │ ├── gpu_allocator_retry.cc │ │ │ ├── gpu_allocator_retry.h │ │ │ ├── gpu_allocator_retry_test.cc │ │ │ ├── gpu_bfc_allocator.cc │ │ │ ├── gpu_bfc_allocator.h │ │ │ ├── gpu_bfc_allocator_test.cc │ │ │ ├── gpu_debug_allocator.cc │ │ │ ├── gpu_debug_allocator.h │ │ │ ├── gpu_debug_allocator_test.cc │ │ │ ├── gpu_device.cc │ │ │ ├── gpu_device.h │ │ │ ├── gpu_device_factory.cc │ │ │ ├── gpu_event_mgr.cc │ │ │ ├── gpu_event_mgr.h │ │ │ ├── gpu_event_mgr_test.cc │ │ │ ├── gpu_init.cc │ │ │ ├── gpu_init.h │ │ │ ├── gpu_stream_util.cc │ │ │ ├── gpu_stream_util.h │ │ │ ├── gpu_stream_util_test.cc │ │ │ ├── gpu_util.cc │ │ │ ├── gpu_util.h │ │ │ ├── gpu_util_platform_specific.cc │ │ │ ├── pool_allocator.cc │ │ │ ├── pool_allocator.h │ │ │ ├── pool_allocator_test.cc │ │ │ ├── process_state.cc │ │ │ ├── process_state.h │ │ │ └── visitable_allocator.h │ │ ├── gpu_device_context.h │ │ ├── graph_optimizer.cc │ │ ├── graph_optimizer.h │ │ ├── kernel_benchmark_testlib.cc │ │ ├── kernel_benchmark_testlib.h │ │ ├── local_device.cc │ │ ├── local_device.h │ │ ├── memory_types.cc │ │ ├── memory_types.h │ │ ├── memory_types_test.cc │ │ ├── pending_counts.h │ │ ├── pending_counts_test.cc │ │ ├── rendezvous_mgr.cc │ │ ├── rendezvous_mgr.h │ │ ├── session.cc │ │ ├── session_factory.cc │ │ ├── session_factory.h │ │ ├── session_options.cc │ │ ├── session_test.cc │ │ ├── simple_placer.cc │ │ ├── simple_placer.h │ │ ├── simple_placer_test.cc │ │ ├── step_stats_collector.cc │ │ ├── step_stats_collector.h │ │ ├── threadpool_device.cc │ │ ├── threadpool_device.h │ │ └── threadpool_device_factory.cc │ ├── distributed_runtime │ │ ├── BUILD │ │ ├── README.md │ │ ├── base_rendezvous_mgr.cc │ │ ├── base_rendezvous_mgr.h │ │ ├── build_graph_options.cc │ │ ├── build_graph_options.h │ │ ├── call_options.cc │ │ ├── call_options.h │ │ ├── call_options_test.cc │ │ ├── executor_test.cc │ │ ├── graph_mgr.cc │ │ ├── graph_mgr.h │ │ ├── master.cc │ │ ├── master.h │ │ ├── master_env.h │ │ ├── master_interface.h │ │ ├── master_session.cc │ │ ├── master_session.h │ │ ├── master_session_interface.h │ │ ├── master_test.cc │ │ ├── process_util.cc │ │ ├── process_util.h │ │ ├── remote_device.cc │ │ ├── remote_device.h │ │ ├── remote_device_test.cc │ │ ├── rendezvous_mgr_interface.h │ │ ├── rpc │ │ │ ├── BUILD │ │ │ ├── async_service_interface.h │ │ │ ├── grpc_call.h │ │ │ ├── grpc_channel.cc │ │ │ ├── grpc_channel.h │ │ │ ├── grpc_channel_test.cc │ │ │ ├── grpc_client_cq_tag.h │ │ │ ├── grpc_master_service.cc │ │ │ ├── grpc_master_service.h │ │ │ ├── grpc_remote_master.cc │ │ │ ├── grpc_remote_master.h │ │ │ ├── grpc_remote_worker.cc │ │ │ ├── grpc_remote_worker.h │ │ │ ├── grpc_server_lib.cc │ │ │ ├── grpc_server_lib_test.cc │ │ │ ├── grpc_session.cc │ │ │ ├── grpc_session.h │ │ │ ├── grpc_session_test.cc │ │ │ ├── grpc_tensorflow_server.cc │ │ │ ├── grpc_testlib.cc │ │ │ ├── grpc_testlib.h │ │ │ ├── grpc_testlib_ops.cc │ │ │ ├── grpc_testlib_server.cc │ │ │ ├── grpc_util.h │ │ │ ├── grpc_worker_cache.cc │ │ │ ├── grpc_worker_cache.h │ │ │ ├── grpc_worker_service.cc │ │ │ ├── grpc_worker_service.h │ │ │ ├── rpc_rendezvous_mgr.cc │ │ │ ├── rpc_rendezvous_mgr.h │ │ │ └── rpc_rendezvous_mgr_test.cc │ │ ├── server_lib.cc │ │ ├── server_lib.h │ │ ├── simple_graph_execution_state.cc │ │ ├── simple_graph_execution_state.h │ │ ├── worker_cache.h │ │ ├── worker_cache_logger.cc │ │ ├── worker_cache_logger.h │ │ ├── worker_cache_partial.cc │ │ ├── worker_cache_partial.h │ │ ├── worker_env.h │ │ └── worker_interface.h │ ├── example │ │ ├── example.proto │ │ └── feature.proto │ ├── framework │ │ ├── allocation_description.proto │ │ ├── allocator.cc │ │ ├── allocator.h │ │ ├── allocator_test.cc │ │ ├── attr_value.proto │ │ ├── attr_value_util.cc │ │ ├── attr_value_util.h │ │ ├── attr_value_util_test.cc │ │ ├── bfloat16.cc │ │ ├── bfloat16.h │ │ ├── bfloat16_test.cc │ │ ├── cancellation.cc │ │ ├── cancellation.h │ │ ├── cancellation_test.cc │ │ ├── control_flow.h │ │ ├── device_attributes.proto │ │ ├── device_base.cc │ │ ├── device_base.h │ │ ├── fake_input.cc │ │ ├── fake_input.h │ │ ├── function.cc │ │ ├── function.h │ │ ├── function.proto │ │ ├── function_test.cc │ │ ├── function_testlib.cc │ │ ├── function_testlib.h │ │ ├── graph.proto │ │ ├── graph_def_util.cc │ │ ├── graph_def_util.h │ │ ├── graph_def_util_test.cc │ │ ├── kernel_def.proto │ │ ├── kernel_def_builder.cc │ │ ├── kernel_def_builder.h │ │ ├── kernel_def_builder_test.cc │ │ ├── load_library.cc │ │ ├── log_memory.cc │ │ ├── log_memory.h │ │ ├── log_memory.proto │ │ ├── lookup_interface.cc │ │ ├── lookup_interface.h │ │ ├── memory_types.cc │ │ ├── memory_types.h │ │ ├── memory_types_test.cc │ │ ├── node_def_builder.cc │ │ ├── node_def_builder.h │ │ ├── node_def_builder_test.cc │ │ ├── node_def_util.cc │ │ ├── node_def_util.h │ │ ├── node_def_util_test.cc │ │ ├── numeric_op.h │ │ ├── numeric_types.h │ │ ├── op.cc │ │ ├── op.h │ │ ├── op_compatibility_test.cc │ │ ├── op_def.proto │ │ ├── op_def_builder.cc │ │ ├── op_def_builder.h │ │ ├── op_def_builder_test.cc │ │ ├── op_def_util.cc │ │ ├── op_def_util.h │ │ ├── op_def_util_test.cc │ │ ├── op_gen_lib.cc │ │ ├── op_gen_lib.h │ │ ├── op_kernel.cc │ │ ├── op_kernel.h │ │ ├── op_kernel_test.cc │ │ ├── op_segment.cc │ │ ├── op_segment.h │ │ ├── op_segment_test.cc │ │ ├── partial_tensor_shape.cc │ │ ├── partial_tensor_shape.h │ │ ├── partial_tensor_shape_test.cc │ │ ├── queue_interface.h │ │ ├── reader_interface.h │ │ ├── reader_op_kernel.cc │ │ ├── reader_op_kernel.h │ │ ├── register_types.h │ │ ├── rendezvous.cc │ │ ├── rendezvous.h │ │ ├── rendezvous_test.cc │ │ ├── resource_mgr.cc │ │ ├── resource_mgr.h │ │ ├── resource_mgr_test.cc │ │ ├── step_stats.proto │ │ ├── summary.proto │ │ ├── tensor.cc │ │ ├── tensor.h │ │ ├── tensor.proto │ │ ├── tensor_description.proto │ │ ├── tensor_reference.cc │ │ ├── tensor_reference.h │ │ ├── tensor_shape.cc │ │ ├── tensor_shape.h │ │ ├── tensor_shape.proto │ │ ├── tensor_shape_test.cc │ │ ├── tensor_slice.cc │ │ ├── tensor_slice.h │ │ ├── tensor_slice.proto │ │ ├── tensor_slice_test.cc │ │ ├── tensor_test.cc │ │ ├── tensor_testutil.cc │ │ ├── tensor_testutil.h │ │ ├── tensor_types.h │ │ ├── tensor_util.cc │ │ ├── tensor_util.h │ │ ├── tensor_util_test.cc │ │ ├── tracking_allocator.cc │ │ ├── tracking_allocator.h │ │ ├── tracking_allocator_test.cc │ │ ├── type_index.h │ │ ├── type_traits.h │ │ ├── types.cc │ │ ├── types.h │ │ ├── types.proto │ │ ├── types_test.cc │ │ ├── unique_tensor_references.cc │ │ ├── unique_tensor_references.h │ │ ├── unique_tensor_references_test.cc │ │ ├── variable.proto │ │ ├── versions.cc │ │ ├── versions.h │ │ └── versions.proto │ ├── graph │ │ ├── algorithm.cc │ │ ├── algorithm.h │ │ ├── algorithm_test.cc │ │ ├── colors.cc │ │ ├── colors.h │ │ ├── costmodel.cc │ │ ├── costmodel.h │ │ ├── default_device.h │ │ ├── dot.cc │ │ ├── dot.h │ │ ├── edgeset.cc │ │ ├── edgeset.h │ │ ├── edgeset_test.cc │ │ ├── equal_graph_def.cc │ │ ├── equal_graph_def.h │ │ ├── equal_graph_def_test.cc │ │ ├── graph.cc │ │ ├── graph.h │ │ ├── graph_constructor.cc │ │ ├── graph_constructor.h │ │ ├── graph_constructor_test.cc │ │ ├── graph_def_builder.cc │ │ ├── graph_def_builder.h │ │ ├── graph_def_builder_test.cc │ │ ├── graph_partition.cc │ │ ├── graph_partition.h │ │ ├── graph_partition_test.cc │ │ ├── graph_test.cc │ │ ├── node_builder.cc │ │ ├── node_builder.h │ │ ├── node_builder_test.cc │ │ ├── optimizer_cse.cc │ │ ├── optimizer_cse.h │ │ ├── optimizer_cse_test.cc │ │ ├── subgraph.cc │ │ ├── subgraph.h │ │ ├── subgraph_test.cc │ │ ├── tensor_id.cc │ │ ├── tensor_id.h │ │ ├── tensor_id_test.cc │ │ ├── testlib.cc │ │ ├── testlib.h │ │ ├── types.h │ │ ├── validate.cc │ │ ├── validate.h │ │ └── validate_test.cc │ ├── kernels │ │ ├── BUILD │ │ ├── adjust_contrast_op.cc │ │ ├── adjust_contrast_op.h │ │ ├── adjust_contrast_op_benchmark_test.cc │ │ ├── adjust_contrast_op_gpu.cu.cc │ │ ├── adjust_contrast_op_test.cc │ │ ├── aggregate_ops.cc │ │ ├── aggregate_ops.h │ │ ├── aggregate_ops_cpu.h │ │ ├── aggregate_ops_gpu.cu.cc │ │ ├── argmax_op.cc │ │ ├── argmax_op.h │ │ ├── argmax_op_gpu.cu.cc │ │ ├── assign_op.h │ │ ├── attention_ops.cc │ │ ├── avgpooling_op.cc │ │ ├── avgpooling_op.h │ │ ├── avgpooling_op_gpu.cu.cc │ │ ├── batch_matmul_op.cc │ │ ├── batch_norm_op.cc │ │ ├── batch_norm_op.h │ │ ├── batch_norm_op_gpu.cu.cc │ │ ├── bcast_ops.cc │ │ ├── bias_op.cc │ │ ├── bias_op.h │ │ ├── bias_op_gpu.cu.cc │ │ ├── bias_op_gpu.h │ │ ├── binary_linalg_ops_common.cc │ │ ├── binary_linalg_ops_common.h │ │ ├── bitcast_op.cc │ │ ├── bitcast_op.h │ │ ├── bounds_check.h │ │ ├── candidate_sampler_ops.cc │ │ ├── cast_op.cc │ │ ├── cast_op.h │ │ ├── cast_op_gpu.cu.cc │ │ ├── cast_op_test.cc │ │ ├── check_numerics_op.cc │ │ ├── check_numerics_op_gpu.cu.cc │ │ ├── cholesky_op.cc │ │ ├── colorspace_op.cc │ │ ├── colorspace_op.h │ │ ├── colorspace_op_gpu.cu.cc │ │ ├── colorspace_op_test.cc │ │ ├── concat_lib.h │ │ ├── concat_lib_cpu.cc │ │ ├── concat_lib_gpu.cu.cc │ │ ├── concat_op.cc │ │ ├── concat_op_test.cc │ │ ├── constant_op.cc │ │ ├── constant_op.h │ │ ├── constant_op_gpu.cu.cc │ │ ├── constant_op_test.cc │ │ ├── control_flow_ops.cc │ │ ├── control_flow_ops.h │ │ ├── control_flow_ops_test.cc │ │ ├── conv_2d.h │ │ ├── conv_grad_ops.cc │ │ ├── conv_ops.cc │ │ ├── conv_ops_gpu.cu.cc │ │ ├── conv_ops_gpu.h │ │ ├── conv_ops_gpu_2.cu.cc │ │ ├── conv_ops_gpu_3.cu.cc │ │ ├── conv_ops_gpu_matmul.cu.cc │ │ ├── count_up_to_op.cc │ │ ├── cross_op.cc │ │ ├── cross_op.h │ │ ├── cross_op_gpu.cu.cc │ │ ├── cross_op_test.cc │ │ ├── ctc_decoder_ops.cc │ │ ├── ctc_loss_op.cc │ │ ├── cwise_op_abs.cc │ │ ├── cwise_op_add.cc │ │ ├── cwise_op_ceil.cc │ │ ├── cwise_op_complex.cc │ │ ├── cwise_op_conj.cc │ │ ├── cwise_op_cos.cc │ │ ├── cwise_op_digamma.cc │ │ ├── cwise_op_div.cc │ │ ├── cwise_op_equal_to.cc │ │ ├── cwise_op_erf.cc │ │ ├── cwise_op_erfc.cc │ │ ├── cwise_op_exp.cc │ │ ├── cwise_op_floor.cc │ │ ├── cwise_op_gpu_abs.cu.cc │ │ ├── cwise_op_gpu_add.cu.cc │ │ ├── cwise_op_gpu_ceil.cu.cc │ │ ├── cwise_op_gpu_complex.cu.cc │ │ ├── cwise_op_gpu_conj.cu.cc │ │ ├── cwise_op_gpu_cos.cu.cc │ │ ├── cwise_op_gpu_digamma.cu.cc │ │ ├── cwise_op_gpu_div.cu.cc │ │ ├── cwise_op_gpu_equal_to.cu.cc │ │ ├── cwise_op_gpu_erf.cu.cc │ │ ├── cwise_op_gpu_erfc.cu.cc │ │ ├── cwise_op_gpu_exp.cu.cc │ │ ├── cwise_op_gpu_floor.cu.cc │ │ ├── cwise_op_gpu_greater.cu.cc │ │ ├── cwise_op_gpu_greater_equal.cu.cc │ │ ├── cwise_op_gpu_imag.cu.cc │ │ ├── cwise_op_gpu_inverse.cu.cc │ │ ├── cwise_op_gpu_isfinite.cu.cc │ │ ├── cwise_op_gpu_isinf.cu.cc │ │ ├── cwise_op_gpu_isnan.cu.cc │ │ ├── cwise_op_gpu_less.cu.cc │ │ ├── cwise_op_gpu_less_equal.cu.cc │ │ ├── cwise_op_gpu_lgamma.cu.cc │ │ ├── cwise_op_gpu_log.cu.cc │ │ ├── cwise_op_gpu_logical_and.cu.cc │ │ ├── cwise_op_gpu_logical_not.cu.cc │ │ ├── cwise_op_gpu_logical_or.cu.cc │ │ ├── cwise_op_gpu_maximum.cu.cc │ │ ├── cwise_op_gpu_minimum.cu.cc │ │ ├── cwise_op_gpu_mod.cu.cc │ │ ├── cwise_op_gpu_mul.cu.cc │ │ ├── cwise_op_gpu_neg.cu.cc │ │ ├── cwise_op_gpu_not_equal_to.cu.cc │ │ ├── cwise_op_gpu_pow.cu.cc │ │ ├── cwise_op_gpu_real.cu.cc │ │ ├── cwise_op_gpu_rsqrt.cu.cc │ │ ├── cwise_op_gpu_select.cu.cc │ │ ├── cwise_op_gpu_sigmoid.cu.cc │ │ ├── cwise_op_gpu_sign.cu.cc │ │ ├── cwise_op_gpu_sin.cu.cc │ │ ├── cwise_op_gpu_sqrt.cu.cc │ │ ├── cwise_op_gpu_square.cu.cc │ │ ├── cwise_op_gpu_squared_difference.cu.cc │ │ ├── cwise_op_gpu_sub.cu.cc │ │ ├── cwise_op_gpu_tanh.cu.cc │ │ ├── cwise_op_greater.cc │ │ ├── cwise_op_greater_equal.cc │ │ ├── cwise_op_imag.cc │ │ ├── cwise_op_inverse.cc │ │ ├── cwise_op_isfinite.cc │ │ ├── cwise_op_isinf.cc │ │ ├── cwise_op_isnan.cc │ │ ├── cwise_op_less.cc │ │ ├── cwise_op_less_equal.cc │ │ ├── cwise_op_lgamma.cc │ │ ├── cwise_op_log.cc │ │ ├── cwise_op_logical_and.cc │ │ ├── cwise_op_logical_not.cc │ │ ├── cwise_op_logical_or.cc │ │ ├── cwise_op_maximum.cc │ │ ├── cwise_op_minimum.cc │ │ ├── cwise_op_mod.cc │ │ ├── cwise_op_mul.cc │ │ ├── cwise_op_neg.cc │ │ ├── cwise_op_not_equal_to.cc │ │ ├── cwise_op_pow.cc │ │ ├── cwise_op_real.cc │ │ ├── cwise_op_rsqrt.cc │ │ ├── cwise_op_select.cc │ │ ├── cwise_op_sigmoid.cc │ │ ├── cwise_op_sign.cc │ │ ├── cwise_op_sin.cc │ │ ├── cwise_op_sqrt.cc │ │ ├── cwise_op_square.cc │ │ ├── cwise_op_squared_difference.cc │ │ ├── cwise_op_sub.cc │ │ ├── cwise_op_tanh.cc │ │ ├── cwise_ops.h │ │ ├── cwise_ops_common.cc │ │ ├── cwise_ops_common.h │ │ ├── cwise_ops_gpu_common.cu.h │ │ ├── cwise_ops_test.cc │ │ ├── decode_csv_op.cc │ │ ├── decode_jpeg_op.cc │ │ ├── decode_png_op.cc │ │ ├── decode_raw_op.cc │ │ ├── dense_update_ops.cc │ │ ├── dense_update_ops.h │ │ ├── dense_update_ops_gpu.cu.cc │ │ ├── depthtospace_op.cc │ │ ├── depthwise_conv_op.cc │ │ ├── depthwise_conv_op.h │ │ ├── depthwise_conv_op_gpu.cu.cc │ │ ├── determinant_op.cc │ │ ├── diag_op.cc │ │ ├── draw_bounding_box_op.cc │ │ ├── dynamic_partition_op.cc │ │ ├── dynamic_partition_op_test.cc │ │ ├── dynamic_stitch_op.cc │ │ ├── dynamic_stitch_op_test.cc │ │ ├── edit_distance_op.cc │ │ ├── encode_jpeg_op.cc │ │ ├── encode_png_op.cc │ │ ├── example_parsing_ops.cc │ │ ├── fact_op.cc │ │ ├── fft_ops.cc │ │ ├── fifo_queue.cc │ │ ├── fifo_queue.h │ │ ├── fifo_queue_op.cc │ │ ├── fill_functor.h │ │ ├── fixed_length_record_reader_op.cc │ │ ├── gather_op.cc │ │ ├── gather_op.h │ │ ├── gather_op_gpu.cu.cc │ │ ├── gather_op_test.cc │ │ ├── identity_op.cc │ │ ├── identity_op.h │ │ ├── identity_op_test.cc │ │ ├── identity_reader_op.cc │ │ ├── in_topk_op.cc │ │ ├── initializable_lookup_table.cc │ │ ├── initializable_lookup_table.h │ │ ├── l2loss_op.cc │ │ ├── l2loss_op.h │ │ ├── l2loss_op_gpu.cu.cc │ │ ├── linalg_ops_common.cc │ │ ├── linalg_ops_common.h │ │ ├── listdiff_op.cc │ │ ├── logging_ops.cc │ │ ├── logging_ops_test.cc │ │ ├── lookup_table_init_op.cc │ │ ├── lookup_table_op.cc │ │ ├── lookup_table_op.h │ │ ├── lookup_util.cc │ │ ├── lookup_util.h │ │ ├── lrn_op.cc │ │ ├── lrn_op_test.cc │ │ ├── matching_files_op.cc │ │ ├── matmul_op.cc │ │ ├── matmul_op.h │ │ ├── matmul_op_gpu.cu.cc │ │ ├── matmul_op_test.cc │ │ ├── matrix_inverse_op.cc │ │ ├── matrix_solve_ls_op.cc │ │ ├── matrix_solve_op.cc │ │ ├── matrix_triangular_solve_op.cc │ │ ├── maxpooling_op.cc │ │ ├── maxpooling_op.h │ │ ├── maxpooling_op_gpu.cu.cc │ │ ├── maxpooling_op_gpu.h │ │ ├── nn_ops_test.cc │ │ ├── no_op.cc │ │ ├── no_op.h │ │ ├── one_hot_op.cc │ │ ├── one_hot_op.h │ │ ├── one_hot_op_gpu.cu.cc │ │ ├── ops_testutil.cc │ │ ├── ops_testutil.h │ │ ├── ops_util.cc │ │ ├── ops_util.h │ │ ├── ops_util_test.cc │ │ ├── pack_op.cc │ │ ├── pad_op.cc │ │ ├── pad_op.h │ │ ├── pad_op_gpu.cu.cc │ │ ├── padding_fifo_queue.cc │ │ ├── padding_fifo_queue.h │ │ ├── padding_fifo_queue_op.cc │ │ ├── pooling_ops_common.cc │ │ ├── pooling_ops_common.h │ │ ├── pooling_ops_common_gpu.h │ │ ├── queue_base.cc │ │ ├── queue_base.h │ │ ├── queue_op.h │ │ ├── queue_ops.cc │ │ ├── random_crop_op.cc │ │ ├── random_op.cc │ │ ├── random_op.h │ │ ├── random_op_gpu.cu.cc │ │ ├── random_op_test.cc │ │ ├── random_shuffle_op.cc │ │ ├── random_shuffle_queue_op.cc │ │ ├── range_sampler.cc │ │ ├── range_sampler.h │ │ ├── range_sampler_test.cc │ │ ├── reader_base.cc │ │ ├── reader_base.h │ │ ├── reader_base.proto │ │ ├── reader_ops.cc │ │ ├── reduction_ops.h │ │ ├── reduction_ops_all.cc │ │ ├── reduction_ops_any.cc │ │ ├── reduction_ops_common.cc │ │ ├── reduction_ops_common.h │ │ ├── reduction_ops_gpu.cu.cc │ │ ├── reduction_ops_max.cc │ │ ├── reduction_ops_mean.cc │ │ ├── reduction_ops_min.cc │ │ ├── reduction_ops_prod.cc │ │ ├── reduction_ops_sum.cc │ │ ├── reduction_ops_test.cc │ │ ├── relu_op.cc │ │ ├── relu_op.h │ │ ├── relu_op_gpu.cu.cc │ │ ├── reshape_op.cc │ │ ├── reshape_op.h │ │ ├── resize_area_op.cc │ │ ├── resize_bicubic_op.cc │ │ ├── resize_bilinear_op.cc │ │ ├── resize_bilinear_op_test.cc │ │ ├── resize_nearest_neighbor_op.cc │ │ ├── resize_nearest_neighbor_op_benchmark_test.cc │ │ ├── resize_nearest_neighbor_op_gpu.cu.cc │ │ ├── resize_nearest_neighbor_op_gpu.h │ │ ├── resize_nearest_neighbor_op_test.cc │ │ ├── restore_op.cc │ │ ├── restore_op_test.cc │ │ ├── reverse_op.cc │ │ ├── reverse_op.h │ │ ├── reverse_op_gpu.cu.cc │ │ ├── reverse_op_test.cc │ │ ├── reverse_sequence_op.cc │ │ ├── reverse_sequence_op.h │ │ ├── reverse_sequence_op_gpu.cu.cc │ │ ├── sample_distorted_bounding_box_op.cc │ │ ├── save_op.cc │ │ ├── save_op_test.cc │ │ ├── save_restore_tensor.cc │ │ ├── save_restore_tensor.h │ │ ├── scatter_op.cc │ │ ├── scatter_op.h │ │ ├── scatter_op_gpu.cu.cc │ │ ├── scatter_op_test.cc │ │ ├── segment_reduction_ops.cc │ │ ├── segment_reduction_ops_test.cc │ │ ├── self_adjoint_eig_op.cc │ │ ├── sendrecv_ops.cc │ │ ├── sendrecv_ops.h │ │ ├── sequence_ops.cc │ │ ├── serialize_sparse_op.cc │ │ ├── shape_ops.cc │ │ ├── slice_op.cc │ │ ├── slice_op.h │ │ ├── slice_op_gpu.cu.cc │ │ ├── slice_op_test.cc │ │ ├── softmax_op.cc │ │ ├── softmax_op.h │ │ ├── softmax_op_gpu.cu.cc │ │ ├── softplus_op.cc │ │ ├── softplus_op.h │ │ ├── softplus_op_gpu.cu.cc │ │ ├── softsign_op.cc │ │ ├── softsign_op.h │ │ ├── softsign_op_gpu.cu.cc │ │ ├── spacetodepth_op.cc │ │ ├── sparse_concat_op.cc │ │ ├── sparse_matmul_op.cc │ │ ├── sparse_matmul_op_test.cc │ │ ├── sparse_reorder_op.cc │ │ ├── sparse_split_op.cc │ │ ├── sparse_tensor_dense_matmul_op.cc │ │ ├── sparse_tensor_dense_matmul_op.h │ │ ├── sparse_tensor_dense_matmul_op_gpu.cu.cc │ │ ├── sparse_tensor_dense_matmul_op_test.cc │ │ ├── sparse_to_dense_op.cc │ │ ├── sparse_to_dense_op_test.cc │ │ ├── sparse_xent_op.cc │ │ ├── sparse_xent_op.h │ │ ├── sparse_xent_op_gpu.cu.cc │ │ ├── sparse_xent_op_test.cc │ │ ├── split_lib.h │ │ ├── split_lib_cpu.cc │ │ ├── split_lib_gpu.cu.cc │ │ ├── split_op.cc │ │ ├── stack_ops.cc │ │ ├── string_to_hash_bucket_op.cc │ │ ├── string_to_number_op.cc │ │ ├── summary_image_op.cc │ │ ├── summary_image_op_test.cc │ │ ├── summary_op.cc │ │ ├── summary_op_test.cc │ │ ├── tensor_array.cc │ │ ├── tensor_array.h │ │ ├── tensor_array_ops.cc │ │ ├── text_line_reader_op.cc │ │ ├── tf_record_reader_op.cc │ │ ├── tile_ops.cc │ │ ├── tile_ops.h │ │ ├── tile_ops_gpu.cu.cc │ │ ├── topk_op.cc │ │ ├── training_ops.cc │ │ ├── training_ops.h │ │ ├── training_ops_gpu.cu.cc │ │ ├── training_ops_test.cc │ │ ├── transpose_functor.h │ │ ├── transpose_functor_cpu.cc │ │ ├── transpose_functor_gpu.cu.cc │ │ ├── transpose_op.cc │ │ ├── transpose_op.h │ │ ├── typed_queue.h │ │ ├── unique_op.cc │ │ ├── unique_op_test.cc │ │ ├── unpack_op.cc │ │ ├── variable_ops.cc │ │ ├── variable_ops.h │ │ ├── where_op.cc │ │ ├── where_op.h │ │ ├── whole_file_read_ops.cc │ │ ├── xent_op.cc │ │ ├── xent_op.h │ │ ├── xent_op_gpu.cu.cc │ │ └── xent_op_test.cc │ ├── lib │ │ ├── core │ │ │ ├── arena.cc │ │ │ ├── arena.h │ │ │ ├── arena_test.cc │ │ │ ├── bit_cast_test.cc │ │ │ ├── bits.h │ │ │ ├── blocking_counter.h │ │ │ ├── blocking_counter_test.cc │ │ │ ├── casts.h │ │ │ ├── coding.cc │ │ │ ├── coding.h │ │ │ ├── coding_test.cc │ │ │ ├── command_line_flags.cc │ │ │ ├── command_line_flags.h │ │ │ ├── error_codes.proto │ │ │ ├── errors.h │ │ │ ├── notification.h │ │ │ ├── notification_test.cc │ │ │ ├── raw_coding.h │ │ │ ├── refcount.h │ │ │ ├── refcount_test.cc │ │ │ ├── status.cc │ │ │ ├── status.h │ │ │ ├── status_test.cc │ │ │ ├── status_test_util.h │ │ │ ├── stringpiece.cc │ │ │ ├── stringpiece.h │ │ │ ├── stringpiece_test.cc │ │ │ ├── threadpool.cc │ │ │ ├── threadpool.h │ │ │ └── threadpool_test.cc │ │ ├── gtl │ │ │ ├── array_slice.h │ │ │ ├── array_slice_internal.h │ │ │ ├── array_slice_test.cc │ │ │ ├── edit_distance.h │ │ │ ├── edit_distance_test.cc │ │ │ ├── inlined_vector.h │ │ │ ├── inlined_vector_test.cc │ │ │ ├── int_type.h │ │ │ ├── int_type_test.cc │ │ │ ├── iterator_range.h │ │ │ ├── iterator_range_test.cc │ │ │ ├── manual_constructor.h │ │ │ ├── manual_constructor_test.cc │ │ │ ├── map_util.h │ │ │ ├── map_util_test.cc │ │ │ ├── stl_util.h │ │ │ ├── top_n.h │ │ │ └── top_n_test.cc │ │ ├── hash │ │ │ ├── crc32c.cc │ │ │ ├── crc32c.h │ │ │ ├── crc32c_test.cc │ │ │ ├── hash.cc │ │ │ ├── hash.h │ │ │ └── hash_test.cc │ │ ├── histogram │ │ │ ├── histogram.cc │ │ │ ├── histogram.h │ │ │ └── histogram_test.cc │ │ ├── io │ │ │ ├── block.cc │ │ │ ├── block.h │ │ │ ├── block_builder.cc │ │ │ ├── block_builder.h │ │ │ ├── format.cc │ │ │ ├── format.h │ │ │ ├── inputbuffer.cc │ │ │ ├── inputbuffer.h │ │ │ ├── inputbuffer_test.cc │ │ │ ├── iterator.cc │ │ │ ├── iterator.h │ │ │ ├── match.cc │ │ │ ├── match.h │ │ │ ├── match_test.cc │ │ │ ├── path.cc │ │ │ ├── path.h │ │ │ ├── path_test.cc │ │ │ ├── record_reader.cc │ │ │ ├── record_reader.h │ │ │ ├── record_writer.cc │ │ │ ├── record_writer.h │ │ │ ├── recordio_test.cc │ │ │ ├── table.cc │ │ │ ├── table.h │ │ │ ├── table_builder.cc │ │ │ ├── table_builder.h │ │ │ ├── table_format.txt │ │ │ ├── table_options.h │ │ │ ├── table_test.cc │ │ │ ├── two_level_iterator.cc │ │ │ └── two_level_iterator.h │ │ ├── jpeg │ │ │ ├── jpeg_handle.cc │ │ │ ├── jpeg_handle.h │ │ │ ├── jpeg_mem.cc │ │ │ ├── jpeg_mem.h │ │ │ ├── jpeg_mem_unittest.cc │ │ │ └── testdata │ │ │ │ ├── bad_huffman.jpg │ │ │ │ ├── corrupt.jpg │ │ │ │ ├── corrupt34_2.jpg │ │ │ │ ├── corrupt34_3.jpg │ │ │ │ ├── corrupt34_4.jpg │ │ │ │ ├── jpeg_merge_test1.jpg │ │ │ │ └── jpeg_merge_test1_cmyk.jpg │ │ ├── png │ │ │ ├── png_io.cc │ │ │ ├── png_io.h │ │ │ └── testdata │ │ │ │ ├── lena_gray.png │ │ │ │ └── lena_rgba.png │ │ ├── random │ │ │ ├── distribution_sampler.cc │ │ │ ├── distribution_sampler.h │ │ │ ├── distribution_sampler_test.cc │ │ │ ├── exact_uniform_int.h │ │ │ ├── philox_random.h │ │ │ ├── philox_random_test.cc │ │ │ ├── philox_random_test_utils.h │ │ │ ├── random.cc │ │ │ ├── random.h │ │ │ ├── random_distributions.h │ │ │ ├── random_distributions_test.cc │ │ │ ├── random_test.cc │ │ │ ├── simple_philox.cc │ │ │ ├── simple_philox.h │ │ │ ├── simple_philox_test.cc │ │ │ ├── weighted_picker.cc │ │ │ ├── weighted_picker.h │ │ │ └── weighted_picker_test.cc │ │ └── strings │ │ │ ├── numbers.cc │ │ │ ├── numbers.h │ │ │ ├── numbers_test.cc │ │ │ ├── ordered_code.cc │ │ │ ├── ordered_code.h │ │ │ ├── ordered_code_test.cc │ │ │ ├── regexp.h │ │ │ ├── str_util.cc │ │ │ ├── str_util.h │ │ │ ├── str_util_test.cc │ │ │ ├── strcat.cc │ │ │ ├── strcat.h │ │ │ ├── strcat_test.cc │ │ │ ├── stringprintf.cc │ │ │ ├── stringprintf.h │ │ │ └── stringprintf_test.cc │ ├── ops │ │ ├── array_grad.cc │ │ ├── array_grad_test.cc │ │ ├── array_ops.cc │ │ ├── candidate_sampling_ops.cc │ │ ├── compat │ │ │ ├── BUILD │ │ │ ├── backwards_compatibility_test.cc │ │ │ ├── op_compatibility_lib.cc │ │ │ ├── op_compatibility_lib.h │ │ │ ├── ops_history.v0.pbtxt │ │ │ └── update_ops.cc │ │ ├── control_flow_ops.cc │ │ ├── ctc_ops.cc │ │ ├── data_flow_ops.cc │ │ ├── function_ops.cc │ │ ├── functional_grad.cc │ │ ├── functional_ops.cc │ │ ├── image_ops.cc │ │ ├── io_ops.cc │ │ ├── linalg_ops.cc │ │ ├── logging_ops.cc │ │ ├── math_grad.cc │ │ ├── math_grad_test.cc │ │ ├── math_ops.cc │ │ ├── nn_grad.cc │ │ ├── nn_ops.cc │ │ ├── no_op.cc │ │ ├── ops.pbtxt │ │ ├── parsing_ops.cc │ │ ├── random_ops.cc │ │ ├── script_ops.cc │ │ ├── sendrecv_ops.cc │ │ ├── sparse_ops.cc │ │ ├── state_ops.cc │ │ ├── string_ops.cc │ │ └── training_ops.cc │ ├── platform │ │ ├── cuda.h │ │ ├── default │ │ │ ├── build_config.bzl │ │ │ ├── build_config │ │ │ │ └── BUILD │ │ │ ├── build_config_root.bzl │ │ │ ├── dynamic_annotations.h │ │ │ ├── integral_types.h │ │ │ ├── logging.cc │ │ │ ├── logging.h │ │ │ ├── mutex.h │ │ │ ├── protobuf.h │ │ │ ├── stream_executor.h │ │ │ ├── test_benchmark.cc │ │ │ ├── thread_annotations.h │ │ │ ├── tracing.cc │ │ │ └── tracing_impl.h │ │ ├── denormal.cc │ │ ├── denormal.h │ │ ├── env.cc │ │ ├── env.h │ │ ├── env_test.cc │ │ ├── host_info.h │ │ ├── init_main.h │ │ ├── integral_types_test.cc │ │ ├── jpeg.h │ │ ├── load_library.cc │ │ ├── load_library.h │ │ ├── logging.h │ │ ├── logging_test.cc │ │ ├── macros.h │ │ ├── mem.h │ │ ├── mutex.h │ │ ├── platform.h │ │ ├── png.h │ │ ├── port_test.cc │ │ ├── posix │ │ │ ├── env.cc │ │ │ ├── port.cc │ │ │ └── test.cc │ │ ├── protobuf.h │ │ ├── protobuf_util.cc │ │ ├── regexp.h │ │ ├── snappy.h │ │ ├── stream_executor.h │ │ ├── tensor_coding.cc │ │ ├── tensor_coding.h │ │ ├── test.cc │ │ ├── test.h │ │ ├── test_benchmark.h │ │ ├── test_main.cc │ │ ├── thread_annotations.h │ │ ├── tracing.cc │ │ ├── tracing.h │ │ └── types.h │ ├── protobuf │ │ ├── config.proto │ │ ├── master.proto │ │ ├── master_service.proto │ │ ├── meta_graph.proto │ │ ├── queue_runner.proto │ │ ├── saver.proto │ │ ├── tensorflow_server.proto │ │ ├── worker.proto │ │ └── worker_service.proto │ ├── public │ │ ├── README.md │ │ ├── session.h │ │ ├── session_options.h │ │ ├── tensor_c_api.h │ │ └── version.h │ ├── user_ops │ │ └── fact.cc │ └── util │ │ ├── bcast.cc │ │ ├── bcast.h │ │ ├── bcast_test.cc │ │ ├── command_line_flags.cc │ │ ├── command_line_flags.h │ │ ├── command_line_flags_test.cc │ │ ├── ctc │ │ ├── BUILD │ │ ├── ctc_beam_entry.h │ │ ├── ctc_beam_scorer.h │ │ ├── ctc_beam_search.h │ │ ├── ctc_beam_search_test.cc │ │ ├── ctc_decoder.h │ │ ├── ctc_loss_calculator.cc │ │ ├── ctc_loss_calculator.h │ │ └── ctc_loss_util.h │ │ ├── cuda_kernel_helper.h │ │ ├── device_name_utils.cc │ │ ├── device_name_utils.h │ │ ├── device_name_utils_test.cc │ │ ├── event.proto │ │ ├── events_writer.cc │ │ ├── events_writer.h │ │ ├── events_writer_test.cc │ │ ├── guarded_philox_random.cc │ │ ├── guarded_philox_random.h │ │ ├── padding.cc │ │ ├── padding.h │ │ ├── port.cc │ │ ├── port.h │ │ ├── reporter.cc │ │ ├── reporter.h │ │ ├── reporter_test.cc │ │ ├── saved_tensor_slice.proto │ │ ├── saved_tensor_slice_util.cc │ │ ├── saved_tensor_slice_util.h │ │ ├── saved_tensor_slice_util_test.cc │ │ ├── sparse │ │ ├── README.md │ │ ├── dim_comparator.h │ │ ├── group_iterator.cc │ │ ├── group_iterator.h │ │ ├── sparse_tensor.h │ │ └── sparse_tensor_test.cc │ │ ├── tensor_format.cc │ │ ├── tensor_format.h │ │ ├── tensor_slice_reader.cc │ │ ├── tensor_slice_reader.h │ │ ├── tensor_slice_reader_cache.cc │ │ ├── tensor_slice_reader_cache.h │ │ ├── tensor_slice_reader_test.cc │ │ ├── tensor_slice_set.cc │ │ ├── tensor_slice_set.h │ │ ├── tensor_slice_set_test.cc │ │ ├── tensor_slice_util.h │ │ ├── tensor_slice_util_test.cc │ │ ├── tensor_slice_writer.cc │ │ ├── tensor_slice_writer.h │ │ ├── tensor_slice_writer_test.cc │ │ ├── test_log.proto │ │ ├── use_cudnn.cc │ │ ├── use_cudnn.h │ │ ├── util.cc │ │ ├── util.h │ │ ├── work_sharder.cc │ │ ├── work_sharder.h │ │ └── work_sharder_test.cc ├── examples │ ├── __init__.py │ ├── android │ │ ├── AndroidManifest.xml │ │ ├── BUILD │ │ ├── README.md │ │ ├── __init__.py │ │ ├── jni │ │ │ ├── __init__.py │ │ │ ├── imageutils_jni.cc │ │ │ ├── jni_utils.cc │ │ │ ├── jni_utils.h │ │ │ ├── rgb2yuv.cc │ │ │ ├── rgb2yuv.h │ │ │ ├── tensorflow_jni.cc │ │ │ ├── tensorflow_jni.h │ │ │ ├── yuv2rgb.cc │ │ │ └── yuv2rgb.h │ │ ├── res │ │ │ ├── drawable-hdpi │ │ │ │ ├── ic_action_info.png │ │ │ │ ├── ic_launcher.png │ │ │ │ └── tile.9.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── ic_action_info.png │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── ic_action_info.png │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── ic_action_info.png │ │ │ │ └── ic_launcher.png │ │ │ ├── layout-land │ │ │ │ └── camera_connection_fragment.xml │ │ │ ├── layout │ │ │ │ ├── activity_camera.xml │ │ │ │ └── camera_connection_fragment.xml │ │ │ ├── values-sw600dp │ │ │ │ ├── template-dimens.xml │ │ │ │ └── template-styles.xml │ │ │ ├── values-v11 │ │ │ │ ├── styles.xml │ │ │ │ └── template-styles.xml │ │ │ ├── values-v14 │ │ │ │ └── styles.xml │ │ │ ├── values-v21 │ │ │ │ ├── base-colors.xml │ │ │ │ └── base-template-styles.xml │ │ │ └── values │ │ │ │ ├── attrs.xml │ │ │ │ ├── base-strings.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ ├── styles.xml │ │ │ │ ├── template-dimens.xml │ │ │ │ └── template-styles.xml │ │ └── src │ │ │ └── org │ │ │ └── tensorflow │ │ │ └── demo │ │ │ ├── AutoFitTextureView.java │ │ │ ├── CameraActivity.java │ │ │ ├── CameraConnectionFragment.java │ │ │ ├── Classifier.java │ │ │ ├── RecognitionScoreView.java │ │ │ ├── TensorflowClassifier.java │ │ │ ├── TensorflowImageListener.java │ │ │ └── env │ │ │ ├── ImageUtils.java │ │ │ └── Logger.java │ ├── how_tos │ │ └── reading_data │ │ │ ├── BUILD │ │ │ ├── __init__.py │ │ │ ├── convert_to_records.py │ │ │ ├── fully_connected_preloaded.py │ │ │ ├── fully_connected_preloaded_var.py │ │ │ └── fully_connected_reader.py │ ├── image_retraining │ │ ├── BUILD │ │ ├── retrain.py │ │ └── retrain_test.py │ ├── ios │ │ ├── BUILD │ │ └── RunModel │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.mm │ │ │ ├── RunModel-Info.plist │ │ │ ├── RunModelViewController.h │ │ │ ├── RunModelViewController.mm │ │ │ ├── RunModelViewController.xib │ │ │ ├── ios_image_load.h │ │ │ ├── ios_image_load.mm │ │ │ └── main.mm │ ├── label_image │ │ ├── BUILD │ │ ├── README.md │ │ ├── data │ │ │ └── grace_hopper.jpg │ │ └── main.cc │ ├── tutorials │ │ ├── __init__.py │ │ ├── mnist │ │ │ ├── BUILD │ │ │ ├── __init__.py │ │ │ ├── fully_connected_feed.py │ │ │ ├── input_data.py │ │ │ ├── mnist.py │ │ │ ├── mnist_softmax.py │ │ │ └── mnist_with_summaries.py │ │ └── word2vec │ │ │ ├── BUILD │ │ │ ├── __init__.py │ │ │ └── word2vec_basic.py │ └── udacity │ │ ├── 1_notmnist.ipynb │ │ ├── 2_fullyconnected.ipynb │ │ ├── 3_regularization.ipynb │ │ ├── 4_convolutions.ipynb │ │ ├── 5_word2vec.ipynb │ │ ├── 6_lstm.ipynb │ │ ├── Dockerfile │ │ └── README.md ├── g3doc │ ├── __init__.py │ ├── api_docs │ │ ├── cc │ │ │ ├── ClassEnv.md │ │ │ ├── ClassEnvWrapper.md │ │ │ ├── ClassPartialTensorShape.md │ │ │ ├── ClassPartialTensorShapeUtils.md │ │ │ ├── ClassRandomAccessFile.md │ │ │ ├── ClassSession.md │ │ │ ├── ClassStatus.md │ │ │ ├── ClassTensor.md │ │ │ ├── ClassTensorShape.md │ │ │ ├── ClassTensorShapeUtils.md │ │ │ ├── ClassThread.md │ │ │ ├── ClassWritableFile.md │ │ │ ├── StructSessionOptions.md │ │ │ ├── StructState.md │ │ │ ├── StructTF_Buffer.md │ │ │ ├── StructTensorShapeDim.md │ │ │ ├── StructThreadOptions.md │ │ │ └── index.md │ │ ├── index.md │ │ ├── leftnav_files │ │ └── python │ │ │ ├── array_ops.md │ │ │ ├── client.md │ │ │ ├── constant_op.md │ │ │ ├── contrib.layers.md │ │ │ ├── contrib.util.md │ │ │ ├── control_flow_ops.md │ │ │ ├── framework.md │ │ │ ├── image.md │ │ │ ├── index.md │ │ │ ├── io_ops.md │ │ │ ├── math_ops.md │ │ │ ├── nn.md │ │ │ ├── python_io.md │ │ │ ├── script_ops.md │ │ │ ├── sparse_ops.md │ │ │ ├── state_ops.md │ │ │ ├── test.md │ │ │ ├── train.md │ │ │ └── unsupported.md │ ├── extras │ │ └── README.txt │ ├── get_started │ │ ├── basic_usage.md │ │ ├── index.md │ │ ├── leftnav_files │ │ └── os_setup.md │ ├── how_tos │ │ ├── __init__.py │ │ ├── adding_an_op │ │ │ ├── __init__.py │ │ │ ├── attr_examples.cc │ │ │ ├── fact_test.py │ │ │ ├── index.md │ │ │ ├── zero_out_1_test.py │ │ │ ├── zero_out_2_test.py │ │ │ ├── zero_out_3_test.py │ │ │ ├── zero_out_grad_2.py │ │ │ ├── zero_out_op_1.py │ │ │ ├── zero_out_op_2.py │ │ │ ├── zero_out_op_3.py │ │ │ ├── zero_out_op_kernel_1.cc │ │ │ ├── zero_out_op_kernel_2.cc │ │ │ └── zero_out_op_kernel_3.cc │ │ ├── documentation │ │ │ └── index.md │ │ ├── graph_viz │ │ │ └── index.md │ │ ├── image_retraining │ │ │ └── index.md │ │ ├── index.md │ │ ├── leftnav_files │ │ ├── new_data_formats │ │ │ └── index.md │ │ ├── reading_data │ │ │ └── index.md │ │ ├── summaries_and_tensorboard │ │ │ └── index.md │ │ ├── threading_and_queues │ │ │ └── index.md │ │ ├── tool_developers │ │ │ └── index.md │ │ ├── using_gpu │ │ │ └── index.md │ │ ├── variable_scope │ │ │ └── index.md │ │ └── variables │ │ │ └── index.md │ ├── images │ │ └── getting_started.dot │ ├── index.md │ ├── resources │ │ ├── bib.md │ │ ├── dims_types.md │ │ ├── faq.md │ │ ├── glossary.md │ │ ├── index.md │ │ ├── leftnav_files │ │ ├── roadmap.md │ │ ├── uses.md │ │ └── versions.md │ └── tutorials │ │ ├── BUILD │ │ ├── __init__.py │ │ ├── deep_cnn │ │ ├── cifar_tensorboard.html │ │ └── index.md │ │ ├── image_recognition │ │ └── index.md │ │ ├── index.md │ │ ├── leftnav_files │ │ ├── mandelbrot │ │ └── index.md │ │ ├── mnist │ │ ├── beginners │ │ │ └── index.md │ │ ├── download │ │ │ └── index.md │ │ ├── pros │ │ │ └── index.md │ │ └── tf │ │ │ └── index.md │ │ ├── pdes │ │ └── index.md │ │ ├── recurrent │ │ └── index.md │ │ ├── seq2seq │ │ └── index.md │ │ ├── tfserve │ │ └── index.md │ │ └── word2vec │ │ └── index.md ├── models │ ├── __init__.py │ ├── embedding │ │ ├── BUILD │ │ ├── README.md │ │ ├── __init__.py │ │ ├── word2vec.py │ │ ├── word2vec_kernels.cc │ │ ├── word2vec_ops.cc │ │ ├── word2vec_optimized.py │ │ ├── word2vec_optimized_test.py │ │ └── word2vec_test.py │ ├── image │ │ ├── __init__.py │ │ ├── alexnet │ │ │ ├── BUILD │ │ │ ├── __init__.py │ │ │ └── alexnet_benchmark.py │ │ ├── cifar10 │ │ │ ├── BUILD │ │ │ ├── README.md │ │ │ ├── __init__.py │ │ │ ├── cifar10.py │ │ │ ├── cifar10_eval.py │ │ │ ├── cifar10_input.py │ │ │ ├── cifar10_input_test.py │ │ │ ├── cifar10_multi_gpu_train.py │ │ │ └── cifar10_train.py │ │ ├── imagenet │ │ │ ├── BUILD │ │ │ └── classify_image.py │ │ └── mnist │ │ │ ├── BUILD │ │ │ ├── __init__.py │ │ │ └── convolutional.py │ └── rnn │ │ ├── BUILD │ │ ├── README.md │ │ ├── __init__.py │ │ ├── linear.py │ │ ├── ptb │ │ ├── BUILD │ │ ├── __init__.py │ │ ├── ptb_word_lm.py │ │ ├── reader.py │ │ └── reader_test.py │ │ ├── rnn.py │ │ ├── rnn_cell.py │ │ ├── seq2seq.py │ │ └── translate │ │ ├── BUILD │ │ ├── __init__.py │ │ ├── data_utils.py │ │ ├── seq2seq_model.py │ │ └── translate.py ├── opensource_only │ └── pip_package │ │ └── __init__.py ├── python │ ├── BUILD │ ├── __init__.py │ ├── client │ │ ├── __init__.py │ │ ├── client_lib.py │ │ ├── events_writer.i │ │ ├── events_writer_test.py │ │ ├── graph_util.py │ │ ├── graph_util_test.py │ │ ├── notebook.py │ │ ├── server_lib.i │ │ ├── server_lib.py │ │ ├── server_lib_test.py │ │ ├── session.py │ │ ├── session_test.py │ │ ├── test_construction_fails_op.cc │ │ ├── tf_session.i │ │ ├── tf_session_helper.cc │ │ └── tf_session_helper.h │ ├── framework │ │ ├── __init__.py │ │ ├── contrib_test.py │ │ ├── device.py │ │ ├── device_test.py │ │ ├── docs.py │ │ ├── dtypes.py │ │ ├── dtypes_test.py │ │ ├── errors.py │ │ ├── errors_test.py │ │ ├── framework_lib.py │ │ ├── function.py │ │ ├── function_test.py │ │ ├── gen_docs_combined.py │ │ ├── importer.py │ │ ├── importer_test.py │ │ ├── load_library.py │ │ ├── op_def_registry.py │ │ ├── ops.py │ │ ├── ops_test.py │ │ ├── proto_test.py │ │ ├── python_op_gen.cc │ │ ├── python_op_gen.h │ │ ├── python_op_gen.i │ │ ├── python_op_gen_main.cc │ │ ├── random_seed.py │ │ ├── registry.py │ │ ├── registry_test.py │ │ ├── tensor_shape.py │ │ ├── tensor_shape_div_test.py │ │ ├── tensor_shape_test.py │ │ ├── tensor_util.py │ │ ├── tensor_util_test.py │ │ ├── test_ops.cc │ │ ├── test_util.py │ │ ├── test_util_test.py │ │ ├── versions.py │ │ └── versions_test.py │ ├── kernel_tests │ │ ├── __init__.py │ │ ├── argmax_op_test.py │ │ ├── array_ops_test.py │ │ ├── attention_ops_test.py │ │ ├── batch_matmul_op_test.py │ │ ├── bcast_ops_test.py │ │ ├── bias_op_test.py │ │ ├── bitcast_op_test.py │ │ ├── candidate_sampler_ops_test.py │ │ ├── cast_op_test.py │ │ ├── cholesky_op_test.py │ │ ├── clip_ops_test.py │ │ ├── concat_op_test.py │ │ ├── constant_op_test.py │ │ ├── control_flow_ops_py_test.py │ │ ├── conv_ops_test.py │ │ ├── cross_grad_test.py │ │ ├── cwise_ops_test.py │ │ ├── decode_csv_op_test.py │ │ ├── decode_raw_op_test.py │ │ ├── denormal_test.py │ │ ├── dense_update_ops_no_tsan_test.py │ │ ├── dense_update_ops_test.py │ │ ├── depthtospace_op_test.py │ │ ├── depthwise_conv_op_test.py │ │ ├── determinant_op_test.py │ │ ├── diag_op_test.py │ │ ├── division_future_test.py │ │ ├── division_past_test.py │ │ ├── dynamic_partition_op_test.py │ │ ├── dynamic_stitch_op_test.py │ │ ├── edit_distance_op_test.py │ │ ├── embedding_ops_test.py │ │ ├── fft_ops_test.py │ │ ├── fifo_queue_test.py │ │ ├── gather_op_test.py │ │ ├── gradient_checker.py │ │ ├── gradient_checker_test.py │ │ ├── gradient_correctness_test.py │ │ ├── identity_op_py_test.py │ │ ├── in_topk_op_test.py │ │ ├── init_ops_test.py │ │ ├── io_ops_test.py │ │ ├── linalg_grad_test.py │ │ ├── listdiff_op_test.py │ │ ├── logging_ops_test.py │ │ ├── lrn_op_test.py │ │ ├── matmul_op_test.py │ │ ├── matrix_inverse_op_test.py │ │ ├── matrix_solve_ls_op_test.py │ │ ├── matrix_solve_op_test.py │ │ ├── matrix_triangular_solve_op_test.py │ │ ├── numerics_test.py │ │ ├── one_hot_op_test.py │ │ ├── pack_op_test.py │ │ ├── pad_op_test.py │ │ ├── padding_fifo_queue_test.py │ │ ├── parsing_ops_test.py │ │ ├── partitioned_variables_test.py │ │ ├── pooling_ops_test.py │ │ ├── py_func_test.py │ │ ├── random_crop_test.py │ │ ├── random_ops_test.py │ │ ├── random_shuffle_queue_test.py │ │ ├── reader_ops_test.py │ │ ├── reduction_ops_test.py │ │ ├── relu_op_test.py │ │ ├── reshape_op_test.py │ │ ├── reverse_sequence_op_test.py │ │ ├── rnn_cell_test.py │ │ ├── rnn_test.py │ │ ├── save_restore_ops_test.py │ │ ├── scalar_strict_test.py │ │ ├── scatter_ops_test.py │ │ ├── segment_reduction_ops_test.py │ │ ├── self_adjoint_eig_op_test.py │ │ ├── seq2seq_test.py │ │ ├── shape_ops_test.py │ │ ├── slice_op_test.py │ │ ├── softmax_op_test.py │ │ ├── softplus_op_test.py │ │ ├── softsign_op_test.py │ │ ├── spacetodepth_op_test.py │ │ ├── sparse_concat_op_test.py │ │ ├── sparse_matmul_op_test.py │ │ ├── sparse_ops_test.py │ │ ├── sparse_reorder_op_test.py │ │ ├── sparse_serialization_ops_test.py │ │ ├── sparse_split_op_test.py │ │ ├── sparse_tensor_dense_matmul_grad_test.py │ │ ├── sparse_tensor_dense_matmul_op_test.py │ │ ├── sparse_to_dense_op_py_test.py │ │ ├── sparse_xent_op_test.py │ │ ├── sparsemask_op_test.py │ │ ├── split_op_test.py │ │ ├── stack_ops_test.py │ │ ├── string_to_hash_bucket_op_test.py │ │ ├── string_to_number_op_test.py │ │ ├── summary_image_op_test.py │ │ ├── summary_ops_test.py │ │ ├── template_test.py │ │ ├── tensor_array_ops_test.py │ │ ├── topk_op_test.py │ │ ├── trace_op_test.py │ │ ├── transpose_op_test.py │ │ ├── unique_op_test.py │ │ ├── unpack_op_test.py │ │ ├── variable_ops_test.py │ │ ├── variable_scope_test.py │ │ ├── variables_test.py │ │ ├── where_op_test.py │ │ └── xent_op_test.py │ ├── lib │ │ ├── __init__.py │ │ ├── core │ │ │ ├── __init__.py │ │ │ ├── py_func.cc │ │ │ ├── py_func.h │ │ │ ├── py_func.i │ │ │ ├── pywrap_status_test.py │ │ │ ├── status.i │ │ │ ├── status_helper.i │ │ │ └── strings.i │ │ └── io │ │ │ ├── __init__.py │ │ │ ├── py_record_reader.cc │ │ │ ├── py_record_reader.h │ │ │ ├── py_record_reader.i │ │ │ ├── py_record_writer.cc │ │ │ ├── py_record_writer.h │ │ │ ├── py_record_writer.i │ │ │ ├── python_io.py │ │ │ └── tf_record.py │ ├── ops │ │ ├── __init__.py │ │ ├── array_grad.py │ │ ├── array_ops.py │ │ ├── batch_norm_benchmark.py │ │ ├── candidate_sampling_ops.py │ │ ├── clip_ops.py │ │ ├── common_shapes.py │ │ ├── constant_op.py │ │ ├── control_flow_grad.py │ │ ├── control_flow_ops.py │ │ ├── control_flow_ops_test.py │ │ ├── data_flow_grad.py │ │ ├── data_flow_ops.py │ │ ├── embedding_ops.py │ │ ├── functional_ops.py │ │ ├── gradients.py │ │ ├── gradients_test.py │ │ ├── histogram_ops.py │ │ ├── histogram_ops_test.py │ │ ├── image_grad.py │ │ ├── image_grad_test.py │ │ ├── image_ops.py │ │ ├── image_ops_test.py │ │ ├── init_ops.py │ │ ├── io_ops.py │ │ ├── linalg_grad.py │ │ ├── linalg_ops.py │ │ ├── logging_ops.py │ │ ├── math_grad.py │ │ ├── math_grad_test.py │ │ ├── math_ops.py │ │ ├── math_ops_test.py │ │ ├── nn.py │ │ ├── nn_grad.py │ │ ├── nn_ops.py │ │ ├── nn_test.py │ │ ├── numerics.py │ │ ├── op_def_library.py │ │ ├── op_def_library_test.py │ │ ├── parsing_ops.py │ │ ├── partitioned_variables.py │ │ ├── random_ops.py │ │ ├── rnn.py │ │ ├── rnn_cell.py │ │ ├── script_ops.py │ │ ├── seq2seq.py │ │ ├── sparse_grad.py │ │ ├── sparse_ops.py │ │ ├── standard_ops.py │ │ ├── state_grad.py │ │ ├── state_ops.py │ │ ├── string_ops.py │ │ ├── template.py │ │ ├── tensor_array_grad.py │ │ ├── tensor_array_ops.py │ │ ├── variable_scope.py │ │ └── variables.py │ ├── platform │ │ ├── app.py │ │ ├── base.i │ │ ├── control_imports.py │ │ ├── default │ │ │ ├── __init__.py │ │ │ ├── _app.py │ │ │ ├── _flags.py │ │ │ ├── _gfile.py │ │ │ ├── _googletest.py │ │ │ ├── _logging.py │ │ │ ├── _parameterized.py │ │ │ ├── _resource_loader.py │ │ │ ├── _resource_loader_test.py │ │ │ ├── _status_bar.py │ │ │ ├── flags_test.py │ │ │ ├── gfile_test.py │ │ │ └── logging_test.py │ │ ├── flags.py │ │ ├── gfile.py │ │ ├── googletest.py │ │ ├── logging.py │ │ ├── numpy.i │ │ ├── parameterized.py │ │ ├── resource_loader.py │ │ ├── status_bar.py │ │ ├── sysconfig.py │ │ └── test.py │ ├── summary │ │ ├── README.md │ │ ├── __init__.py │ │ ├── event_accumulator.py │ │ ├── event_accumulator_test.py │ │ ├── event_multiplexer.py │ │ ├── event_multiplexer_test.py │ │ └── impl │ │ │ ├── __init__.py │ │ │ ├── directory_watcher.py │ │ │ ├── directory_watcher_test.py │ │ │ ├── event_file_loader.py │ │ │ ├── event_file_loader_test.py │ │ │ ├── gcs.py │ │ │ ├── gcs_file_loader.py │ │ │ ├── gcs_file_loader_test.py │ │ │ ├── reservoir.py │ │ │ └── reservoir_test.py │ ├── tensorflow.i │ ├── tools │ │ ├── BUILD │ │ ├── freeze_graph.py │ │ ├── freeze_graph_test.py │ │ ├── graph_metrics.py │ │ └── graph_metrics_test.py │ ├── training │ │ ├── __init__.py │ │ ├── adagrad.py │ │ ├── adagrad_test.py │ │ ├── adam.py │ │ ├── adam_test.py │ │ ├── checkpoint_state.proto │ │ ├── coordinator.py │ │ ├── coordinator_test.py │ │ ├── ftrl.py │ │ ├── ftrl_test.py │ │ ├── gradient_descent.py │ │ ├── gradient_descent_test.py │ │ ├── input.py │ │ ├── input_test.py │ │ ├── learning_rate_decay.py │ │ ├── learning_rate_decay_test.py │ │ ├── momentum.py │ │ ├── momentum_test.py │ │ ├── moving_averages.py │ │ ├── moving_averages_test.py │ │ ├── optimizer.py │ │ ├── optimizer_test.py │ │ ├── queue_runner.py │ │ ├── queue_runner_test.py │ │ ├── rmsprop.py │ │ ├── rmsprop_test.py │ │ ├── saver.py │ │ ├── saver_test.py │ │ ├── slot_creator.py │ │ ├── slot_creator_test.py │ │ ├── summary_io.py │ │ ├── summary_writer_test.py │ │ ├── tensorboard_logging.py │ │ ├── tensorboard_logging_test.py │ │ ├── training.py │ │ ├── training_ops.py │ │ ├── training_ops_test.py │ │ └── training_util.py │ ├── user_ops │ │ ├── __init__.py │ │ └── user_ops.py │ └── util │ │ ├── __init__.py │ │ ├── all_util.py │ │ ├── compat.py │ │ ├── port.i │ │ └── protobuf │ │ ├── __init__.py │ │ ├── compare.py │ │ ├── compare_test.proto │ │ └── compare_test.py ├── stream_executor │ ├── BUILD │ ├── blas.cc │ ├── blas.h │ ├── cuda │ │ ├── cuda_activation.cc │ │ ├── cuda_activation.h │ │ ├── cuda_blas.cc │ │ ├── cuda_blas.h │ │ ├── cuda_diagnostics.cc │ │ ├── cuda_diagnostics.h │ │ ├── cuda_dnn.cc │ │ ├── cuda_dnn.h │ │ ├── cuda_driver.cc │ │ ├── cuda_driver.h │ │ ├── cuda_event.cc │ │ ├── cuda_event.h │ │ ├── cuda_fft.cc │ │ ├── cuda_fft.h │ │ ├── cuda_gpu_executor.cc │ │ ├── cuda_gpu_executor.h │ │ ├── cuda_helpers.h │ │ ├── cuda_kernel.h │ │ ├── cuda_platform.cc │ │ ├── cuda_platform.h │ │ ├── cuda_platform_id.cc │ │ ├── cuda_platform_id.h │ │ ├── cuda_rng.cc │ │ ├── cuda_rng.h │ │ ├── cuda_stream.cc │ │ ├── cuda_stream.h │ │ ├── cuda_timer.cc │ │ ├── cuda_timer.h │ │ └── multi_op_activation.h │ ├── device_description.cc │ ├── device_description.h │ ├── device_memory.h │ ├── device_options.h │ ├── dnn.cc │ ├── dnn.h │ ├── dso_loader.cc │ ├── dso_loader.h │ ├── event.cc │ ├── event.h │ ├── executor_cache.cc │ ├── executor_cache.h │ ├── fft.h │ ├── gcuda.cc │ ├── gcuda.h │ ├── gpu_launch_dim.h │ ├── kernel.cc │ ├── kernel.h │ ├── kernel_cache_config.h │ ├── kernel_spec.cc │ ├── kernel_spec.h │ ├── launch_dim.h │ ├── lib │ │ ├── array_slice.h │ │ ├── casts.h │ │ ├── demangle.cc │ │ ├── demangle.h │ │ ├── env.h │ │ ├── error.h │ │ ├── human_readable.h │ │ ├── initialize.h │ │ ├── inlined_vector.h │ │ ├── mathutil.h │ │ ├── notification.h │ │ ├── numbers.cc │ │ ├── numbers.h │ │ ├── path.cc │ │ ├── path.h │ │ ├── process_state.cc │ │ ├── process_state.h │ │ ├── ptr_util.h │ │ ├── stacktrace.h │ │ ├── static_threadlocal.h │ │ ├── status.h │ │ ├── status_macros.h │ │ ├── statusor.h │ │ ├── str_util.h │ │ ├── strcat.h │ │ ├── stringpiece.h │ │ ├── stringprintf.h │ │ ├── thread_options.h │ │ └── threadpool.h │ ├── machine_manager.cc │ ├── machine_manager.h │ ├── multi_platform_manager.cc │ ├── multi_platform_manager.h │ ├── platform.cc │ ├── platform.h │ ├── platform │ │ ├── default │ │ │ └── mutex.h │ │ ├── logging.h │ │ ├── mutex.h │ │ ├── port.h │ │ └── thread_annotations.h │ ├── plugin.cc │ ├── plugin.h │ ├── plugin_registry.cc │ ├── plugin_registry.h │ ├── rng.cc │ ├── rng.h │ ├── scratch_allocator.cc │ ├── scratch_allocator.h │ ├── shared_memory_config.h │ ├── stream.cc │ ├── stream.h │ ├── stream_executor.h │ ├── stream_executor_internal.cc │ ├── stream_executor_internal.h │ ├── stream_executor_pimpl.cc │ ├── stream_executor_pimpl.h │ ├── temporary_device_memory.cc │ ├── temporary_device_memory.h │ ├── temporary_memory_manager.cc │ ├── temporary_memory_manager.h │ ├── timer.cc │ ├── timer.h │ └── trace_listener.h ├── tensorboard │ ├── .bowerrc │ ├── .gitignore │ ├── BUILD │ ├── CHANGES │ ├── README.md │ ├── TAG │ ├── __init__.py │ ├── app │ │ └── analytics.js │ ├── backend │ │ ├── BUILD │ │ ├── __init__.py │ │ ├── float_wrapper.py │ │ ├── float_wrapper_test.py │ │ ├── handler.py │ │ ├── handler_test.py │ │ ├── process_graph.py │ │ ├── server.py │ │ └── server_test.py │ ├── bower.json │ ├── bower │ │ └── BUILD │ ├── components │ │ ├── index.html │ │ ├── tf-categorizer │ │ │ ├── categorizer.ts │ │ │ ├── demo │ │ │ │ └── index.html │ │ │ ├── test │ │ │ │ ├── categorizerTest.ts │ │ │ │ └── index.html │ │ │ └── tf-categorizer.html │ │ ├── tf-collapsable-pane │ │ │ ├── demo │ │ │ │ └── index.html │ │ │ └── tf-collapsable-pane.html │ │ ├── tf-dashboard-common │ │ │ ├── dashboard-style.html │ │ │ ├── run-color-style.html │ │ │ ├── scrollbar-style.html │ │ │ ├── tensorboard-color.html │ │ │ ├── tf-dashboard-layout.html │ │ │ ├── tf-downloader.html │ │ │ ├── tf-run-generator.html │ │ │ ├── tf-url-generator.html │ │ │ ├── urlGenerator.ts │ │ │ └── warning-style.html │ │ ├── tf-event-dashboard │ │ │ ├── dataCoordinator.ts │ │ │ ├── dataset.ts │ │ │ ├── demo │ │ │ │ ├── data │ │ │ │ │ ├── runs.json │ │ │ │ │ └── scalars │ │ │ │ │ │ ├── alpha │ │ │ │ │ │ ├── d1.json │ │ │ │ │ │ ├── d2.json │ │ │ │ │ │ ├── d3.json │ │ │ │ │ │ └── d4.json │ │ │ │ │ │ └── beta │ │ │ │ │ │ ├── d1.json │ │ │ │ │ │ ├── d2.json │ │ │ │ │ │ ├── d3.json │ │ │ │ │ │ └── d4.json │ │ │ │ └── index.html │ │ │ ├── dragZoomInteraction.ts │ │ │ ├── tf-chart.html │ │ │ ├── tf-chart.ts │ │ │ ├── tf-color-scale.html │ │ │ ├── tf-data-coordinator.html │ │ │ ├── tf-event-dashboard.html │ │ │ ├── tf-run-selector.html │ │ │ ├── tf-tooltip-coordinator.html │ │ │ └── tf-x-type-selector.html │ │ ├── tf-graph-app │ │ │ └── tf-graph-app.html │ │ ├── tf-graph-board │ │ │ └── tf-graph-board.html │ │ ├── tf-graph-common │ │ │ ├── lib │ │ │ │ ├── colors.ts │ │ │ │ ├── common.ts │ │ │ │ ├── graph.ts │ │ │ │ ├── hierarchy.ts │ │ │ │ ├── layout.ts │ │ │ │ ├── parser.ts │ │ │ │ ├── render.ts │ │ │ │ ├── scene │ │ │ │ │ ├── annotation.ts │ │ │ │ │ ├── contextmenu.ts │ │ │ │ │ ├── edge.ts │ │ │ │ │ ├── minimap.ts │ │ │ │ │ ├── node.ts │ │ │ │ │ └── scene.ts │ │ │ │ └── template.ts │ │ │ ├── test │ │ │ │ ├── graph-test.ts │ │ │ │ ├── hierarchy-test.ts │ │ │ │ ├── index.html │ │ │ │ ├── layout-test.ts │ │ │ │ └── parser-test.ts │ │ │ └── tf-graph-common.html │ │ ├── tf-graph-dashboard │ │ │ └── tf-graph-dashboard.html │ │ ├── tf-graph-info │ │ │ ├── tf-graph-info.html │ │ │ ├── tf-node-info.html │ │ │ └── tf-node-list-item.html │ │ ├── tf-graph-loader │ │ │ ├── test │ │ │ │ ├── index.html │ │ │ │ └── loader.ts │ │ │ └── tf-graph-loader.html │ │ ├── tf-graph │ │ │ ├── demo │ │ │ │ ├── index.html │ │ │ │ └── tf-graph-demo.html │ │ │ ├── tf-graph-controls.html │ │ │ ├── tf-graph-icon.html │ │ │ ├── tf-graph-minimap.html │ │ │ ├── tf-graph-params.html │ │ │ ├── tf-graph-scene.html │ │ │ ├── tf-graph-style.html │ │ │ └── tf-graph.html │ │ ├── tf-histogram-dashboard │ │ │ └── tf-histogram-dashboard.html │ │ ├── tf-image-dashboard │ │ │ ├── demo │ │ │ │ ├── image-loader-demo.html │ │ │ │ └── index.html │ │ │ ├── tf-image-dashboard.html │ │ │ ├── tf-image-grid.html │ │ │ └── tf-image-loader.html │ │ ├── tf-imports │ │ │ ├── README.md │ │ │ ├── d3.html │ │ │ ├── dagre.html │ │ │ ├── google │ │ │ │ ├── README.md │ │ │ │ ├── d3.html │ │ │ │ ├── dagre.html │ │ │ │ ├── graphlib.html │ │ │ │ ├── lodash.html │ │ │ │ └── plottable.html │ │ │ ├── graphlib.html │ │ │ ├── lodash.html │ │ │ └── plottable.html │ │ ├── tf-multi-checkbox │ │ │ ├── demo │ │ │ │ └── index.html │ │ │ └── tf-multi-checkbox.html │ │ ├── tf-regex-group │ │ │ ├── demo │ │ │ │ └── index.html │ │ │ └── tf-regex-group.html │ │ └── tf-tensorboard │ │ │ ├── demo │ │ │ ├── data │ │ │ │ ├── cos.json │ │ │ │ ├── cubic.json │ │ │ │ ├── linear.json │ │ │ │ ├── poly5-graph.pbtxt │ │ │ │ ├── poly5.json │ │ │ │ ├── runs.json │ │ │ │ ├── sin-graph.pbtxt │ │ │ │ ├── sin.json │ │ │ │ └── sq.json │ │ │ └── index.html │ │ │ ├── tf-tensorboard-demo.html │ │ │ └── tf-tensorboard.html │ ├── dist │ │ ├── index.html │ │ └── tf-tensorboard.html │ ├── gulp_tasks │ │ ├── bower.js │ │ ├── compile.js │ │ ├── constants.js │ │ ├── test.js │ │ ├── tslint.js │ │ ├── typings.js │ │ └── vulcanize.js │ ├── gulpfile.js │ ├── http_api.md │ ├── lib │ │ ├── css │ │ │ └── global.css │ │ ├── images │ │ │ └── favicon.png │ │ └── js │ │ │ ├── backend │ │ │ ├── backend.ts │ │ │ ├── test │ │ │ │ ├── backendTests.ts │ │ │ │ ├── data │ │ │ │ │ ├── compressedHistograms_run_run1_tag_histo1 │ │ │ │ │ ├── histograms_run_run1_tag_histo1 │ │ │ │ │ ├── images_run_run1_tag_im1 │ │ │ │ │ ├── individualImage_index_0_tag_im1_run_run1 │ │ │ │ │ ├── runs │ │ │ │ │ ├── scalars │ │ │ │ │ └── scalars_run_run1_tag_cross_entropy__281_29 │ │ │ │ └── index.html │ │ │ └── urlPathHelpers.ts │ │ │ ├── nanite │ │ │ ├── nanite.ts │ │ │ └── test │ │ │ │ ├── index.html │ │ │ │ └── naniteTest.ts │ │ │ ├── node-radar │ │ │ ├── demo │ │ │ │ └── index.html │ │ │ ├── nodeRadar.ts │ │ │ └── test │ │ │ │ ├── index.html │ │ │ │ └── nodeRadarTest.ts │ │ │ └── requestManager │ │ │ ├── requestManager.ts │ │ │ └── test │ │ │ ├── example.json │ │ │ ├── index.html │ │ │ └── requestManagerTest.ts │ ├── package.json │ ├── scripts │ │ ├── BUILD │ │ ├── __init__.py │ │ ├── generate_testdata.py │ │ └── serialize_tensorboard.py │ ├── tensorboard.py │ ├── tsconfig.json │ ├── tslint.json │ ├── typings.json │ └── wct.conf.json ├── tensorflow.bzl ├── tools │ ├── __init__.py │ ├── ci_build │ │ ├── Dockerfile.android │ │ ├── Dockerfile.cpu │ │ ├── Dockerfile.debian.jessie.cpu │ │ ├── Dockerfile.gpu │ │ ├── README.md │ │ ├── builds │ │ │ ├── android.sh │ │ │ ├── configured │ │ │ ├── docker_test.sh │ │ │ ├── pip.sh │ │ │ ├── print_build_info.sh │ │ │ ├── test_installation.sh │ │ │ ├── test_tutorials.sh │ │ │ └── with_the_same_user │ │ ├── ci_build.sh │ │ ├── ci_parameterized_build.sh │ │ ├── install │ │ │ ├── .bazelrc │ │ │ ├── install_bazel.sh │ │ │ ├── install_bootstrap_deb_packages.sh │ │ │ └── install_deb_packages.sh │ │ └── update_version.sh │ ├── docker │ │ ├── BUILD │ │ ├── Dockerfile │ │ ├── Dockerfile.devel │ │ ├── Dockerfile.devel-gpu │ │ ├── Dockerfile.gpu │ │ ├── LICENSE │ │ ├── README.md │ │ ├── __init__.py │ │ ├── docker_run_gpu.sh │ │ ├── jupyter_notebook_config.py │ │ ├── notebooks │ │ │ ├── 1_hello_tensorflow.ipynb │ │ │ ├── 2_getting_started.ipynb │ │ │ ├── 3_mnist_from_scratch.ipynb │ │ │ └── LICENSE │ │ ├── run_jupyter.sh │ │ └── simple_console.py │ ├── docs │ │ ├── BUILD │ │ ├── gen_cc_md.py │ │ ├── gen_docs.sh │ │ ├── gen_docs_test.sh │ │ └── tf-doxy_for_md-config │ ├── pip_package │ │ ├── BUILD │ │ ├── MANIFEST.in │ │ ├── README │ │ ├── build_pip_package.sh │ │ ├── setup.py │ │ └── simple_console.py │ └── swig │ │ └── swig.sh ├── user_ops │ ├── BUILD │ ├── ackermann_op.cc │ └── ackermann_test.py └── workspace.bzl ├── third_party ├── eigen3 │ ├── BUILD │ ├── Eigen │ │ ├── Cholesky │ │ ├── Core │ │ ├── Eigenvalues │ │ ├── LU │ │ └── QR │ ├── LICENSE │ └── unsupported │ │ └── Eigen │ │ └── CXX11 │ │ ├── Core │ │ ├── FixedPoint │ │ ├── NeuralNetworks │ │ ├── Tensor │ │ └── src │ │ ├── FixedPoint │ │ ├── FixedPointTypes.h │ │ ├── MatMatProduct.h │ │ ├── MatMatProductAVX2.h │ │ ├── MatMatProductNEON.h │ │ ├── MatVecProduct.h │ │ ├── PacketMathAVX2.h │ │ └── TypeCastingAVX2.h │ │ └── NeuralNetworks │ │ ├── Activations.h │ │ ├── Attention.h │ │ ├── BackwardCuboidConvolutions.h │ │ ├── BackwardSpatialConvolutions.h │ │ ├── CuboidConvolution.h │ │ ├── Patch3d.h │ │ ├── Pooling.h │ │ ├── SoftMax.h │ │ ├── SpatialConvolutions.h │ │ └── TensorConvolutionByFFT.h ├── gpus │ ├── crosstool │ │ ├── BUILD │ │ ├── CROSSTOOL │ │ ├── LICENSE │ │ └── clang │ │ │ └── bin │ │ │ └── crosstool_wrapper_driver_is_not_gcc │ └── cuda │ │ ├── BUILD │ │ ├── LICENSE │ │ └── cuda_config.sh └── py │ └── numpy │ └── BUILD └── util └── python ├── BUILD └── python_config.sh /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | /bazel-bin 3 | /bazel-ci_build-cache 4 | /bazel-genfiles 5 | /bazel-out 6 | /bazel-tensorflow 7 | /bazel-testlogs 8 | /bazel-tf 9 | /tensorflow/contrib/cmake/build 10 | /third_party/gpus/cuda/bin 11 | /third_party/gpus/cuda/cuda.config 12 | /third_party/gpus/cuda/include 13 | /third_party/gpus/cuda/lib64 14 | /third_party/gpus/cuda/nvvm 15 | /third_party/py/numpy/numpy_include 16 | /tools/bazel.rc 17 | /tools/python_bin_path.sh 18 | /util/python/python_include 19 | /util/python/python_lib 20 | /pip_test 21 | /_python_build 22 | *.pyc 23 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "google/protobuf"] 2 | path = google/protobuf 3 | url = https://github.com/google/protobuf.git 4 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of TensorFlow authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS files. 3 | # See the latter for an explanation. 4 | 5 | # Names should be added to this file as: 6 | # Name or Organization 7 | # The email address is not required for organizations. 8 | 9 | Google Inc. 10 | -------------------------------------------------------------------------------- /ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | GitHub issues are for bugs / installation problems / feature requests. 2 | For general support from the community, see [StackOverflow](https://stackoverflow.com/questions/tagged/tensorflow). 3 | To make bugs and feature requests more easy to find and organize, we close issues that are deemed 4 | out of scope for GitHub Issues and point people to StackOverflow. 5 | 6 | For bugs or installation issues, please provide the following information. 7 | The more information you provide, the more easily we will be able to offer 8 | help and advice. 9 | 10 | ### Environment info 11 | Operating System: 12 | 13 | If installed from binary pip package, provide: 14 | 15 | 1. Which pip package you installed. 16 | 2. The output from python -c "import tensorflow; print(tensorflow.__version__)". 17 | 18 | If installed from sources, provide the commit hash: 19 | 20 | ### Steps to reproduce 21 | 1. 22 | 2. 23 | 3. 24 | 25 | ### What have you tried? 26 | 1. 27 | 28 | ### Logs or other output that would be helpful 29 | (If logs are large, please upload as attachment). 30 | -------------------------------------------------------------------------------- /eigen.BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | archive_dir = "eigen-eigen-88444e025a5c" 4 | 5 | cc_library( 6 | name = "eigen", 7 | hdrs = glob([archive_dir+"/**/*.h", archive_dir+"/unsupported/Eigen/CXX11/*", archive_dir+"/Eigen/*"]), 8 | includes = [ archive_dir ], 9 | visibility = ["//visibility:public"], 10 | ) 11 | -------------------------------------------------------------------------------- /navbar.md: -------------------------------------------------------------------------------- 1 | # TensorFlow 2 | 3 | * [Home][home] 4 | * [Getting Started](/tensorflow/g3doc/get_started/index.md) 5 | * [Mechanics](/tensorflow/g3doc/how_tos/index.md) 6 | * [Tutorials](/tensorflow/g3doc/tutorials/index.md) 7 | * [Python API](/tensorflow/g3doc/api_docs/python/index.md) 8 | * [C++ API](/tensorflow/g3doc/api_docs/cc/index.md) 9 | * [Other Resources](/tensorflow/g3doc/resources/index.md) 10 | 11 | [home]: /tensorflow/g3doc/index.md 12 | -------------------------------------------------------------------------------- /six.BUILD: -------------------------------------------------------------------------------- 1 | genrule( 2 | name = "copy_six", 3 | srcs = ["six-1.10.0/six.py"], 4 | outs = ["six.py"], 5 | cmd = "cp $< $(@)", 6 | ) 7 | 8 | py_library( 9 | name = "six", 10 | srcs = ["six.py"], 11 | visibility = ["//visibility:public"], 12 | srcs_version = "PY2AND3", 13 | ) 14 | -------------------------------------------------------------------------------- /tensorflow/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 Google Inc. 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 | # Bring in all of the public TensorFlow interface into this 17 | # module. 18 | # pylint: disable=wildcard-import 19 | from __future__ import absolute_import 20 | from __future__ import division 21 | from __future__ import print_function 22 | 23 | from tensorflow.python import * 24 | -------------------------------------------------------------------------------- /tensorflow/contrib/BUILD: -------------------------------------------------------------------------------- 1 | # Description: 2 | # contains parts of TensorFlow that are experimental or unstable and which are not supported. 3 | 4 | licenses(["notice"]) # Apache 2.0 5 | 6 | exports_files(["LICENSE"]) 7 | 8 | package(default_visibility = ["//tensorflow:__subpackages__"]) 9 | 10 | py_library( 11 | name = "contrib_py", 12 | srcs = glob(["**/*.py"]), 13 | srcs_version = "PY2AND3", 14 | visibility = ["//tensorflow:internal"], 15 | deps = [ 16 | "//tensorflow/contrib/ctc:ctc_py", 17 | "//tensorflow/contrib/distributions:distributions_py", 18 | "//tensorflow/contrib/layers:layers_py", 19 | "//tensorflow/contrib/linear_optimizer:sdca_ops_py", 20 | "//tensorflow/contrib/testing:testing_py", 21 | "//tensorflow/contrib/util:util_py", 22 | ], 23 | ) 24 | 25 | filegroup( 26 | name = "all_files", 27 | srcs = glob( 28 | ["**/*"], 29 | exclude = [ 30 | "**/METADATA", 31 | "**/OWNERS", 32 | ], 33 | ), 34 | visibility = ["//tensorflow:__subpackages__"], 35 | ) 36 | -------------------------------------------------------------------------------- /tensorflow/contrib/cmake/install.cmake: -------------------------------------------------------------------------------- 1 | # [TODO] -------------------------------------------------------------------------------- /tensorflow/contrib/cmake/tests.cmake: -------------------------------------------------------------------------------- 1 | # [TODO] -------------------------------------------------------------------------------- /tensorflow/contrib/distributions/python/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2016 Google Inc. 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 | """ops module.""" 16 | 17 | from __future__ import absolute_import 18 | from __future__ import division 19 | from __future__ import print_function 20 | -------------------------------------------------------------------------------- /tensorflow/contrib/layers/python/ops/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 Google Inc. 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 | """A module containing TensorFlow ops whose API may change in the future.""" 16 | 17 | from __future__ import absolute_import 18 | from __future__ import division 19 | from __future__ import print_function 20 | 21 | # pylint: disable=wildcard-import 22 | from tensorflow.contrib.layers.python.ops.loss_ops import * 23 | -------------------------------------------------------------------------------- /tensorflow/contrib/linear_optimizer/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2016 Google Inc. 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 | """Ops for training linear models. 16 | 17 | ## This package provides optimizers to train linear models. 18 | 19 | @@SdcaModel 20 | """ 21 | from __future__ import absolute_import 22 | from __future__ import division 23 | from __future__ import print_function 24 | 25 | from tensorflow.contrib.linear_optimizer.python.ops.sdca_ops import SdcaModel 26 | -------------------------------------------------------------------------------- /tensorflow/contrib/testing/BUILD: -------------------------------------------------------------------------------- 1 | # Description: 2 | # contains parts of TensorFlow that are experimental or unstable and which are not supported. 3 | 4 | licenses(["notice"]) # Apache 2.0 5 | 6 | exports_files(["LICENSE"]) 7 | 8 | package(default_visibility = ["//tensorflow:__subpackages__"]) 9 | 10 | py_library( 11 | name = "testing_py", 12 | srcs = [ 13 | "__init__.py", 14 | "python/framework/test_util.py", 15 | ], 16 | srcs_version = "PY2AND3", 17 | ) 18 | 19 | filegroup( 20 | name = "all_files", 21 | srcs = glob( 22 | ["**/*"], 23 | exclude = [ 24 | "**/METADATA", 25 | "**/OWNERS", 26 | ], 27 | ), 28 | visibility = ["//tensorflow:__subpackages__"], 29 | ) 30 | -------------------------------------------------------------------------------- /tensorflow/contrib/testing/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 Google Inc. 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 | """Testing utilities.""" 16 | 17 | from __future__ import absolute_import 18 | from __future__ import division 19 | from __future__ import print_function 20 | 21 | # pylint: disable=unused-import,wildcard-import 22 | from tensorflow.contrib.testing.python.framework.test_util import * 23 | -------------------------------------------------------------------------------- /tensorflow/contrib/util/BUILD: -------------------------------------------------------------------------------- 1 | # Description: 2 | # contains parts of TensorFlow that are experimental or unstable and which are not supported. 3 | 4 | licenses(["notice"]) # Apache 2.0 5 | 6 | exports_files(["LICENSE"]) 7 | 8 | package(default_visibility = ["//tensorflow:__subpackages__"]) 9 | 10 | cc_binary( 11 | name = "inspect_checkpoint", 12 | srcs = ["inspect_checkpoint.cc"], 13 | deps = [ 14 | "//tensorflow/core:framework", 15 | "//tensorflow/core:lib", 16 | "//tensorflow/core:tensorflow", 17 | ], 18 | ) 19 | 20 | py_library( 21 | name = "util_py", 22 | srcs = glob(["**/*.py"]), 23 | srcs_version = "PY2AND3", 24 | deps = [], 25 | ) 26 | 27 | filegroup( 28 | name = "all_files", 29 | srcs = glob( 30 | ["**/*"], 31 | exclude = [ 32 | "**/METADATA", 33 | "**/OWNERS", 34 | ], 35 | ), 36 | visibility = ["//tensorflow:__subpackages__"], 37 | ) 38 | -------------------------------------------------------------------------------- /tensorflow/core/common_runtime/session_options.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/public/session_options.h" 17 | 18 | #include "tensorflow/core/platform/env.h" 19 | 20 | namespace tensorflow { 21 | 22 | SessionOptions::SessionOptions() : env(Env::Default()) {} 23 | 24 | } // namespace tensorflow 25 | -------------------------------------------------------------------------------- /tensorflow/core/framework/allocation_description.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package tensorflow; 4 | // option cc_enable_arenas = true; 5 | option java_outer_classname = "AllocationDescriptionProtos"; 6 | option java_multiple_files = true; 7 | option java_package = "org.tensorflow.framework"; 8 | 9 | message AllocationDescription { 10 | // Total number of bytes requested 11 | int64 requested_bytes = 1; 12 | 13 | // Total number of bytes allocated if known 14 | int64 allocated_bytes = 2; 15 | 16 | // Name of the allocator used 17 | string allocator_name = 3; 18 | 19 | // Identifier of the allocated buffer if known 20 | int64 allocation_id = 4; 21 | 22 | // Set if this tensor only has one remaining reference 23 | bool has_single_reference = 5; 24 | 25 | // Address of the allocation. 26 | uint64 ptr = 6; 27 | }; 28 | -------------------------------------------------------------------------------- /tensorflow/core/framework/device_base.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/framework/device_base.h" 17 | 18 | namespace tensorflow { 19 | 20 | DeviceBase::~DeviceBase() {} 21 | 22 | } // namespace tensorflow 23 | -------------------------------------------------------------------------------- /tensorflow/core/framework/tensor_description.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package tensorflow; 4 | // option cc_enable_arenas = true; 5 | option java_outer_classname = "TensorDescriptionProtos"; 6 | option java_multiple_files = true; 7 | option java_package = "org.tensorflow.framework"; 8 | 9 | import "tensorflow/core/framework/types.proto"; 10 | import "tensorflow/core/framework/tensor_shape.proto"; 11 | import "tensorflow/core/framework/allocation_description.proto"; 12 | 13 | message TensorDescription { 14 | // Data type of tensor elements 15 | DataType dtype = 1; 16 | 17 | // Shape of the tensor. 18 | TensorShapeProto shape = 2; 19 | 20 | // Information about the size and allocator used for the data 21 | AllocationDescription allocation_description = 4; 22 | }; 23 | -------------------------------------------------------------------------------- /tensorflow/core/framework/tensor_reference.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 Google Inc. 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 | #include "tensorflow/core/framework/tensor_reference.h" 17 | 18 | namespace tensorflow { 19 | 20 | TensorReference::TensorReference(const Tensor& tensor) 21 | : buf_(tensor.buf_ ? tensor.buf_->root_buffer() : nullptr) { 22 | if (buf_) buf_->Ref(); 23 | } 24 | 25 | } // namespace tensorflow 26 | -------------------------------------------------------------------------------- /tensorflow/core/framework/variable.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package tensorflow; 4 | // option cc_enable_arenas = true; 5 | option java_outer_classname = "VariableProtos"; 6 | option java_multiple_files = true; 7 | option java_package = "org.tensorflow.framework"; 8 | 9 | // Protocol buffer representing a Variable. 10 | message VariableDef { 11 | // Name of the variable tensor. 12 | string variable_name = 1; 13 | 14 | // Name of the initializer op. 15 | string initializer_name = 2; 16 | 17 | // Name of the snapshot tensor. 18 | string snapshot_name = 3; 19 | 20 | // Support for saving variables as slices of a larger variable. 21 | SaveSliceInfoDef save_slice_info_def = 4; 22 | } 23 | 24 | message SaveSliceInfoDef { 25 | // Name of the full variable of which this is a slice. 26 | string full_name = 1; 27 | // Shape of the full variable. 28 | repeated int32 full_shape = 2; 29 | // Offset of this variable into the full variable. 30 | repeated int32 var_offset = 3; 31 | // Shape of this variable. 32 | repeated int32 var_shape = 4; 33 | } 34 | -------------------------------------------------------------------------------- /tensorflow/core/framework/versions.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package tensorflow; 4 | // option cc_enable_arenas = true; 5 | option java_outer_classname = "VersionsProtos"; 6 | option java_multiple_files = true; 7 | option java_package = "org.tensorflow.framework"; 8 | 9 | // Version information for a piece of serialized data 10 | // 11 | // There are different types of versions for each type of data 12 | // (GraphDef, etc.), but they all have the same common shape 13 | // described here. 14 | // 15 | // Each consumer has "consumer" and "min_producer" versions (specified 16 | // elsewhere). A consumer is allowed to consume this data if 17 | // 18 | // producer >= min_producer 19 | // consumer >= min_consumer 20 | // consumer not in bad_consumers 21 | // 22 | message VersionDef { 23 | // The version of the code that produced this data. 24 | int32 producer = 1; 25 | 26 | // Any consumer below this version is not allowed to consume this data. 27 | int32 min_consumer = 2; 28 | 29 | // Specific consumer versions which are disallowed (e.g. due to bugs). 30 | repeated int32 bad_consumers = 3; 31 | }; 32 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_ceil.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER2(UnaryOp, CPU, "Ceil", functor::ceil, float, double); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "Ceil", functor::ceil, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_cos.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER3(UnaryOp, CPU, "Cos", functor::cos, float, double, complex64); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "Cos", functor::cos, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_digamma.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER2(UnaryOp, CPU, "Digamma", functor::digamma, float, double); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "Digamma", functor::digamma, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_erf.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER2(UnaryOp, CPU, "Erf", functor::erf, float, double); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "Erf", functor::erf, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_erfc.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER2(UnaryOp, CPU, "Erfc", functor::erfc, float, double); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "Erfc", functor::erfc, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_exp.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER3(UnaryOp, CPU, "Exp", functor::exp, float, double, complex64); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "Exp", functor::exp, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_floor.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER2(UnaryOp, CPU, "Floor", functor::floor, float, double); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "Floor", functor::floor, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_abs.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY3(abs, float, double, int64); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_add.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_BINARY3(add, float, double, int64); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_ceil.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(ceil, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_complex.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_BINARY1(make_complex, float); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_conj.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | // DEFINE_UNARY1(conj, complex64); // not working 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_cos.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(cos, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_digamma.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(digamma, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_div.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_BINARY6(div, float, double, uint8, int16, int32, int64); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_equal_to.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_BINARY7(equal_to, float, double, uint8, int8, int16, int64, complex64); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_erf.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(erf, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_erfc.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(erfc, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_exp.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(exp, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_floor.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(floor, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_greater.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_BINARY6(greater, float, double, int64, uint8, int8, int16); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_greater_equal.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_BINARY6(greater_equal, float, double, int64, uint8, int8, int16); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_imag.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY1(get_imag, complex64); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_inverse.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY3(inverse, float, double, int64); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_isfinite.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(isfinite, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_isinf.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(isinf, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_isnan.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(isnan, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_less.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_BINARY6(less, float, double, int64, uint8, int8, int16); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_less_equal.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_BINARY6(less_equal, float, double, int64, uint8, int8, int16); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_lgamma.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(lgamma, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_log.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(log, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_logical_not.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | template struct UnaryFunctor; 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_maximum.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_BINARY3(maximum, float, double, int64); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_minimum.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_BINARY3(minimum, float, double, int64); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_mod.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | // No GPU ops for mod yet. 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_mul.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_BINARY7(mul, float, double, uint8, int8, int16, int32, int64); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_neg.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY4(neg, float, double, int32, int64); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_not_equal_to.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_BINARY7(not_equal_to, float, double, uint8, int8, int16, int64, 23 | complex64); 24 | } // namespace functor 25 | } // namespace tensorflow 26 | 27 | #endif // GOOGLE_CUDA 28 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_pow.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_BINARY3(pow, float, double, int64); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_real.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY1(get_real, complex64); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_rsqrt.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(rsqrt, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_sigmoid.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(sigmoid, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_sign.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY3(sign, float, double, int64); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_sin.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(sin, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_sqrt.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(sqrt, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_square.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY3(square, float, double, int64); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_squared_difference.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2016 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_BINARY3(squared_difference, float, double, int64); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_sub.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_BINARY3(sub, float, double, int64); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_gpu_tanh.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h" 19 | 20 | namespace tensorflow { 21 | namespace functor { 22 | DEFINE_UNARY2(tanh, float, double); 23 | } // namespace functor 24 | } // namespace tensorflow 25 | 26 | #endif // GOOGLE_CUDA 27 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_inverse.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER3(UnaryOp, CPU, "Inv", functor::inverse, float, double, complex64); 20 | #if GOOGLE_CUDA 21 | REGISTER3(UnaryOp, GPU, "Inv", functor::inverse, float, double, int64); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_isfinite.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER2(UnaryOp, CPU, "IsFinite", functor::isfinite, float, double); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "IsFinite", functor::isfinite, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_isinf.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER2(UnaryOp, CPU, "IsInf", functor::isinf, float, double); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "IsInf", functor::isinf, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_isnan.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER2(UnaryOp, CPU, "IsNan", functor::isnan, float, double); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "IsNan", functor::isnan, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_lgamma.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER2(UnaryOp, CPU, "Lgamma", functor::lgamma, float, double); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "Lgamma", functor::lgamma, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_log.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER3(UnaryOp, CPU, "Log", functor::log, float, double, complex64); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "Log", functor::log, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_mod.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER2(BinaryOp, CPU, "Mod", functor::mod, int32, int64); 20 | REGISTER2(BinaryOp, CPU, "Mod", functor::fmod, float, double); 21 | } // namespace tensorflow 22 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_pow.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER5(BinaryOp, CPU, "Pow", functor::pow, float, double, int32, int64, 20 | complex64); 21 | #if GOOGLE_CUDA 22 | REGISTER3(BinaryOp, GPU, "Pow", functor::pow, float, double, int64); 23 | #endif 24 | } // namespace tensorflow 25 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_rsqrt.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER3(UnaryOp, CPU, "Rsqrt", functor::rsqrt, float, double, complex64); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "Rsqrt", functor::rsqrt, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_sigmoid.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER3(UnaryOp, CPU, "Sigmoid", functor::sigmoid, float, double, complex64); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "Sigmoid", functor::sigmoid, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_sin.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER3(UnaryOp, CPU, "Sin", functor::sin, float, double, complex64); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "Sin", functor::sin, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_sqrt.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER3(UnaryOp, CPU, "Sqrt", functor::sqrt, float, double, complex64); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "Sqrt", functor::sqrt, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/cwise_op_tanh.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/cwise_ops_common.h" 17 | 18 | namespace tensorflow { 19 | REGISTER3(UnaryOp, CPU, "Tanh", functor::tanh, float, double, complex64); 20 | #if GOOGLE_CUDA 21 | REGISTER2(UnaryOp, GPU, "Tanh", functor::tanh, float, double); 22 | #endif 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/l2loss_op_gpu.cu.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #if GOOGLE_CUDA 17 | 18 | #define EIGEN_USE_GPU 19 | 20 | #include "tensorflow/core/kernels/l2loss_op.h" 21 | 22 | #include "tensorflow/core/framework/register_types.h" 23 | 24 | namespace tensorflow { 25 | 26 | typedef Eigen::GpuDevice GPUDevice; 27 | template struct functor::L2Loss; 28 | 29 | } // namespace tensorflow 30 | 31 | #endif // GOOGLE_CUDA 32 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/no_op.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/kernels/no_op.h" 17 | 18 | namespace tensorflow { 19 | 20 | REGISTER_KERNEL_BUILDER(Name("NoOp").Device(DEVICE_CPU), NoOp); 21 | REGISTER_KERNEL_BUILDER(Name("NoOp").Device(DEVICE_GPU), NoOp); 22 | 23 | } // namespace tensorflow 24 | -------------------------------------------------------------------------------- /tensorflow/core/kernels/reader_base.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package tensorflow; 4 | // option cc_enable_arenas = true; 5 | option java_outer_classname = "ReaderBaseProtos"; 6 | option java_multiple_files = true; 7 | option java_package = "org.tensorflow.kernels"; 8 | 9 | // For serializing and restoring the state of ReaderBase, see 10 | // reader_base.h for details. 11 | message ReaderBaseState { 12 | int64 work_started = 1; 13 | int64 work_finished = 2; 14 | int64 num_records_produced = 3; 15 | bytes current_work = 4; 16 | }; 17 | -------------------------------------------------------------------------------- /tensorflow/core/lib/io/table_format.txt: -------------------------------------------------------------------------------- 1 | File format 2 | =========== 3 | 4 | The table format is similar to the table format for the LevelDB 5 | open source key/value store, with the exception that our tables 6 | do not support "filter" meta blocks (Bloom Filters). See: 7 | 8 | https://github.com/google/leveldb/blob/master/doc/table_format.txt 9 | -------------------------------------------------------------------------------- /tensorflow/core/lib/jpeg/testdata/bad_huffman.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/core/lib/jpeg/testdata/bad_huffman.jpg -------------------------------------------------------------------------------- /tensorflow/core/lib/jpeg/testdata/corrupt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/core/lib/jpeg/testdata/corrupt.jpg -------------------------------------------------------------------------------- /tensorflow/core/lib/jpeg/testdata/corrupt34_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/core/lib/jpeg/testdata/corrupt34_2.jpg -------------------------------------------------------------------------------- /tensorflow/core/lib/jpeg/testdata/corrupt34_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/core/lib/jpeg/testdata/corrupt34_3.jpg -------------------------------------------------------------------------------- /tensorflow/core/lib/jpeg/testdata/corrupt34_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/core/lib/jpeg/testdata/corrupt34_4.jpg -------------------------------------------------------------------------------- /tensorflow/core/lib/jpeg/testdata/jpeg_merge_test1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/core/lib/jpeg/testdata/jpeg_merge_test1.jpg -------------------------------------------------------------------------------- /tensorflow/core/lib/jpeg/testdata/jpeg_merge_test1_cmyk.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/core/lib/jpeg/testdata/jpeg_merge_test1_cmyk.jpg -------------------------------------------------------------------------------- /tensorflow/core/lib/png/testdata/lena_gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/core/lib/png/testdata/lena_gray.png -------------------------------------------------------------------------------- /tensorflow/core/lib/png/testdata/lena_rgba.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/core/lib/png/testdata/lena_rgba.png -------------------------------------------------------------------------------- /tensorflow/core/ops/no_op.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/framework/op.h" 17 | 18 | namespace tensorflow { 19 | 20 | REGISTER_OP("NoOp") 21 | .Doc(R"doc( 22 | Does nothing. Only useful as a placeholder for control edges. 23 | )doc"); 24 | 25 | } // namespace tensorflow 26 | -------------------------------------------------------------------------------- /tensorflow/core/platform/cuda.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | 21 | #if defined(PLATFORM_GOOGLE) 22 | #include "tensorflow/core/platform/google/build_config/cuda.h" 23 | #else 24 | #include "tensorflow/stream_executor/cuda/cuda_activation.h" 25 | #endif 26 | 27 | #endif // TENSORFLOW_PLATFORM_CUDA_H_ 28 | -------------------------------------------------------------------------------- /tensorflow/core/platform/default/build_config_root.bzl: -------------------------------------------------------------------------------- 1 | # Lower-level functionality for build config. 2 | # The functions in this file might be referred by tensorflow.bzl. They have to 3 | # be separate to avoid cyclic references. 4 | 5 | def tf_cuda_tests_tags(): 6 | return ["local"] 7 | -------------------------------------------------------------------------------- /tensorflow/core/protobuf/queue_runner.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package tensorflow; 4 | // option cc_enable_arenas = true; 5 | option java_outer_classname = "QueueRunnerProtos"; 6 | option java_multiple_files = true; 7 | option java_package = "org.tensorflow.framework"; 8 | 9 | // Protocol buffer representing a QueueRunner. 10 | message QueueRunnerDef { 11 | // Queue name. 12 | string queue_name = 1; 13 | 14 | // A list of enqueue operations. 15 | repeated string enqueue_op_name = 2; 16 | 17 | // The operation to run to close the queue. 18 | string close_op_name = 3; 19 | 20 | // The operation to run to cancel the queue. 21 | string cancel_op_name = 4; 22 | } 23 | -------------------------------------------------------------------------------- /tensorflow/core/util/port.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/core/util/port.h" 17 | 18 | namespace tensorflow { 19 | 20 | bool IsGoogleCudaEnabled() { 21 | #if GOOGLE_CUDA 22 | return true; 23 | #else 24 | return false; 25 | #endif 26 | } 27 | 28 | } // end namespace tensorflow 29 | -------------------------------------------------------------------------------- /tensorflow/core/util/port.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | } // end namespace tensorflow 25 | 26 | #endif // TENSORFLOW_UTIL_PORT_H_ 27 | -------------------------------------------------------------------------------- /tensorflow/core/util/use_cudnn.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | 25 | } // namespace tensorflow 26 | 27 | #endif // TENSORFLOW_UTIL_USE_CUDNN_H_ 28 | -------------------------------------------------------------------------------- /tensorflow/examples/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/examples/__init__.py -------------------------------------------------------------------------------- /tensorflow/examples/android/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/examples/android/__init__.py -------------------------------------------------------------------------------- /tensorflow/examples/android/jni/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/examples/android/jni/__init__.py -------------------------------------------------------------------------------- /tensorflow/examples/android/res/drawable-hdpi/ic_action_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/examples/android/res/drawable-hdpi/ic_action_info.png -------------------------------------------------------------------------------- /tensorflow/examples/android/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/examples/android/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /tensorflow/examples/android/res/drawable-hdpi/tile.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/examples/android/res/drawable-hdpi/tile.9.png -------------------------------------------------------------------------------- /tensorflow/examples/android/res/drawable-mdpi/ic_action_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/examples/android/res/drawable-mdpi/ic_action_info.png -------------------------------------------------------------------------------- /tensorflow/examples/android/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/examples/android/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /tensorflow/examples/android/res/drawable-xhdpi/ic_action_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/examples/android/res/drawable-xhdpi/ic_action_info.png -------------------------------------------------------------------------------- /tensorflow/examples/android/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/examples/android/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /tensorflow/examples/android/res/drawable-xxhdpi/ic_action_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/examples/android/res/drawable-xxhdpi/ic_action_info.png -------------------------------------------------------------------------------- /tensorflow/examples/android/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/examples/android/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /tensorflow/examples/android/res/layout/activity_camera.xml: -------------------------------------------------------------------------------- 1 | 16 | 23 | -------------------------------------------------------------------------------- /tensorflow/examples/android/res/values-sw600dp/template-dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | @dimen/margin_huge 22 | @dimen/margin_medium 23 | 24 | 25 | -------------------------------------------------------------------------------- /tensorflow/examples/android/res/values-sw600dp/template-styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tensorflow/examples/android/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 11 | 12 | 19 | 20 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tensorflow/examples/android/res/values-v11/template-styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tensorflow/examples/android/res/values-v21/base-colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tensorflow/examples/android/res/values-v21/base-template-styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tensorflow/examples/android/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tensorflow/examples/android/res/values/base-strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | Tensorflow Demo 20 | 21 | -------------------------------------------------------------------------------- /tensorflow/examples/android/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | #cc4285f4 19 | 20 | -------------------------------------------------------------------------------- /tensorflow/examples/android/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | Info 18 | This sample needs camera permission. 19 | This device doesn\'t support Camera2 API. 20 | 21 | -------------------------------------------------------------------------------- /tensorflow/examples/android/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tensorflow/g3doc/tutorials/leftnav_files: -------------------------------------------------------------------------------- 1 | mnist/beginners/index.md 2 | mnist/pros/index.md 3 | mnist/tf/index.md 4 | tfserve/index.md 5 | deep_cnn/index.md 6 | word2vec/index.md 7 | recurrent/index.md 8 | seq2seq/index.md 9 | mandelbrot/index.md 10 | pdes/index.md 11 | mnist/download/index.md 12 | image_recognition/index.md -------------------------------------------------------------------------------- /tensorflow/g3doc/tutorials/tfserve/index.md: -------------------------------------------------------------------------------- 1 | # TensorFlow Serving 2 | 3 | ## Introduction 4 | 5 | TensorFlow Serving is a flexible, high-performance serving system for machine 6 | learning models, designed for production environments. TensorFlow Serving 7 | makes it easy to deploy new algorithms and experiments, while keeping the same 8 | server architecture and APIs. 9 | 10 | ## Basic Serving Tutorial 11 | 12 | See the [basic tutorial](https://tensorflow.github.io/serving/serving_basic) 13 | on the TensorFlow Serving site to learn how to export a trained TensorFlow 14 | model and build a server to serve the exported model. 15 | 16 | ## Advanced Serving Tutorial 17 | 18 | See the 19 | [advanced tutorial](https://tensorflow.github.io/serving/serving_advanced) 20 | on the TensorFlow Serving site to learn how to build a server that 21 | dynamically discovers and serves new versions of a trained TensorFlow 22 | model. 23 | -------------------------------------------------------------------------------- /tensorflow/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/models/__init__.py -------------------------------------------------------------------------------- /tensorflow/models/embedding/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 Google Inc. 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 | """Import generated word2vec optimized ops into embedding package.""" 17 | from __future__ import absolute_import 18 | from __future__ import division 19 | from __future__ import print_function 20 | 21 | from tensorflow.models.embedding import gen_word2vec 22 | -------------------------------------------------------------------------------- /tensorflow/models/image/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/models/image/__init__.py -------------------------------------------------------------------------------- /tensorflow/models/image/alexnet/BUILD: -------------------------------------------------------------------------------- 1 | # Description: 2 | # Benchmark for AlexNet. 3 | 4 | licenses(["notice"]) # Apache 2.0 5 | 6 | exports_files(["LICENSE"]) 7 | 8 | py_binary( 9 | name = "alexnet_benchmark", 10 | srcs = [ 11 | "alexnet_benchmark.py", 12 | ], 13 | srcs_version = "PY2AND3", 14 | deps = [ 15 | "//tensorflow:tensorflow_py", 16 | ], 17 | ) 18 | 19 | filegroup( 20 | name = "all_files", 21 | srcs = glob( 22 | ["**/*"], 23 | exclude = [ 24 | "**/METADATA", 25 | "**/OWNERS", 26 | ], 27 | ), 28 | visibility = ["//tensorflow:__subpackages__"], 29 | ) 30 | -------------------------------------------------------------------------------- /tensorflow/models/image/alexnet/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/models/image/alexnet/__init__.py -------------------------------------------------------------------------------- /tensorflow/models/image/cifar10/README.md: -------------------------------------------------------------------------------- 1 | CIFAR-10 is a common benchmark in machine learning for image recognition. 2 | 3 | http://www.cs.toronto.edu/~kriz/cifar.html 4 | 5 | Code in this directory demonstrates how to use TensorFlow to train and evaluate a convolutional neural network (CNN) on both CPU and GPU. We also demonstrate how to train a CNN over multiple GPUs. 6 | 7 | Detailed instructions on how to get started available at: 8 | 9 | http://tensorflow.org/tutorials/deep_cnn/ 10 | 11 | -------------------------------------------------------------------------------- /tensorflow/models/image/cifar10/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 Google Inc. 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 | """Makes helper libraries available in the cifar10 package.""" 17 | from __future__ import absolute_import 18 | from __future__ import division 19 | from __future__ import print_function 20 | 21 | from tensorflow.models.image.cifar10 import cifar10 22 | from tensorflow.models.image.cifar10 import cifar10_input 23 | -------------------------------------------------------------------------------- /tensorflow/models/image/imagenet/BUILD: -------------------------------------------------------------------------------- 1 | # Description: 2 | # Example TensorFlow models for ImageNet. 3 | 4 | licenses(["notice"]) # Apache 2.0 5 | 6 | exports_files(["LICENSE"]) 7 | 8 | py_binary( 9 | name = "classify_image", 10 | srcs = [ 11 | "classify_image.py", 12 | ], 13 | srcs_version = "PY2AND3", 14 | visibility = ["//tensorflow:__subpackages__"], 15 | deps = [ 16 | "//tensorflow:tensorflow_py", 17 | ], 18 | ) 19 | 20 | filegroup( 21 | name = "all_files", 22 | srcs = glob( 23 | ["**/*"], 24 | exclude = [ 25 | "**/METADATA", 26 | "**/OWNERS", 27 | ], 28 | ), 29 | visibility = ["//tensorflow:__subpackages__"], 30 | ) 31 | -------------------------------------------------------------------------------- /tensorflow/models/image/mnist/BUILD: -------------------------------------------------------------------------------- 1 | # Description: 2 | # Example TensorFlow models for MNIST that achieves high accuracy 3 | 4 | licenses(["notice"]) # Apache 2.0 5 | 6 | exports_files(["LICENSE"]) 7 | 8 | py_binary( 9 | name = "convolutional", 10 | srcs = [ 11 | "convolutional.py", 12 | ], 13 | srcs_version = "PY2AND3", 14 | visibility = ["//tensorflow:__subpackages__"], 15 | deps = ["//tensorflow:tensorflow_py"], 16 | ) 17 | 18 | py_test( 19 | name = "convolutional_test", 20 | size = "medium", 21 | srcs = [ 22 | "convolutional.py", 23 | ], 24 | args = [ 25 | "--self_test=True", 26 | ], 27 | main = "convolutional.py", 28 | srcs_version = "PY2AND3", 29 | deps = ["//tensorflow:tensorflow_py"], 30 | ) 31 | 32 | filegroup( 33 | name = "all_files", 34 | srcs = glob( 35 | ["**/*"], 36 | exclude = [ 37 | "**/METADATA", 38 | "**/OWNERS", 39 | ], 40 | ), 41 | visibility = ["//tensorflow:__subpackages__"], 42 | ) 43 | -------------------------------------------------------------------------------- /tensorflow/models/image/mnist/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/models/image/mnist/__init__.py -------------------------------------------------------------------------------- /tensorflow/models/rnn/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 Google Inc. 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 | """Libraries to build Recurrent Neural Networks.""" 17 | from __future__ import absolute_import 18 | from __future__ import division 19 | from __future__ import print_function 20 | 21 | from tensorflow.models.rnn import rnn 22 | from tensorflow.models.rnn import rnn_cell 23 | from tensorflow.models.rnn import seq2seq 24 | -------------------------------------------------------------------------------- /tensorflow/models/rnn/linear.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 Google Inc. 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 | """Import linear python op for backward compatibility.""" 16 | from __future__ import absolute_import 17 | from __future__ import division 18 | from __future__ import print_function 19 | 20 | import tensorflow as tf 21 | 22 | linear = tf.nn.linear 23 | -------------------------------------------------------------------------------- /tensorflow/models/rnn/ptb/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 Google Inc. 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 | """Makes helper libraries available in the ptb package.""" 17 | from __future__ import absolute_import 18 | from __future__ import division 19 | from __future__ import print_function 20 | 21 | from tensorflow.models.rnn.ptb import reader 22 | -------------------------------------------------------------------------------- /tensorflow/models/rnn/rnn.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 Google Inc. 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 | """Import rnn python ops for backward compatibility.""" 16 | 17 | from __future__ import absolute_import 18 | from __future__ import division 19 | from __future__ import print_function 20 | 21 | # pylint: disable=wildcard-import 22 | from tensorflow.python.ops.rnn import * 23 | -------------------------------------------------------------------------------- /tensorflow/models/rnn/rnn_cell.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 Google Inc. 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 | """Import rnn_cell python ops for backward compatibility.""" 16 | 17 | from __future__ import absolute_import 18 | from __future__ import division 19 | from __future__ import print_function 20 | 21 | # pylint: disable=wildcard-import 22 | from tensorflow.python.ops.rnn_cell import * 23 | -------------------------------------------------------------------------------- /tensorflow/models/rnn/seq2seq.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 Google Inc. 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 | """Import seq2seq python ops for backward compatibility.""" 16 | 17 | from __future__ import absolute_import 18 | from __future__ import division 19 | from __future__ import print_function 20 | 21 | # pylint: disable=wildcard-import 22 | from tensorflow.python.ops.seq2seq import * 23 | -------------------------------------------------------------------------------- /tensorflow/models/rnn/translate/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 Google Inc. 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 | """Makes helper libraries available in the translate package.""" 17 | from __future__ import absolute_import 18 | from __future__ import division 19 | from __future__ import print_function 20 | 21 | from tensorflow.models.rnn.translate import data_utils 22 | from tensorflow.models.rnn.translate import seq2seq_model 23 | -------------------------------------------------------------------------------- /tensorflow/opensource_only/pip_package/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/opensource_only/pip_package/__init__.py -------------------------------------------------------------------------------- /tensorflow/python/client/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/python/client/__init__.py -------------------------------------------------------------------------------- /tensorflow/python/framework/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/python/framework/__init__.py -------------------------------------------------------------------------------- /tensorflow/python/framework/python_op_gen.i: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | %include "tensorflow/python/platform/base.i" 17 | 18 | %{ 19 | #include "tensorflow/python/framework/python_op_gen.h" 20 | %} 21 | 22 | %ignoreall; 23 | %unignore tensorflow::GetPythonWrappers; 24 | %include "tensorflow/python/framework/python_op_gen.h" 25 | -------------------------------------------------------------------------------- /tensorflow/python/kernel_tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/python/kernel_tests/__init__.py -------------------------------------------------------------------------------- /tensorflow/python/lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/python/lib/__init__.py -------------------------------------------------------------------------------- /tensorflow/python/lib/core/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/python/lib/core/__init__.py -------------------------------------------------------------------------------- /tensorflow/python/lib/core/py_func.i: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | %include "tensorflow/python/platform/base.i" 17 | 18 | %{ 19 | #include "tensorflow/python/lib/core/py_func.h" 20 | %} 21 | 22 | %ignoreall 23 | 24 | %unignore tensorflow; 25 | %unignore tensorflow::InitializePyTrampoline; 26 | 27 | %include "tensorflow/python/lib/core/py_func.h" 28 | 29 | %unignoreall 30 | -------------------------------------------------------------------------------- /tensorflow/python/lib/io/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/python/lib/io/__init__.py -------------------------------------------------------------------------------- /tensorflow/python/ops/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/python/ops/__init__.py -------------------------------------------------------------------------------- /tensorflow/python/platform/default/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/python/platform/default/__init__.py -------------------------------------------------------------------------------- /tensorflow/python/platform/default/_parameterized.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 Google Inc. 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 | """Extension to unittest to run parameterized tests.""" 17 | from __future__ import absolute_import 18 | from __future__ import division 19 | from __future__ import print_function 20 | 21 | raise ImportError("Not implemented yet.") 22 | -------------------------------------------------------------------------------- /tensorflow/python/platform/default/_status_bar.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 Google Inc. 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 no-op implementation of status bar functions.""" 17 | 18 | from __future__ import absolute_import 19 | from __future__ import division 20 | from __future__ import print_function 21 | 22 | 23 | def SetupStatusBarInsideGoogle(unused_link_text, unused_port): 24 | pass 25 | -------------------------------------------------------------------------------- /tensorflow/python/summary/README.md: -------------------------------------------------------------------------------- 1 | # TensorFlow Event Processing 2 | 3 | This folder contains classes useful for analyzing and visualizing TensorFlow 4 | events files. The code is primarily being developed to support TensorBoard, 5 | but it can be used by anyone who wishes to analyze or visualize TensorFlow 6 | events files. 7 | 8 | If you wish to load TensorFlow events, you should use an EventAccumulator 9 | (to load from a single events file) or an EventMultiplexer (to load from 10 | multiple events files). 11 | 12 | The API around these tools has not solidified, and we may make backwards- 13 | incompatible changes without warning. 14 | 15 | If you have questions or requests, please contact danmane@google.com 16 | -------------------------------------------------------------------------------- /tensorflow/python/summary/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/python/summary/__init__.py -------------------------------------------------------------------------------- /tensorflow/python/summary/impl/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/python/summary/impl/__init__.py -------------------------------------------------------------------------------- /tensorflow/python/training/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/python/training/__init__.py -------------------------------------------------------------------------------- /tensorflow/python/training/checkpoint_state.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package tensorflow; 4 | // option cc_enable_arenas = true; 5 | 6 | // Protocol buffer representing the checkpoint state. 7 | // 8 | // TODO(touts): Add other attributes as needed. 9 | message CheckpointState { 10 | // Path to the most-recent model checkpoint. 11 | string model_checkpoint_path = 1; 12 | 13 | // Paths to all not-yet-deleted model checkpoints, sorted from oldest to 14 | // newest. 15 | // Note that the value of model_checkpoint_path should be the last item in 16 | // this list. 17 | repeated string all_model_checkpoint_paths = 2; 18 | } 19 | -------------------------------------------------------------------------------- /tensorflow/python/user_ops/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/python/user_ops/__init__.py -------------------------------------------------------------------------------- /tensorflow/python/util/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/python/util/__init__.py -------------------------------------------------------------------------------- /tensorflow/python/util/port.i: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | %include "tensorflow/python/platform/base.i" 17 | 18 | %{ 19 | #include "tensorflow/core/util/port.h" 20 | %} 21 | 22 | %ignoreall 23 | %unignore tensorflow; 24 | %unignore tensorflow::IsGoogleCudaEnabled; 25 | %include "tensorflow/core/util/port.h" 26 | %unignoreall 27 | -------------------------------------------------------------------------------- /tensorflow/python/util/protobuf/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/python/util/protobuf/__init__.py -------------------------------------------------------------------------------- /tensorflow/stream_executor/BUILD: -------------------------------------------------------------------------------- 1 | licenses(["restricted"]) 2 | 3 | load("//tensorflow:tensorflow.bzl", "if_cuda") 4 | 5 | cc_library( 6 | name = "stream_executor", 7 | srcs = glob( 8 | [ 9 | "*.cc", 10 | "lib/*.cc", 11 | "platform/default/*.cc", 12 | ], 13 | exclude = [ 14 | "**/*_test.cc", 15 | ], 16 | ) + if_cuda( 17 | glob([ 18 | "cuda/*.cc", 19 | ]), 20 | ), 21 | hdrs = glob([ 22 | "*.h", 23 | "cuda/*.h", 24 | "lib/*.h", 25 | "lib/gtl/*.h", 26 | "platform/**/*.h", 27 | ]), 28 | data = [ 29 | "//tensorflow/core:cuda", 30 | "//third_party/gpus/cuda:cublas", 31 | "//third_party/gpus/cuda:cudnn", 32 | "//third_party/gpus/cuda:cufft", 33 | ], 34 | linkopts = [ 35 | "-ldl", 36 | ], 37 | visibility = ["//visibility:public"], 38 | deps = [ 39 | "//tensorflow/core:lib", 40 | "//third_party/gpus/cuda:cuda_headers", 41 | ], 42 | alwayslink = 1, 43 | ) 44 | -------------------------------------------------------------------------------- /tensorflow/stream_executor/cuda/cuda_platform_id.cc: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | #include "tensorflow/stream_executor/cuda/cuda_platform_id.h" 17 | 18 | namespace perftools { 19 | namespace gputools { 20 | namespace cuda { 21 | 22 | PLATFORM_DEFINE_ID(kCudaPlatformId); 23 | 24 | } // namespace cuda 25 | } // namespace gputools 26 | } // namespace perftools 27 | -------------------------------------------------------------------------------- /tensorflow/stream_executor/gpu_launch_dim.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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_STREAM_EXECUTOR_GPU_LAUNCH_DIM_H_ 17 | #define TENSORFLOW_STREAM_EXECUTOR_GPU_LAUNCH_DIM_H_ 18 | 19 | // TODO(rspringer): Temporary redirection until all users - including gcudacc - 20 | // are using the new file. 21 | #include "tensorflow/stream_executor/launch_dim.h" 22 | 23 | #endif // TENSORFLOW_STREAM_EXECUTOR_GPU_LAUNCH_DIM_H_ 24 | -------------------------------------------------------------------------------- /tensorflow/stream_executor/platform/thread_annotations.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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_STREAM_EXECUTOR_PLATFORM_THREAD_ANNOTATIONS_H_ 17 | #define TENSORFLOW_STREAM_EXECUTOR_PLATFORM_THREAD_ANNOTATIONS_H_ 18 | 19 | #include "tensorflow/core/platform/thread_annotations.h" 20 | 21 | #endif // TENSORFLOW_STREAM_EXECUTOR_PLATFORM_THREAD_ANNOTATIONS_H_ 22 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory" : "components" 3 | } -------------------------------------------------------------------------------- /tensorflow/tensorboard/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/* 2 | typings/* 3 | build/* 4 | dist/tf-tensorboard-demo.html 5 | 6 | # Since bower components are stored in the same directory as 7 | # tensorboard components, we ignore everything under components 8 | # except our own components which start with tf-. 9 | components/* 10 | # This rule should always be in sync with TF_COMPONENTS_TYPESCRIPT_GLOB 11 | # in gulpfile.js 12 | !components/tf-* 13 | !components/index.html 14 | # Ignore the sample graph files since they are too large to 15 | # be in the repo. 16 | components/tf-graph/demo/tf_model_zoo/* 17 | 18 | # All standalone code for TensorBoard components should be written in 19 | # typescript, and the compiled javascript code should be ignored. 20 | components/tf-*/**/*.js 21 | lib/js/**/*.js 22 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/BUILD: -------------------------------------------------------------------------------- 1 | # Description: 2 | # TensorBoard, a dashboard for investigating TensorFlow 3 | 4 | package(default_visibility = ["//tensorflow:internal"]) 5 | 6 | licenses(["notice"]) # Apache 2.0 7 | 8 | exports_files(["LICENSE"]) 9 | 10 | filegroup( 11 | name = "frontend", 12 | srcs = [ 13 | "dist/index.html", 14 | "dist/tf-tensorboard.html", 15 | "//tensorflow/tensorboard/bower:bower", 16 | "TAG", 17 | ] + glob(["lib/**/*"]), 18 | ) 19 | 20 | py_binary( 21 | name = "tensorboard", 22 | srcs = ["tensorboard.py"], 23 | data = [":frontend"], 24 | srcs_version = "PY2AND3", 25 | deps = [ 26 | "//tensorflow/python:platform", 27 | "//tensorflow/tensorboard/backend:server", 28 | ], 29 | ) 30 | 31 | filegroup( 32 | name = "all_files", 33 | srcs = glob( 34 | ["**/*"], 35 | exclude = [ 36 | "**/METADATA", 37 | "**/OWNERS", 38 | "**/node_modules/**", 39 | "**/typings/**", 40 | ], 41 | ), 42 | visibility = ["//tensorflow:__subpackages__"], 43 | ) 44 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/CHANGES: -------------------------------------------------------------------------------- 1 | --- 2 --- 2 | Begin tracking TensorBoard changes. 3 | 4 | --- 3 --- 5 | Change default # of scalar values to 1000 6 | Fix bug where TensorBoard discards all values after a restart. 7 | 8 | --- 4 --- 9 | Fix another case where TensorBoard discards values after a restart. 10 | Add a "toggle all runs" button. -------------------------------------------------------------------------------- /tensorflow/tensorboard/TAG: -------------------------------------------------------------------------------- 1 | 13 2 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/tensorboard/__init__.py -------------------------------------------------------------------------------- /tensorflow/tensorboard/app/analytics.js: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | // Nothing to see here. vulcanize doesn't like empty files. 17 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/backend/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/tensorboard/backend/__init__.py -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 13 | 14 | 15 | 16 | TensorBoard 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-categorizer/test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-collapsable-pane/demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 |

This is content inside the pane.

12 |
13 | 14 | 17 | 18 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-dashboard-common/scrollbar-style.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 28 | 29 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-dashboard-common/tensorboard-color.html: -------------------------------------------------------------------------------- 1 | 2 | 14 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-dashboard-common/warning-style.html: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-event-dashboard/demo/data/runs.json: -------------------------------------------------------------------------------- 1 | { 2 | "alpha": { 3 | "scalars": [ 4 | "d1", 5 | "d2", 6 | "d3", 7 | "d4" 8 | ], 9 | "histograms": [], 10 | "images": [] 11 | }, 12 | "beta": { 13 | "scalars": [ 14 | "d1", 15 | "d2", 16 | "d3", 17 | "d4" 18 | ], 19 | "histograms": [], 20 | "images": [] 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-event-dashboard/demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Event Dashboard Demo Demo 8 | 9 | 10 | 11 | 17 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-graph-common/test/graph-test.ts: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | suite("graph", () => { 17 | let assert = chai.assert; 18 | 19 | test("graphlib exists", () => { 20 | assert.isTrue(graphlib != null); 21 | }); 22 | 23 | // TODO(bp): write tests. 24 | 25 | }); 26 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-graph-common/test/hierarchy-test.ts: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | suite("graph", () => { 17 | let assert = chai.assert; 18 | 19 | test("graphlib exists", () => { 20 | assert.isTrue(graphlib != null); 21 | }); 22 | 23 | // TODO(bp): write tests. 24 | 25 | }); 26 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-graph-common/test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-graph-common/test/layout-test.ts: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | suite("layout", () => { 17 | let assert = chai.assert; 18 | 19 | test("dagre exists", () => { 20 | assert.isTrue(dagre != null); 21 | }); 22 | 23 | // TODO(bp): write tests. 24 | 25 | }); 26 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-graph-common/tf-graph-common.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-graph-loader/test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-graph-loader/test/loader.ts: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | suite("graph loader", () => { 17 | let assert = chai.assert; 18 | 19 | test("loader exists", () => { 20 | assert.isTrue(document.getElementById("loader") != null); 21 | }); 22 | 23 | // TODO(bp): write tests. 24 | 25 | }); 26 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-image-dashboard/demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Image Dashboard Demo 8 | 18 | 19 | 20 |

This demo is currently broken.

21 |
22 | 23 |
24 | 25 | 26 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-imports/README.md: -------------------------------------------------------------------------------- 1 | This file acts as import routers for third party javascript libraries, 2 | e.g. Plottable and D3. 3 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-imports/d3.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-imports/dagre.html: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-imports/google/README.md: -------------------------------------------------------------------------------- 1 | This file acts as import routers for third party javascript libraries, 2 | e.g. Plottable and D3 from `g3/third_party`; it exists to facilitate development 3 | inside google. 4 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-imports/google/d3.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-imports/google/dagre.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-imports/google/graphlib.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-imports/google/lodash.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-imports/google/plottable.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-imports/graphlib.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-imports/lodash.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-imports/plottable.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-regex-group/demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 19 | 28 | 29 | 32 | 33 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-tensorboard/demo/data/poly5-graph.pbtxt: -------------------------------------------------------------------------------- 1 | node { 2 | name: "A" 3 | op: "Input" 4 | } 5 | node { 6 | name: "B" 7 | op: "Input" 8 | } 9 | node { 10 | name: "C" 11 | op: "MatMul" 12 | input: "A" 13 | input: "B" 14 | } 15 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-tensorboard/demo/data/sin-graph.pbtxt: -------------------------------------------------------------------------------- 1 | node { 2 | name: "Q" 3 | op: "Input" 4 | } 5 | node { 6 | name: "W" 7 | op: "Input" 8 | } 9 | node { 10 | name: "X" 11 | op: "MatMul" 12 | input: "Q" 13 | input: "W" 14 | } 15 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/components/tf-tensorboard/demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/gulp_tasks/bower.js: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | var gulp = require('gulp'); 17 | var bower = require('gulp-bower'); 18 | 19 | module.exports = function() { 20 | return function() { 21 | return bower(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/gulp_tasks/typings.js: -------------------------------------------------------------------------------- 1 | /* Copyright 2015 Google Inc. 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 | var gulp = require('gulp'); 16 | var typings = require('gulp-typings'); 17 | 18 | module.exports = function() { 19 | return gulp.src('./typings.json') 20 | .pipe(typings()); 21 | } 22 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/lib/css/global.css: -------------------------------------------------------------------------------- 1 | html,body { 2 | margin: 0; 3 | padding: 0; 4 | height: 100%; 5 | font-family: "RobotoDraft","Roboto",sans-serif; 6 | } 7 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/lib/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/tensorboard/lib/images/favicon.png -------------------------------------------------------------------------------- /tensorflow/tensorboard/lib/js/backend/test/data/histograms_run_run1_tag_histo1: -------------------------------------------------------------------------------- 1 | [[400.0, 40, [-0.3584790755077172, 3.0267252195784047, 20.0, 24.012225532303315, 48.29045006426564, [-0.35363819004775493, -0.29226296698161564, -0.19961953895336082, 0.3214892636797772, 0.5177616740489182, 0.56953784145381, 0.6264916255991911, 0.7580548669750213, 0.8338603536725235, 1.220854943811942, 1.3429404381931362, 1.47723448201245, 1.624957930213695, 1.7874537232350647, 1.9661990955585713, 2.379100905625872, 2.6170109961884593, 3.1665833053880363], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 2.0]]]] -------------------------------------------------------------------------------- /tensorflow/tensorboard/lib/js/backend/test/data/images_run_run1_tag_im1: -------------------------------------------------------------------------------- 1 | [{"wall_time": 0, "step": 0, "query": "index=0&tag=im1&run=run1", "width": 1, "height": 1}] -------------------------------------------------------------------------------- /tensorflow/tensorboard/lib/js/backend/test/data/individualImage_index_0_tag_im1_run_run1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/tensorboard/lib/js/backend/test/data/individualImage_index_0_tag_im1_run_run1 -------------------------------------------------------------------------------- /tensorflow/tensorboard/lib/js/backend/test/data/runs: -------------------------------------------------------------------------------- 1 | {"run1": {"images": ["im1"], "scalars": ["cross_entropy (1)"], "histograms": ["histo1"], "compressedHistograms": ["histo1"], "graph": false}} -------------------------------------------------------------------------------- /tensorflow/tensorboard/lib/js/backend/test/data/scalars: -------------------------------------------------------------------------------- 1 | {"run1": {"cross_entropy (1)": [[0, 0, 0.0], [10.0, 1, 1.0], [20.0, 2, 4.0], [30.0, 3, 9.0], [40.0, 4, 16.0]]}} -------------------------------------------------------------------------------- /tensorflow/tensorboard/lib/js/backend/test/data/scalars_run_run1_tag_cross_entropy__281_29: -------------------------------------------------------------------------------- 1 | [[0, 0, 0.0], [10.0, 1, 1.0], [20.0, 2, 4.0], [30.0, 3, 9.0], [40.0, 4, 16.0]] -------------------------------------------------------------------------------- /tensorflow/tensorboard/lib/js/nanite/test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/lib/js/node-radar/test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/lib/js/requestManager/test/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": 3, 3 | "bar": "zoidberg" 4 | } 5 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/lib/js/requestManager/test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tensorflow-vis", 3 | "version": "0.0.0", 4 | "description": "Visualizers for TensorFlow", 5 | "scripts": { 6 | "test": "gulp test" 7 | }, 8 | "keywords": [ 9 | "tensorflow" 10 | ], 11 | "author": "Google", 12 | "license": "Apache-2.0", 13 | "devDependencies": { 14 | "gulp": "~3.9.0", 15 | "gulp-cli": "^1.1.0", 16 | "gulp-filter": "~3.0.1", 17 | "gulp-replace": "~0.5.4", 18 | "gulp-server-livereload": "~1.5.4", 19 | "gulp-tslint": "~4.2.2", 20 | "gulp-typescript": "~2.10.0", 21 | "gulp-util": "~3.0.7", 22 | "gulp-vulcanize": "~6.1.0", 23 | "merge2": "~0.3.6", 24 | "minimist": "~1.2.0", 25 | "tslint": "^3.2.1", 26 | "typescript": "1.8.0", 27 | "vulcanize": "^1.14.0", 28 | "web-component-tester": "4.2.2", 29 | "gulp-header": "~1.7.1", 30 | "gulp-rename": "~1.2.2", 31 | "gulp-typings": "~1.1.0", 32 | "gulp-bower": "0.0.13" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/scripts/BUILD: -------------------------------------------------------------------------------- 1 | # Description: 2 | # Some useful scripts that are bundled with TensorBoard. 3 | 4 | package(default_visibility = ["//tensorflow:internal"]) 5 | 6 | licenses(["notice"]) # Apache 2.0 7 | 8 | exports_files(["LICENSE"]) 9 | 10 | py_binary( 11 | name = "serialize_tensorboard", 12 | srcs = ["serialize_tensorboard.py"], 13 | srcs_version = "PY2AND3", 14 | deps = [ 15 | "//tensorflow:tensorflow_py", 16 | "//tensorflow/python:platform", 17 | "//tensorflow/tensorboard/backend:server", 18 | ], 19 | ) 20 | 21 | py_binary( 22 | name = "generate_testdata", 23 | srcs = ["generate_testdata.py"], 24 | srcs_version = "PY2AND3", 25 | deps = [ 26 | "//tensorflow:tensorflow_py", 27 | "//tensorflow/python:platform", 28 | ], 29 | ) 30 | 31 | filegroup( 32 | name = "all_files", 33 | srcs = glob(["*"]), 34 | visibility = ["//tensorflow:__subpackages__"], 35 | ) 36 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/scripts/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/tensorboard/scripts/__init__.py -------------------------------------------------------------------------------- /tensorflow/tensorboard/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "noImplicitAny": false, 4 | "noEmitOnError": true, 5 | "target": "ES5" 6 | }, 7 | "compileOnSave": false, 8 | "exclude": [ 9 | "node_modules", 10 | "typings/main.d.ts", 11 | "typings/main" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/typings.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tensorflow-vis", 3 | "ambientDependencies": { 4 | "chai-3.2.0": "github:DefinitelyTyped/DefinitelyTyped/chai/chai-3.2.0.d.ts#9c25433c84251bfe72bf0030a95edbbb2c81c9d5", 5 | "d3": "github:DefinitelyTyped/DefinitelyTyped/d3/d3.d.ts#eb59a40d3c2f3257e34ec2ede181046230814a41", 6 | "mocha": "github:DefinitelyTyped/DefinitelyTyped/mocha/mocha.d.ts#484544d14d400190b20f270341c97b16adc0f1ef", 7 | "webcomponents.js": "github:DefinitelyTyped/DefinitelyTyped/webcomponents.js/webcomponents.js.d.ts#e9be3cecf8a326d3e220c52b42d218169a7bb9f2", 8 | "lodash": "github:DefinitelyTyped/DefinitelyTyped/lodash/lodash.d.ts#eb835aa72f45eee4246b1de8beeffe2010c689e6", 9 | "polymer": "github:DefinitelyTyped/DefinitelyTyped/polymer/polymer.d.ts#e9be3cecf8a326d3e220c52b42d218169a7bb9f2", 10 | "es6-promise": "github:DefinitelyTyped/DefinitelyTyped/es6-promise/es6-promise.d.ts#e9be3cecf8a326d3e220c52b42d218169a7bb9f2" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /tensorflow/tensorboard/wct.conf.json: -------------------------------------------------------------------------------- 1 | { 2 | "suites": [ 3 | "components/tf-*/test", 4 | "lib/js/*/test" 5 | ], 6 | "plugins": ["local"], 7 | "webserver": { 8 | "pathMappings": [ 9 | {"/components//lib/js": "components"} 10 | ] 11 | } 12 | } -------------------------------------------------------------------------------- /tensorflow/tools/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/tools/__init__.py -------------------------------------------------------------------------------- /tensorflow/tools/ci_build/Dockerfile.cpu: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04 2 | 3 | MAINTAINER Jan Prach 4 | 5 | # Copy and run the install scripts. 6 | COPY install/*.sh /install/ 7 | RUN /install/install_bootstrap_deb_packages.sh 8 | RUN add-apt-repository -y ppa:openjdk-r/ppa 9 | RUN /install/install_deb_packages.sh 10 | RUN /install/install_bazel.sh 11 | 12 | # Set up bazelrc. 13 | COPY install/.bazelrc /root/.bazelrc 14 | ENV BAZELRC /root/.bazelrc 15 | -------------------------------------------------------------------------------- /tensorflow/tools/ci_build/Dockerfile.debian.jessie.cpu: -------------------------------------------------------------------------------- 1 | FROM debian:jessie 2 | 3 | MAINTAINER Jan Prach 4 | 5 | # Copy and run the install scripts. 6 | COPY install/*.sh /install/ 7 | RUN /install/install_bootstrap_deb_packages.sh 8 | RUN echo "deb http://http.debian.net/debian jessie-backports main" | tee -a /etc/apt/sources.list 9 | RUN /install/install_deb_packages.sh 10 | RUN /install/install_bazel.sh 11 | 12 | # Set up bazelrc. 13 | COPY install/.bazelrc /root/.bazelrc 14 | ENV BAZELRC /root/.bazelrc 15 | -------------------------------------------------------------------------------- /tensorflow/tools/ci_build/Dockerfile.gpu: -------------------------------------------------------------------------------- 1 | FROM nvidia/cuda:7.5-cudnn4-devel 2 | 3 | MAINTAINER Jan Prach 4 | 5 | # Copy and run the install scripts. 6 | COPY install/*.sh /install/ 7 | RUN /install/install_bootstrap_deb_packages.sh 8 | RUN add-apt-repository -y ppa:openjdk-r/ppa 9 | RUN /install/install_deb_packages.sh 10 | RUN /install/install_bazel.sh 11 | 12 | # Set up bazelrc. 13 | COPY install/.bazelrc /root/.bazelrc 14 | ENV BAZELRC /root/.bazelrc 15 | 16 | # Set up CUDA variables 17 | ENV CUDA_PATH /usr/local/cuda 18 | ENV LD_LIBRARY_PATH /usr/local/cuda/lib64 19 | 20 | # Configure the build for our CUDA configuration. 21 | ENV CUDA_TOOLKIT_PATH /usr/local/cuda 22 | ENV CUDNN_INSTALL_PATH /usr/local/cuda 23 | ENV TF_NEED_CUDA 1 24 | -------------------------------------------------------------------------------- /tensorflow/tools/ci_build/install/.bazelrc: -------------------------------------------------------------------------------- 1 | # Running bazel inside a `docker build` command causes trouble, cf: 2 | # https://github.com/bazelbuild/bazel/issues/134 3 | # The easiest solution is to set up a bazelrc file forcing --batch. 4 | startup --batch 5 | 6 | # Similarly, we need to workaround sandboxing issues: 7 | # https://github.com/bazelbuild/bazel/issues/418 8 | build --spawn_strategy=standalone --genrule_strategy=standalone 9 | test --spawn_strategy=standalone 10 | 11 | build --color=yes --verbose_failures 12 | test --color=yes --verbose_failures --test_timeout=3600 --test_output=errors --test_verbose_timeout_warnings 13 | -------------------------------------------------------------------------------- /tensorflow/tools/ci_build/install/install_bootstrap_deb_packages.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Copyright 2015 Google Inc. All Rights Reserved. 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # ============================================================================== 16 | 17 | set -e 18 | 19 | # Install bootstrap dependencies from ubuntu deb repository. 20 | apt-get update 21 | apt-get install -y \ 22 | software-properties-common 23 | apt-get clean 24 | rm -rf /var/lib/apt/lists/* 25 | -------------------------------------------------------------------------------- /tensorflow/tools/docker/BUILD: -------------------------------------------------------------------------------- 1 | # Description: 2 | # Various tools and rules related to the TensorFlow docker container. 3 | 4 | package(default_visibility = ["//visibility:private"]) 5 | 6 | licenses(["notice"]) # Apache 2.0 7 | 8 | exports_files(["LICENSE"]) 9 | 10 | py_binary( 11 | name = "simple_console", 12 | srcs = ["simple_console.py"], 13 | srcs_version = "PY2AND3", 14 | deps = ["//tensorflow:tensorflow_py"], 15 | ) 16 | 17 | filegroup( 18 | name = "all_files", 19 | srcs = glob( 20 | ["**/*"], 21 | exclude = [ 22 | "**/METADATA", 23 | "**/OWNERS", 24 | ], 25 | ), 26 | visibility = ["//tensorflow:__subpackages__"], 27 | ) 28 | -------------------------------------------------------------------------------- /tensorflow/tools/docker/LICENSE: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /tensorflow/tools/docker/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petewarden/tensorflow_ios/08b6b631d393826077dde7e8fdfd3dc9c1e91c6d/tensorflow/tools/docker/__init__.py -------------------------------------------------------------------------------- /tensorflow/tools/docker/jupyter_notebook_config.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 Google Inc. 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 | c.NotebookApp.ip = '*' 17 | c.NotebookApp.port = 8888 18 | c.NotebookApp.open_browser = False 19 | c.MultiKernelManager.default_kernel_name = 'python2' 20 | -------------------------------------------------------------------------------- /tensorflow/tools/docker/notebooks/LICENSE: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /tensorflow/tools/docker/run_jupyter.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright 2015 Google Inc. All Rights Reserved. 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # ============================================================================== 16 | 17 | 18 | jupyter notebook "$@" 19 | -------------------------------------------------------------------------------- /tensorflow/tools/pip_package/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include README 2 | recursive-include * *.py 3 | recursive-include * *.so 4 | -------------------------------------------------------------------------------- /tensorflow/tools/pip_package/README: -------------------------------------------------------------------------------- 1 | TensorFlow 2 | -------------------------------------------------------------------------------- /tensorflow/tools/swig/swig.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright 2015 Google Inc. All Rights Reserved. 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # ============================================================================== 16 | 17 | swig "$@" 18 | -------------------------------------------------------------------------------- /third_party/eigen3/BUILD: -------------------------------------------------------------------------------- 1 | licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like 2 | 3 | cc_library( 4 | name = "eigen3", 5 | hdrs = glob([ 6 | "Eigen/Core", 7 | "Eigen/LU", 8 | "Eigen/Cholesky", 9 | "Eigen/Eigenvalues", 10 | "Eigen/QR", 11 | "unsupported/Eigen/CXX11/Tensor", 12 | "unsupported/Eigen/CXX11/FixedPoint", 13 | "unsupported/Eigen/CXX11/src/FixedPoint/*.h", 14 | "unsupported/Eigen/CXX11/NeuralNetworks", 15 | "unsupported/Eigen/CXX11/src/NeuralNetworks/*.h", 16 | ]), 17 | includes = ["."], 18 | visibility = ["//visibility:public"], 19 | deps = [ 20 | "@eigen_archive//:eigen", 21 | ], 22 | ) 23 | -------------------------------------------------------------------------------- /third_party/eigen3/Eigen/Cholesky: -------------------------------------------------------------------------------- 1 | #include "eigen-eigen-88444e025a5c/Eigen/Cholesky" 2 | -------------------------------------------------------------------------------- /third_party/eigen3/Eigen/Core: -------------------------------------------------------------------------------- 1 | #include "eigen-eigen-88444e025a5c/Eigen/Core" 2 | -------------------------------------------------------------------------------- /third_party/eigen3/Eigen/Eigenvalues: -------------------------------------------------------------------------------- 1 | #include "eigen-eigen-88444e025a5c/Eigen/Eigenvalues" 2 | -------------------------------------------------------------------------------- /third_party/eigen3/Eigen/LU: -------------------------------------------------------------------------------- 1 | #include "eigen-eigen-88444e025a5c/Eigen/LU" 2 | -------------------------------------------------------------------------------- /third_party/eigen3/Eigen/QR: -------------------------------------------------------------------------------- 1 | #include "eigen-eigen-88444e025a5c/Eigen/QR" 2 | -------------------------------------------------------------------------------- /third_party/eigen3/unsupported/Eigen/CXX11/Tensor: -------------------------------------------------------------------------------- 1 | #include "eigen-eigen-88444e025a5c/unsupported/Eigen/CXX11/Tensor" 2 | -------------------------------------------------------------------------------- /third_party/gpus/crosstool/BUILD: -------------------------------------------------------------------------------- 1 | licenses(["restricted"]) 2 | 3 | package(default_visibility = ["//visibility:public"]) 4 | 5 | filegroup( 6 | name = "crosstool", 7 | srcs = ["CROSSTOOL"], 8 | output_licenses = ["unencumbered"], 9 | ) 10 | 11 | cc_toolchain( 12 | name = "cc-compiler-local", 13 | all_files = ":empty", 14 | compiler_files = ":empty", 15 | cpu = "local", 16 | dwp_files = ":empty", 17 | dynamic_runtime_libs = [":empty"], 18 | linker_files = ":empty", 19 | objcopy_files = ":empty", 20 | static_runtime_libs = [":empty"], 21 | strip_files = ":empty", 22 | supports_param_files = 0, 23 | ) 24 | 25 | filegroup( 26 | name = "empty", 27 | srcs = [], 28 | ) 29 | -------------------------------------------------------------------------------- /third_party/py/numpy/BUILD: -------------------------------------------------------------------------------- 1 | licenses(["restricted"]) 2 | 3 | package(default_visibility = ["//visibility:public"]) 4 | 5 | cc_library( 6 | name = "headers", 7 | hdrs = glob([ 8 | "numpy_include/**/*.h", 9 | ]), 10 | data = ["//util/python:python_checked"], 11 | includes = [ 12 | "numpy_include", 13 | ], 14 | ) 15 | -------------------------------------------------------------------------------- /util/python/BUILD: -------------------------------------------------------------------------------- 1 | licenses(["restricted"]) 2 | 3 | package(default_visibility = ["//visibility:public"]) 4 | 5 | cc_library( 6 | name = "python_headers", 7 | hdrs = glob([ 8 | "python_include/**/*.h", 9 | ]), 10 | data = [":python_checked"], 11 | includes = ["python_include"], 12 | ) 13 | 14 | genrule( 15 | name = "python_check", 16 | srcs = [ 17 | "python_config.sh", 18 | ], 19 | outs = [ 20 | "python_checked", 21 | ], 22 | cmd = "OUTPUTDIR=\"$(@D)/\"; $(location :python_config.sh) --check && touch $$OUTPUTDIR/python_checked", 23 | local = 1, 24 | ) 25 | --------------------------------------------------------------------------------