ID
stringlengths
36
36
Language
stringclasses
1 value
Repository Name
stringclasses
13 values
File Name
stringlengths
2
48
File Path in Repository
stringlengths
11
111
File Path for Unit Test
stringlengths
13
116
Code
stringlengths
0
278k
Unit Test - (Ground Truth)
stringlengths
78
663k
Code Url
stringlengths
91
198
Test Code Url
stringlengths
93
203
Commit Hash
stringclasses
13 values
acb28b16-a116-4b1a-a11e-a1ee50b66645
cpp
tensorflow/tensorflow
force_xla_constants_on_host_pass
tensorflow/compiler/jit/force_xla_constants_on_host_pass.cc
tensorflow/compiler/jit/force_xla_constants_on_host_pass_test.cc
#include "tensorflow/compiler/jit/force_xla_constants_on_host_pass.h" #include "tensorflow/compiler/jit/compilability_check_util.h" #include "tensorflow/compiler/jit/defs.h" #include "tensorflow/core/common_runtime/optimization_registry.h" namespace tensorflow { Status ForceXlaConstantsOnHostPass::Run( const GraphO...
#include "tensorflow/compiler/jit/force_xla_constants_on_host_pass.h" #include "absl/strings/match.h" #include "absl/strings/str_cat.h" #include "tensorflow/cc/framework/ops.h" #include "tensorflow/cc/ops/functional_ops.h" #include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/compiler/jit/compilability_check...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/force_xla_constants_on_host_pass.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/force_xla_constants_on_host_pass_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
8b3d1a79-9e0e-4afa-b82c-826ddee12d52
cpp
tensorflow/tensorflow
xla_launch_util
tensorflow/compiler/jit/xla_launch_util.cc
tensorflow/compiler/jit/xla_launch_util_test.cc
#include "tensorflow/compiler/jit/xla_launch_util.h" #include <cstdint> #include <memory> #include <optional> #include <set> #include <utility> #include <vector> #include "absl/algorithm/container.h" #include "absl/cleanup/cleanup.h" #include "absl/container/flat_hash_set.h" #include "absl/status/status.h" #include "ab...
#include "tensorflow/compiler/jit/xla_launch_util.h" #include <cstdint> #include <memory> #include <utility> #include <vector> #include <gtest/gtest.h> #include "absl/container/flat_hash_set.h" #include "tensorflow/compiler/jit/device_compiler.h" #include "tensorflow/compiler/jit/flags.h" #include "tensorflow/compiler/...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/xla_launch_util.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/xla_launch_util_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
1049daff-5780-4d51-8e50-1ccb85757684
cpp
tensorflow/tensorflow
increase_dynamism_for_auto_jit_pass
tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.cc
tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass_test.cc
#include "tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.h" #include <iterator> #include "absl/algorithm/container.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view....
#include "tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.h" #include <gmock/gmock.h> #include "absl/status/status.h" #include "tensorflow/cc/framework/ops.h" #include "tensorflow/cc/framework/scope.h" #include "tensorflow/cc/ops/array_ops.h" #include "tensorflow/cc/ops/const_op.h" #include "tensorflow/comp...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
03c6a1b3-c3f5-412b-b106-c1bd4b1e3f06
cpp
tensorflow/tensorflow
xla_kernel_creator
tensorflow/compiler/jit/xla_kernel_creator.cc
tensorflow/compiler/jit/xla_kernel_creator_test.cc
#include "tensorflow/compiler/jit/xla_kernel_creator.h" #include <memory> #include <vector> #include "absl/memory/memory.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" #include "tensorflow/compiler/jit/compilability_check_util.h" #include "tensorflow/compiler/jit/defs.h" #include "tensorflow/...
#include "tensorflow/compiler/jit/xla_kernel_creator.h" #include "absl/memory/memory.h" #include "absl/status/status.h" #include "tensorflow/core/common_runtime/device_factory.h" #include "tensorflow/core/common_runtime/function.h" #include "tensorflow/core/framework/function_testlib.h" #include "tensorflow/core/framew...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/xla_kernel_creator.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/xla_kernel_creator_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
779e5c14-9a64-4b41-8d98-5656de7f3bb9
cpp
tensorflow/tensorflow
extract_outside_compilation_pass
tensorflow/compiler/jit/extract_outside_compilation_pass.cc
tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc
#include "tensorflow/compiler/jit/extract_outside_compilation_pass.h" #include "absl/container/flat_hash_map.h" #include "absl/strings/match.h" #include "absl/strings/str_cat.h" #include "tensorflow/compiler/jit/encapsulate_subgraphs_pass.h" #include "tensorflow/compiler/jit/encapsulate_util.h" #include "tensorflow/com...
#include "tensorflow/compiler/jit/extract_outside_compilation_pass.h" #include "absl/strings/match.h" #include "tensorflow/cc/framework/scope.h" #include "tensorflow/cc/ops/array_ops.h" #include "tensorflow/cc/ops/function_ops.h" #include "tensorflow/cc/ops/functional_ops.h" #include "tensorflow/cc/ops/standard_ops.h" ...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/extract_outside_compilation_pass.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
2cef0ad9-29f3-4fb7-a084-6fed5363bd83
cpp
tensorflow/tensorflow
pjrt_compile_util
tensorflow/compiler/jit/pjrt_compile_util.cc
tensorflow/compiler/jit/pjrt_compile_util_test.cc
#include "tensorflow/compiler/jit/pjrt_compile_util.h" #include <vector> #include "tensorflow/compiler/jit/device_compilation_profiler.h" #include "tensorflow/compiler/jit/device_compiler.h" #include "tensorflow/compiler/jit/xla_compile_util.h" #include "tensorflow/compiler/jit/xla_compiler_options_util.h" #include "te...
#if GOOGLE_CUDA || TENSORFLOW_USE_ROCM #include "tensorflow/compiler/jit/pjrt_compile_util.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include "tensorflow/cc/framework/scope.h" #include "tensorflow/cc/ops/function_ops.h" #include "tensorflow/cc/ops/math_ops.h" #include "tensorflow/compiler/jit/test_util.h" #i...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/pjrt_compile_util.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/pjrt_compile_util_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
04076f27-7215-4ac2-a0ad-d0a45b77807a
cpp
tensorflow/tensorflow
build_xla_ops_pass
tensorflow/compiler/jit/build_xla_ops_pass.cc
tensorflow/compiler/jit/build_xla_ops_pass_test.cc
#include "tensorflow/compiler/jit/build_xla_ops_pass.h" #include "absl/algorithm/container.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_join.h" #include "tensorflow/cc/framework/ops.h" #include "tensorflow/cc/framework/scope_internal.h" #include "tensorflow/cc/ops/array_ops.h" #include "tensorflow/cc...
#include "tensorflow/compiler/jit/build_xla_ops_pass.h" #include "tensorflow/cc/framework/ops.h" #include "tensorflow/cc/ops/array_ops.h" #include "tensorflow/cc/ops/resource_variable_ops.h" #include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/compiler/jit/defs.h" #include "tensorflow/compiler/jit/encapsula...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/build_xla_ops_pass.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/build_xla_ops_pass_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
abfebcd9-00e5-45bc-b724-26719c12e44e
cpp
tensorflow/tensorflow
device_compiler_client
tensorflow/compiler/jit/device_compiler_client.cc
tensorflow/compiler/jit/device_compiler_client_test.cc
#include "tensorflow/compiler/jit/device_compiler_client.h" #include "tensorflow/compiler/tf2xla/xla_compiler.h" #include "tensorflow/core/util/determinism.h" namespace tensorflow { xla::ExecutableBuildOptions GetExecutableBuildOptions( const XlaCompiler::Options& options, const XlaCompiler::CompilationResult& ...
#include "tensorflow/compiler/jit/device_compiler_client.h" #include <gtest/gtest.h> namespace tensorflow { namespace { TEST(GetExecutableOptionTest, Basic) { XlaCompiler::Options options; options.device_ordinal = 0; options.alias_passthrough_params = true; options.detailed_logging = true; XlaCompiler::Compil...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/device_compiler_client.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/device_compiler_client_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
0d3e2abc-aee0-4883-9b64-e40c9683c5e0
cpp
tensorflow/tensorflow
compilability_check_util
tensorflow/compiler/jit/compilability_check_util.cc
tensorflow/compiler/jit/compilability_check_util_test.cc
#include "tensorflow/compiler/jit/compilability_check_util.h" #include <algorithm> #include <atomic> #include <deque> #include <iterator> #include <limits> #include <string> #include <unordered_map> #include <unordered_set> #include <utility> #include "absl/algorithm/container.h" #include "absl/container/flat_hash_map....
#include "tensorflow/compiler/jit/compilability_check_util.h" #include "absl/memory/memory.h" #include "tensorflow/cc/framework/scope.h" #include "tensorflow/cc/ops/function_ops.h" #include "tensorflow/cc/ops/functional_ops.h" #include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/compiler/tf2xla/xla_op_kerne...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/compilability_check_util.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/compilability_check_util_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
39252d35-6f59-4b20-8f33-d23b8995e42d
cpp
tensorflow/tensorflow
xla_cluster_util
tensorflow/compiler/jit/xla_cluster_util.cc
tensorflow/compiler/jit/xla_cluster_util_test.cc
#include "tensorflow/compiler/jit/xla_cluster_util.h" #include <string> #include <unordered_map> #include "absl/algorithm/container.h" #include "absl/container/inlined_vector.h" #include "absl/strings/match.h" #include "absl/strings/numbers.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_join.h" #includ...
#include "tensorflow/compiler/jit/xla_cluster_util.h" #include "absl/algorithm/container.h" #include "absl/strings/str_join.h" #include "tensorflow/cc/framework/ops.h" #include "tensorflow/cc/ops/control_flow_ops_internal.h" #include "tensorflow/cc/ops/function_ops.h" #include "tensorflow/cc/ops/functional_ops.h" #incl...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/xla_cluster_util.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/xla_cluster_util_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
b00eb5a1-792c-4449-99f0-8105011eaef0
cpp
tensorflow/tensorflow
encapsulate_util
tensorflow/compiler/jit/encapsulate_util.cc
tensorflow/compiler/jit/encapsulate_util_test.cc
#include "tensorflow/compiler/jit/encapsulate_util.h" #include <algorithm> #include <iterator> #include "absl/container/flat_hash_map.h" #include "absl/container/flat_hash_set.h" #include "absl/strings/str_cat.h" #include "absl/types/optional.h" #include "tensorflow/compiler/jit/shape_inference.h" #include "tensorflow/...
#include "tensorflow/compiler/jit/encapsulate_util.h" #include "tensorflow/cc/framework/scope.h" #include "tensorflow/cc/ops/array_ops.h" #include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/core/framework/node_def_util.h" #include "tensorflow/core/framework/tensor_shape.h" #include "tensorflow/core/framewo...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/encapsulate_util.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/encapsulate_util_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
8e50f42a-d4e9-4044-b05a-302eaf7a972f
cpp
tensorflow/tensorflow
codegen
tensorflow/compiler/aot/codegen.cc
tensorflow/compiler/aot/codegen_test.cc
#include "tensorflow/compiler/aot/codegen.h" #include <memory> #include <string> #include <utility> #include <vector> #include "absl/memory/memory.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_join.h" #include "absl/strings/str_replace.h" #include "absl/strings/str_split.h" #include "absl/strings/subs...
#include "tensorflow/compiler/aot/codegen.h" #include <algorithm> #include <string> #include <vector> #include "absl/strings/match.h" #include "absl/strings/string_view.h" #include "llvm/Support/TargetSelect.h" #include "xla/cpu_function_runtime.h" #include "xla/shape_util.h" #include "tensorflow/core/framework/tensor_...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/aot/codegen.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/aot/codegen_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
75b5b842-ea24-4b95-a9a0-6dbf9817814e
cpp
tensorflow/tensorflow
benchmark
tensorflow/compiler/aot/benchmark.cc
tensorflow/compiler/aot/benchmark_test.cc
#include "tensorflow/compiler/aot/benchmark.h" #include <sys/time.h> #include <algorithm> #include <string> #include <utility> #include <vector> #include "tensorflow/core/platform/types.h" namespace tensorflow { namespace tfcompile { namespace benchmark { static uint64 NowMicros() { struct timeval tv; gettimeofday(...
#include "tensorflow/compiler/aot/benchmark.h" #include "tensorflow/compiler/aot/test_graph_tfadd.h" #include "tensorflow/core/platform/test.h" namespace tensorflow { namespace tfcompile { namespace benchmark { namespace { TEST(Benchmark, Benchmark) { AddComp add; Options options; options.max_iters = 1; Stats s...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/aot/benchmark.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/aot/benchmark_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
d3090d1e-5324-455c-99cb-9831f60b4f72
cpp
tensorflow/tensorflow
array4d
third_party/xla/xla/array4d.h
third_party/xla/xla/array4d_test.cc
#ifndef XLA_ARRAY4D_H_ #define XLA_ARRAY4D_H_ #include <algorithm> #include <functional> #include <initializer_list> #include <iterator> #include <memory> #include <numeric> #include <random> #include <string> #include <vector> #include "absl/strings/str_cat.h" #include "absl/types/span.h" #include "xla/array.h" #inclu...
#include "xla/array4d.h" #include <initializer_list> #include <numeric> #include <vector> #include "absl/log/log.h" #include "absl/types/span.h" #include "Eigen/Core" #include "xla/array2d.h" #include "xla/test.h" namespace xla { namespace { template <typename T> int64_t Array4DLinearIndex(const Array4D<T>& arr, ...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/array4d.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/array4d_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
3d4c0666-2f4c-4f65-b796-b910e48f5143
cpp
tensorflow/tensorflow
fp_util
third_party/xla/xla/fp_util.h
third_party/xla/xla/fp_util_test.cc
#ifndef XLA_FP_UTIL_H_ #define XLA_FP_UTIL_H_ #include <algorithm> #define _USE_MATH_DEFINES #include <cmath> #include <cstdint> #include <cstdlib> #include <limits> #include <optional> #include <utility> #include "xla/types.h" #include "xla/util.h" namespace xla { template <typename T> constexpr bool IsZero(T x) { r...
#include "xla/fp_util.h" #include <algorithm> #include <cmath> #include <cstdint> #include <limits> #include <gtest/gtest.h> #include "absl/base/casts.h" #include "absl/numeric/bits.h" #include "xla/bit_cast.h" #include "xla/test.h" #include "xla/util.h" #include "tsl/platform/ml_dtypes.h" namespace xla { namespace { c...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/fp_util.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/fp_util_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
6685bdc8-3ebc-494e-b6e0-36ecd722d50c
cpp
tensorflow/tensorflow
map_util
tensorflow/core/lib/gtl/map_util.h
third_party/xla/xla/tsl/lib/gtl/map_util_test.cc
#ifndef TENSORFLOW_CORE_LIB_GTL_MAP_UTIL_H_ #define TENSORFLOW_CORE_LIB_GTL_MAP_UTIL_H_ #include "xla/tsl/lib/gtl/map_util.h" namespace tensorflow { namespace gtl { using ::tsl::gtl::EraseKeyReturnValuePtr; using ::tsl::gtl::FindOrNull; using ::tsl::gtl::FindPtrOrNull; using ::tsl::gtl::FindWithDefault; using ::tsl::gt...
#include "xla/tsl/lib/gtl/map_util.h" #include <map> #include <set> #include <string> #include "tsl/platform/test.h" #include "tsl/platform/types.h" namespace tsl { TEST(MapUtil, Find) { typedef std::map<string, string> Map; Map m; EXPECT_EQ("", gtl::FindWithDefault(m, "foo", "")); m["foo"] = "bar"; EXPECT_EQ...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/gtl/map_util.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/lib/gtl/map_util_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
b97172ce-bd0b-4d5c-b376-b2377221647b
cpp
tensorflow/tensorflow
statusor
tensorflow/core/platform/statusor.h
third_party/xla/third_party/tsl/tsl/platform/statusor_test.cc
#ifndef TENSORFLOW_CORE_PLATFORM_STATUSOR_H_ #define TENSORFLOW_CORE_PLATFORM_STATUSOR_H_ #include "tensorflow/core/platform/macros.h" #include "tensorflow/core/platform/status.h" #include "tsl/platform/statusor.h" namespace tensorflow { using tsl::StatusOr; } #endif
#include "tsl/platform/statusor.h" #include <memory> #include <type_traits> #include <utility> #include <vector> #include "absl/base/config.h" #include "tsl/platform/errors.h" #include "tsl/platform/macros.h" #include "tsl/platform/test.h" #include "tsl/platform/test_benchmark.h" namespace tsl { namespace { class Base1...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/platform/statusor.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/statusor_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
b9e0a1bd-6fce-4357-8434-7921a81b9262
cpp
tensorflow/tensorflow
refcounting_hash_map
third_party/xla/xla/refcounting_hash_map.h
third_party/xla/xla/refcounting_hash_map_test.cc
#ifndef XLA_REFCOUNTING_HASH_MAP_H_ #define XLA_REFCOUNTING_HASH_MAP_H_ #include <functional> #include <memory> #include "absl/base/thread_annotations.h" #include "absl/container/node_hash_map.h" #include "absl/functional/function_ref.h" #include "absl/status/statusor.h" #include "absl/synchronization/mutex.h" namespac...
#include "xla/refcounting_hash_map.h" #include <functional> #include <memory> #include <utility> #include "xla/test.h" namespace xla { namespace { struct DeleteNotifier { DeleteNotifier() = default; DeleteNotifier(const DeleteNotifier&) = delete; DeleteNotifier& operator=(const DeleteNotifier&) = delete; Delete...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/refcounting_hash_map.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/refcounting_hash_map_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
11b2521d-ab0f-4b91-a3a6-80f134f4eb7d
cpp
tensorflow/tensorflow
iterator_util
third_party/xla/xla/iterator_util.h
third_party/xla/xla/iterator_util_test.cc
#ifndef XLA_ITERATOR_UTIL_H_ #define XLA_ITERATOR_UTIL_H_ #include <cstddef> #include <iterator> #include <utility> #include "xla/tsl/lib/gtl/iterator_range.h" namespace xla { template <typename NestedIter> class UnwrappingIterator { public: using iterator_category = std::input_iterator_tag; using value_type = dec...
#include "xla/iterator_util.h" #include <algorithm> #include <functional> #include <list> #include <memory> #include <vector> #include "xla/test.h" namespace xla { namespace { TEST(UnwrappingIteratorTest, Simple) { std::vector<std::unique_ptr<int>> v; for (int i = 0; i < 3; ++i) { v.push_back(std::make_unique<i...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/iterator_util.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/iterator_util_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
6bf951a5-3117-4d7c-af58-2d619f8af77e
cpp
tensorflow/tensorflow
bit_cast
third_party/xla/xla/bit_cast.h
third_party/xla/xla/bit_cast_test.cc
#ifndef XLA_BIT_CAST_H_ #define XLA_BIT_CAST_H_ #include <cstdint> #include "absl/base/casts.h" #include "Eigen/Core" #include "xla/types.h" #include "tsl/platform/bfloat16.h" namespace xla { template <typename T, typename U> T BitCast(U src) { static_assert(sizeof(T) == sizeof(U), "sizes don't match"); return absl...
#include "xla/bit_cast.h" #include <cstdint> #include "Eigen/Core" #include "xla/test.h" #include "tsl/platform/bfloat16.h" namespace xla { namespace { using ::Eigen::half; using ::tsl::bfloat16; TEST(BitCastTest, BackAndForth) { for (uint32_t n = 0; n < 0x10000; ++n) { uint16_t initial_rep = n; bfloat16 floa...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/bit_cast.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/bit_cast_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
654f57be-adcb-489c-a11d-b400e8cefe97
cpp
tensorflow/tensorflow
array3d
third_party/xla/xla/array3d.h
third_party/xla/xla/array3d_test.cc
#ifndef XLA_ARRAY3D_H_ #define XLA_ARRAY3D_H_ #include <algorithm> #include <functional> #include <initializer_list> #include <iterator> #include <memory> #include <numeric> #include <random> #include "xla/array.h" #include "xla/types.h" #include "tsl/platform/logging.h" namespace xla { template <typename T> class Arra...
#include "xla/array3d.h" #include <initializer_list> #include "xla/test.h" #include "xla/types.h" namespace xla { namespace { TEST(Array3dTest, UninitializedDimsCtor) { Array3D<int> uninit(2, 3, 4); EXPECT_EQ(uninit.n1(), 2); EXPECT_EQ(uninit.n2(), 3); EXPECT_EQ(uninit.n3(), 4); EXPECT_EQ(uninit.num_elements(...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/array3d.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/array3d_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
5187626f-d2e3-4804-8df7-fa079abdd8b9
cpp
tensorflow/tensorflow
debug_options_parsers
third_party/xla/xla/debug_options_parsers.h
third_party/xla/xla/debug_options_parsers_test.cc
#ifndef XLA_DEBUG_OPTIONS_PARSERS_H_ #define XLA_DEBUG_OPTIONS_PARSERS_H_ #include <string> #include <vector> #include "absl/strings/numbers.h" #include "absl/strings/str_split.h" #include "xla/xla.pb.h" namespace xla { template <typename T> void parse_xla_backend_extra_options(T* extra_options_map, ...
#include "xla/debug_options_parsers.h" #include <string> #include <vector> #include "absl/container/flat_hash_map.h" #include "absl/strings/str_cat.h" #include "xla/debug_options_flags.h" #include "xla/parse_flags_from_env.h" #include "xla/tsl/util/command_line_flags.h" #include "tsl/platform/env.h" #include "tsl/platf...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/debug_options_parsers.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/debug_options_parsers_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
84f6e6ee-611f-4184-955c-815d484011a5
cpp
tensorflow/tensorflow
array2d
third_party/xla/xla/array2d.h
third_party/xla/xla/array2d_test.cc
#ifndef XLA_ARRAY2D_H_ #define XLA_ARRAY2D_H_ #include <algorithm> #include <cstdint> #include <functional> #include <initializer_list> #include <iterator> #include <memory> #include <random> #include <vector> #include "absl/functional/function_ref.h" #include "absl/strings/str_cat.h" #include "xla/array.h" #include "x...
#include "xla/array2d.h" #include <initializer_list> #include <string> #include "Eigen/Core" #include "xla/test.h" #include "tsl/platform/ml_dtypes.h" namespace xla { namespace { TEST(Array2dTest, DefaultCtor) { Array2D<int> empty; EXPECT_EQ(empty.n1(), 0); EXPECT_EQ(empty.n2(), 0); EXPECT_EQ(empty.num_elements...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/array2d.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/array2d_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
2486c2e3-6592-4428-a86c-aeecaa457f0c
cpp
tensorflow/tensorflow
lru_cache
third_party/xla/xla/pjrt/lru_cache.h
third_party/xla/xla/pjrt/lru_cache_test.cc
#ifndef XLA_PJRT_LRU_CACHE_H_ #define XLA_PJRT_LRU_CACHE_H_ #include <optional> #include <unordered_map> #include "absl/container/node_hash_map.h" #include "tsl/platform/logging.h" namespace xla { template <typename Key, typename Value, typename Hash = typename absl::node_hash_map<Key, Value>::hasher, ...
#include "xla/pjrt/lru_cache.h" #include <random> #include "xla/test.h" namespace xla { namespace { TEST(LRUCache, Basics) { LRUCache<int, int>::LRUList list(3); LRUCache<int, int> cache(&list); EXPECT_EQ(3, cache.Capacity()); EXPECT_EQ(0, cache.Size()); EXPECT_EQ(0, cache.GetOrCreateIfAbsent(0, [](int) { ret...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/pjrt/lru_cache.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/pjrt/lru_cache_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
b576bd0b-f67d-4f76-a31b-799406585c21
cpp
tensorflow/tensorflow
pjrt_c_api
third_party/xla/xla/pjrt/c/pjrt_c_api.h
third_party/xla/xla/pjrt/c/pjrt_c_api_test.cc
#ifndef XLA_PJRT_C_PJRT_C_API_H_ #define XLA_PJRT_C_PJRT_C_API_H_ #include <stdbool.h> #include <stddef.h> #include <stdint.h> #define PJRT_STRUCT_SIZE(struct_type, last_field) \ offsetof(struct_type, last_field) + sizeof(((struct_type*)0)->last_field) #define PJRT_DEFINE_STRUCT_TRAITS(sname, last_field) \ typedef ...
#include "xla/pjrt/c/pjrt_c_api_test.h" #include <cstddef> #include <functional> #include <memory> #include <numeric> #include <string> #include <string_view> #include <utility> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/base/thread_annotations.h" #include "absl/log/check.h" #inc...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/pjrt/c/pjrt_c_api.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/pjrt/c/pjrt_c_api_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
855867c7-e9c3-4aca-9d4d-c16ccd2ae5a3
cpp
tensorflow/tensorflow
future
tensorflow/core/tfrt/mlrt/interpreter/future.h
tensorflow/core/tfrt/mlrt/interpreter/future_test.cc
#ifndef TENSORFLOW_CORE_TFRT_MLRT_INTERPRETER_FUTURE_H_ #define TENSORFLOW_CORE_TFRT_MLRT_INTERPRETER_FUTURE_H_ #include <atomic> #include <type_traits> #include <utility> #include "absl/base/attributes.h" #include "absl/log/check.h" #include "tensorflow/core/tfrt/mlrt/interpreter/context.h" #include "tfrt/concurrency/...
#include "tensorflow/core/tfrt/mlrt/interpreter/future.h" #include <utility> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include "absl/status/statusor.h" #include "xla/tsl/concurrency/async_value_ref.h" #include "tsl/platform/status_matchers.h" namespace mlrt { namespace { TEST(Fu...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/tfrt/mlrt/interpreter/future.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/tfrt/mlrt/interpreter/future_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
f9ae76a2-0074-419d-8e7e-40f7fcdfd6d3
cpp
tensorflow/tensorflow
real_time_in_memory_metric
third_party/xla/xla/tsl/framework/real_time_in_memory_metric.h
third_party/xla/xla/tsl/framework/real_time_in_memory_metric_test.cc
#ifndef XLA_TSL_FRAMEWORK_REAL_TIME_IN_MEMORY_METRIC_H_ #define XLA_TSL_FRAMEWORK_REAL_TIME_IN_MEMORY_METRIC_H_ #include <atomic> namespace tsl { template <typename T> class RealTimeInMemoryMetric { public: RealTimeInMemoryMetric() : value_(T{0}) {} T Get() const { return value_.load(std::memory_order_relaxed); } ...
#include "xla/tsl/framework/real_time_in_memory_metric.h" #include <cstdint> #include "tsl/platform/test.h" namespace tsl { namespace { TEST(RealTimeInMemoryMetric, SetAndGet) { RealTimeInMemoryMetric<int64_t> m; EXPECT_EQ(m.Get(), 0); m.Set(100); EXPECT_EQ(m.Get(), 100); } } }
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/framework/real_time_in_memory_metric.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/framework/real_time_in_memory_metric_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
6179176a-3ede-48e4-aaad-e68588ded661
cpp
tensorflow/tensorflow
eigen_spatial_convolutions
tensorflow/lite/kernels/internal/optimized/eigen_spatial_convolutions.h
third_party/xla/xla/tsl/framework/convolution/eigen_spatial_convolutions_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_SPATIAL_CONVOLUTIONS_H_ #define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_SPATIAL_CONVOLUTIONS_H_ #define EIGEN_USE_CUSTOM_THREAD_POOL #define EIGEN_USE_THREADS #define Eigen EigenForTFLite #define TFLITE_REDUCE_INSTANTIATIONS #if defined(TFLITE_REDUCE_INS...
#include "xla/tsl/framework/convolution/eigen_spatial_convolutions.h" #include "absl/strings/str_cat.h" #include "tsl/platform/test.h" #include "tsl/platform/test_benchmark.h" namespace Eigen { #define EigenApprox(a, b) \ { ASSERT_TRUE(std::abs(a - b) <= std::min(std::abs(a), std::abs(b)) * 1e-3); } static int ceil_d...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/internal/optimized/eigen_spatial_convolutions.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/framework/convolution/eigen_spatial_convolutions_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
8961def6-4231-4c6e-8688-9ca6ff3df268
cpp
tensorflow/tensorflow
concurrent_vector
third_party/xla/xla/tsl/concurrency/concurrent_vector.h
third_party/xla/xla/tsl/concurrency/concurrent_vector_test.cc
#ifndef XLA_TSL_CONCURRENCY_CONCURRENT_VECTOR_H_ #define XLA_TSL_CONCURRENCY_CONCURRENT_VECTOR_H_ #include <algorithm> #include <array> #include <atomic> #include <cassert> #include <cstddef> #include <cstdint> #include <vector> #include "absl/synchronization/mutex.h" #include "absl/types/span.h" #include "tsl/platform...
#include "xla/tsl/concurrency/concurrent_vector.h" #include <algorithm> #include <vector> #include "tsl/platform/env.h" #include "tsl/platform/test.h" #include "tsl/platform/threadpool.h" namespace tsl { using ::tsl::internal::ConcurrentVector; TEST(ConcurrentVectorTest, SingleThreaded) { ConcurrentVector<int> vec(1)...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/concurrency/concurrent_vector.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/concurrency/concurrent_vector_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
aae77314-eb0b-4792-8519-6a254ba3f7fb
cpp
tensorflow/tensorflow
bits
tensorflow/lite/experimental/microfrontend/lib/bits.h
third_party/xla/xla/tsl/lib/core/bits_test.cc
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_BITS_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_BITS_H_ #ifdef __cplusplus #include <cstdint> extern "C" { #endif static inline int CountLeadingZeros32Slow(uint64_t n) { int zeroes = 28; if (n >> 16) zeroes -= 16, n >>= 16; if (n >> 8) zeroes -...
#include "xla/tsl/lib/core/bits.h" #include <cstdint> #include "tsl/platform/test.h" namespace tsl { namespace { TEST(BitsTest, NextPowerOfTwoS64) { constexpr int64_t kMaxRepresentablePowerOfTwo = static_cast<int64_t>(uint64_t{1} << 62); EXPECT_EQ(NextPowerOfTwoS64(0), 1); EXPECT_EQ(NextPowerOfTwoS64(1), 1)...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/microfrontend/lib/bits.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/lib/core/bits_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
708fd6f0-6f63-4b65-9f78-85af47149678
cpp
tensorflow/tensorflow
buffered_file
third_party/xla/xla/tsl/lib/io/buffered_file.h
third_party/xla/xla/tsl/lib/io/buffered_file_test.cc
#ifndef XLA_TSL_LIB_IO_BUFFERED_FILE_H_ #define XLA_TSL_LIB_IO_BUFFERED_FILE_H_ #include <algorithm> #include <memory> #include <string> #include <utility> #include "xla/tsl/lib/hash/crc32c.h" #include "tsl/platform/cord.h" #include "tsl/platform/file_system.h" #include "tsl/platform/status.h" namespace tsl { class Buf...
#include "xla/tsl/lib/io/buffered_file.h" #include <memory> #include <utility> #include "xla/tsl/lib/core/status_test_util.h" #include "tsl/platform/env.h" #include "tsl/platform/test.h" #include "tsl/platform/test_benchmark.h" namespace tsl { namespace io { namespace { TEST(BufferedInputStream, Tell) { Env* env = En...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/lib/io/buffered_file.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/lib/io/buffered_file_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
ed071fc0-b1a7-41b0-b171-402f275ef9fc
cpp
tensorflow/tensorflow
math_util
tensorflow/core/lib/math/math_util.h
third_party/xla/xla/tsl/lib/math/math_util_test.cc
#ifndef TENSORFLOW_CORE_LIB_MATH_MATH_UTIL_H_ #define TENSORFLOW_CORE_LIB_MATH_MATH_UTIL_H_ #include "xla/tsl/lib/math/math_util.h" #include "tensorflow/core/platform/logging.h" #include "tensorflow/core/platform/types.h" namespace tensorflow { using tsl::MathUtil; } #endif
#include "xla/tsl/lib/math/math_util.h" #include <cmath> #include <limits> #include <vector> #include "tsl/platform/logging.h" #include "tsl/platform/test.h" #include "tsl/platform/test_benchmark.h" #include "tsl/platform/types.h" namespace tsl { namespace { const int kNumTestArguments = 4; template <typename IntegralT...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/math/math_util.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/lib/math/math_util_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
38da609b-05a2-4452-af29-1e55ce366fdc
cpp
tensorflow/tensorflow
iterator_range
tensorflow/core/lib/gtl/iterator_range.h
third_party/xla/xla/tsl/lib/gtl/iterator_range_test.cc
#ifndef TENSORFLOW_CORE_LIB_GTL_ITERATOR_RANGE_H_ #define TENSORFLOW_CORE_LIB_GTL_ITERATOR_RANGE_H_ #include "xla/tsl/lib/gtl/iterator_range.h" namespace tensorflow { namespace gtl { using ::tsl::gtl::iterator_range; using ::tsl::gtl::make_range; } } #endif
#include "xla/tsl/lib/gtl/iterator_range.h" #include <vector> #include "tsl/platform/macros.h" #include "tsl/platform/test.h" #include "tsl/platform/types.h" namespace tsl { namespace gtl { namespace { TEST(IteratorRange, WholeVector) { std::vector<int> v = {2, 3, 5, 7, 11, 13}; iterator_range<std::vector<int>::ite...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/gtl/iterator_range.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/lib/gtl/iterator_range_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
ba4bb99e-6122-4932-bfa9-b7e6c0737093
cpp
tensorflow/tensorflow
flatmap
tensorflow/core/lib/gtl/flatmap.h
third_party/xla/xla/tsl/lib/gtl/flatmap_test.cc
#ifndef TENSORFLOW_CORE_LIB_GTL_FLATMAP_H_ #define TENSORFLOW_CORE_LIB_GTL_FLATMAP_H_ #include "xla/tsl/lib/gtl/flatmap.h" #include "tensorflow/core/lib/gtl/flatrep.h" #include "tensorflow/core/lib/hash/hash.h" #include "tensorflow/core/platform/logging.h" #include "tensorflow/core/platform/types.h" namespace tensorflo...
#include "xla/tsl/lib/gtl/flatmap.h" #include <algorithm> #include <memory> #include <string> #include <unordered_map> #include <utility> #include <vector> #include "tsl/platform/hash.h" #include "tsl/platform/test.h" #include "tsl/platform/types.h" namespace tsl { namespace gtl { namespace { typedef FlatMap<int64_t, i...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/gtl/flatmap.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/lib/gtl/flatmap_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
b8debb4c-34f9-42e0-8dc5-dcfb180414bb
cpp
tensorflow/tensorflow
flatset
tensorflow/core/lib/gtl/flatset.h
third_party/xla/xla/tsl/lib/gtl/flatset_test.cc
#ifndef TENSORFLOW_CORE_LIB_GTL_FLATSET_H_ #define TENSORFLOW_CORE_LIB_GTL_FLATSET_H_ #include "xla/tsl/lib/gtl/flatset.h" namespace tensorflow { namespace gtl { using tsl::gtl::FlatSet; } } #endif
#include "xla/tsl/lib/gtl/flatset.h" #include <algorithm> #include <memory> #include <string> #include <vector> #include "tsl/platform/hash.h" #include "tsl/platform/test.h" #include "tsl/platform/types.h" namespace tsl { namespace gtl { namespace { typedef FlatSet<int64_t> NumSet; bool Has(const NumSet& set, int64_t k...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/gtl/flatset.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/lib/gtl/flatset_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
ceb9b732-936e-47e9-ba8d-ae0b7dd21e7e
cpp
tensorflow/tensorflow
compactptrset
tensorflow/core/lib/gtl/compactptrset.h
third_party/xla/xla/tsl/lib/gtl/compactptrset_test.cc
#ifndef TENSORFLOW_CORE_LIB_GTL_COMPACTPTRSET_H_ #define TENSORFLOW_CORE_LIB_GTL_COMPACTPTRSET_H_ #include "xla/tsl/lib/gtl/compactptrset.h" namespace tensorflow { namespace gtl { using ::tsl::gtl::CompactPointerSet; } } #endif
#include "xla/tsl/lib/gtl/compactptrset.h" #include "tsl/platform/hash.h" #include "tsl/platform/test.h" #include "tsl/platform/types.h" namespace tsl { namespace gtl { namespace { typedef CompactPointerSet<const char*> StringSet; static std::vector<const char*> SortedContents(const StringSet& set) { std::vector<cons...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/gtl/compactptrset.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/lib/gtl/compactptrset_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
6288d502-0a37-48dc-8f80-6013bf3a35e7
cpp
tensorflow/tensorflow
int_type
tensorflow/core/lib/gtl/int_type.h
third_party/xla/xla/tsl/lib/gtl/int_type_test.cc
#ifndef TENSORFLOW_CORE_LIB_GTL_INT_TYPE_H_ #define TENSORFLOW_CORE_LIB_GTL_INT_TYPE_H_ #include "xla/tsl/lib/gtl/int_type.h" namespace tensorflow { namespace gtl { using ::tsl::gtl::IntType; } } #endif
#include "xla/tsl/lib/gtl/int_type.h" #include <memory> #include <unordered_map> #include "tsl/platform/test.h" #include "tsl/platform/types.h" namespace tsl { TSL_LIB_GTL_DEFINE_INT_TYPE(Int8_IT, int8); TSL_LIB_GTL_DEFINE_INT_TYPE(UInt8_IT, uint8); TSL_LIB_GTL_DEFINE_INT_TYPE(Int16_IT, int16); TSL_LIB_GTL_DEFINE_INT_T...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/gtl/int_type.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/lib/gtl/int_type_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
992ee0d8-2b56-4259-a01e-6a37f75f1b53
cpp
tensorflow/tensorflow
philox_random
tensorflow/core/lib/random/philox_random.h
third_party/xla/xla/tsl/lib/random/philox_random_test.cc
#ifndef TENSORFLOW_CORE_LIB_RANDOM_PHILOX_RANDOM_H_ #define TENSORFLOW_CORE_LIB_RANDOM_PHILOX_RANDOM_H_ #include "xla/tsl/lib/random/philox_random.h" namespace tensorflow { namespace random { using tsl::random::Array; using tsl::random::PhiloxRandom; } } #endif
#include "xla/tsl/lib/random/philox_random.h" #include <math.h> #include <algorithm> #include <functional> #include <unordered_map> #include <vector> #include "xla/tsl/lib/random/philox_random_test_utils.h" #include "xla/tsl/lib/random/random_distributions.h" #include "tsl/platform/logging.h" #include "tsl/platform/ran...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/random/philox_random.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/lib/random/philox_random_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
2a66fc09-36a5-4a49-b77b-1dfda971ec7d
cpp
tensorflow/tensorflow
gauge
tensorflow/core/lib/monitoring/gauge.h
tensorflow/core/lib/monitoring/gauge_test.cc
#ifndef TENSORFLOW_CORE_LIB_MONITORING_GAUGE_H_ #define TENSORFLOW_CORE_LIB_MONITORING_GAUGE_H_ #include "xla/tsl/lib/monitoring/gauge.h" #include "tensorflow/core/lib/monitoring/collection_registry.h" #include "tensorflow/core/lib/monitoring/metric_def.h" namespace tensorflow { namespace monitoring { using tsl::monito...
#include "tensorflow/core/lib/monitoring/gauge.h" #include "tensorflow/core/platform/test.h" namespace tensorflow { namespace monitoring { namespace { auto* gauge_with_labels = Gauge<int64_t, 1>::New( "/tensorflow/test/gauge_with_labels", "Gauge with one label.", "MyLabel"); TEST(LabeledGaugeTest, InitializedWithZe...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/monitoring/gauge.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/monitoring/gauge_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
ce88d644-ba62-4366-b77d-45d407940f71
cpp
tensorflow/tensorflow
cell_reader
tensorflow/core/lib/monitoring/cell_reader.h
tensorflow/core/lib/monitoring/cell_reader_test.cc
#ifndef TENSORFLOW_CORE_LIB_MONITORING_CELL_READER_H_ #define TENSORFLOW_CORE_LIB_MONITORING_CELL_READER_H_ #include <memory> #include <string> #include <utility> #include <vector> #include "absl/container/flat_hash_map.h" #include "xla/tsl/lib/monitoring/cell_reader.h" #include "tensorflow/core/lib/monitoring/cell_rea...
#include "tensorflow/core/lib/monitoring/cell_reader.h" #include <cstdint> #include <string> #include <vector> #include "tensorflow/core/lib/monitoring/counter.h" #include "tensorflow/core/lib/monitoring/gauge.h" #include "tensorflow/core/lib/monitoring/percentile_sampler.h" #include "tensorflow/core/lib/monitoring/sam...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/monitoring/cell_reader.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/monitoring/cell_reader_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
2d2db3f4-da87-49d6-a8e3-2b09a3889fe9
cpp
tensorflow/tensorflow
counter
tensorflow/core/lib/monitoring/counter.h
tensorflow/core/lib/monitoring/counter_test.cc
#ifndef TENSORFLOW_CORE_LIB_MONITORING_COUNTER_H_ #define TENSORFLOW_CORE_LIB_MONITORING_COUNTER_H_ #include "xla/tsl/lib/monitoring/counter.h" #ifdef IS_MOBILE_PLATFORM #include "tensorflow/core/lib/core/status.h" #include "tensorflow/core/platform/macros.h" #include "tensorflow/core/platform/types.h" #else #include "...
#include "tensorflow/core/lib/monitoring/counter.h" #include "tensorflow/core/platform/test.h" namespace tensorflow { namespace monitoring { namespace { auto* counter_with_labels = Counter<1>::New("/tensorflow/test/counter_with_labels", "Counter with one label.", "MyLabel"); TEST(LabeledCounterT...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/monitoring/counter.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/monitoring/counter_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
3b4a14ae-fa50-425d-8ad4-aec55977753d
cpp
tensorflow/tensorflow
metric_def
tensorflow/core/lib/monitoring/metric_def.h
tensorflow/core/lib/monitoring/metric_def_test.cc
#ifndef TENSORFLOW_CORE_LIB_MONITORING_METRIC_DEF_H_ #define TENSORFLOW_CORE_LIB_MONITORING_METRIC_DEF_H_ #include <array> #include <functional> #include <string> #include <vector> #include "xla/tsl/lib/monitoring/metric_def.h" #include "tensorflow/core/framework/summary.pb.h" #include "tensorflow/core/lib/monitoring/t...
#include "tensorflow/core/lib/monitoring/metric_def.h" #include "tensorflow/core/platform/test.h" namespace tensorflow { namespace monitoring { namespace { TEST(MetricDefTest, Simple) { const MetricDef<MetricKind::kCumulative, int64_t, 0> metric_def0( "/tensorflow/metric0", "An example metric with no labels.");...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/monitoring/metric_def.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/monitoring/metric_def_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
10fac47b-79d0-4e11-8153-c2ff1b272ea0
cpp
tensorflow/tensorflow
lock_free_queue
third_party/xla/xla/tsl/profiler/utils/lock_free_queue.h
third_party/xla/xla/tsl/profiler/utils/lock_free_queue_test.cc
#ifndef XLA_TSL_PROFILER_UTILS_LOCK_FREE_QUEUE_H_ #define XLA_TSL_PROFILER_UTILS_LOCK_FREE_QUEUE_H_ #include <stddef.h> #include <algorithm> #include <atomic> #include <cstddef> #include <optional> #include <utility> #include "xla/tsl/profiler/utils/no_init.h" #include "tsl/platform/logging.h" #include "tsl/platform/ma...
#include "xla/tsl/profiler/utils/lock_free_queue.h" #include <cstddef> #include <cstdint> #include <string> #include <vector> #include "absl/synchronization/notification.h" #include "tsl/platform/env.h" #include "tsl/platform/test.h" namespace tsl { namespace profiler { namespace { template <typename T, size_t block_si...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/profiler/utils/lock_free_queue.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/profiler/utils/lock_free_queue_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
1e32686d-4ea4-44d1-9ca4-98c76bc91348
cpp
tensorflow/tensorflow
per_thread
third_party/xla/xla/tsl/profiler/utils/per_thread.h
third_party/xla/xla/tsl/profiler/utils/per_thread_test.cc
#ifndef XLA_TSL_PROFILER_UTILS_PER_THREAD_H_ #define XLA_TSL_PROFILER_UTILS_PER_THREAD_H_ #include <memory> #include <vector> #include "absl/base/thread_annotations.h" #include "absl/container/flat_hash_map.h" #include "absl/synchronization/mutex.h" namespace tsl { namespace profiler { template <typename T> class PerTh...
#include "xla/tsl/profiler/utils/per_thread.h" #include <cstdint> #include <list> #include <memory> #include <string> #include <vector> #include "absl/memory/memory.h" #include "absl/strings/str_cat.h" #include "absl/synchronization/blocking_counter.h" #include "absl/synchronization/notification.h" #include "tsl/platfo...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/profiler/utils/per_thread.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/profiler/utils/per_thread_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
0b4ecda2-0703-4893-9d1d-fe839e027d1e
cpp
tensorflow/tensorflow
timespan
third_party/xla/xla/tsl/profiler/utils/timespan.h
third_party/xla/xla/tsl/profiler/utils/timespan_test.cc
#ifndef XLA_TSL_PROFILER_UTILS_TIMESPAN_H_ #define XLA_TSL_PROFILER_UTILS_TIMESPAN_H_ #include <algorithm> #include <string> #include "absl/strings/str_cat.h" #include "xla/tsl/profiler/utils/math_utils.h" #include "tsl/platform/logging.h" #include "tsl/platform/types.h" namespace tsl { namespace profiler { class Times...
#include "xla/tsl/profiler/utils/timespan.h" #include "tsl/platform/test.h" namespace tsl { namespace profiler { TEST(TimespanTests, NonInstantSpanIncludesSingleTimeTests) { EXPECT_TRUE(Timespan(10, 2).Includes(12)); EXPECT_TRUE(Timespan(12, 1).Includes(12)); } TEST(TimespanTests, NonInstantSpanIncludesInstantSpanT...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/profiler/utils/timespan.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/profiler/utils/timespan_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
97fd9238-bf9e-4cb6-a0bf-0dc0fcda564c
cpp
tensorflow/tensorflow
xla_op_utils
third_party/xla/xla/tsl/profiler/convert/xla_op_utils.h
third_party/xla/xla/tsl/profiler/convert/xla_op_utils_test.cc
#ifndef XLA_TSL_PROFILER_CONVERT_XLA_OP_UTILS_H_ #define XLA_TSL_PROFILER_CONVERT_XLA_OP_UTILS_H_ #include <string> #include "absl/strings/match.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" namespace tsl { namespace profiler { inline bool IsFusion(absl::string_view category) { return abs...
#include "xla/tsl/profiler/convert/xla_op_utils.h" #include "tsl/platform/test.h" namespace tsl { namespace profiler { namespace { TEST(XlaOpUtilsTest, HloModuleNameWithProgramId) { EXPECT_EQ("module(123)", HloModuleNameWithProgramId("module", 123)); } } } }
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/profiler/convert/xla_op_utils.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/profiler/convert/xla_op_utils_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
c282ff11-8b1f-4ce2-90b0-556c13f12219
cpp
tensorflow/tensorflow
concurrency
third_party/xla/xla/backends/cpu/runtime/concurrency.h
third_party/xla/xla/backends/cpu/runtime/concurrency_test.cc
#ifndef XLA_BACKENDS_CPU_RUNTIME_CONCURRENCY_H_ #define XLA_BACKENDS_CPU_RUNTIME_CONCURRENCY_H_ #include <cstdint> #include <functional> #include <memory> #include <type_traits> #include "tsl/platform/logging.h" #define EIGEN_USE_THREADS #include "unsupported/Eigen/CXX11/Tensor" #include "unsupported/Eigen/CXX11/Thread...
#include "xla/backends/cpu/runtime/concurrency.h" #include <cstdint> #include <vector> #include "absl/algorithm/container.h" #include "absl/synchronization/blocking_counter.h" #include "tsl/platform/env.h" #include "tsl/platform/test.h" #include "tsl/platform/threadpool.h" namespace xla::cpu { namespace { TEST(Concurre...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/backends/cpu/runtime/concurrency.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/backends/cpu/runtime/concurrency_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
cc7acb88-4403-4bed-a00b-7e0ce9b987e8
cpp
tensorflow/tensorflow
ffi
third_party/xla/xla/ffi/api/ffi.h
third_party/xla/xla/ffi/api/ffi_test.cc
#ifndef XLA_FFI_API_FFI_H_ #define XLA_FFI_API_FFI_H_ #ifdef XLA_FFI_FFI_H_ #error Two different XLA FFI implementations cannot be included together. \ See README.md for more details. #endif #include <algorithm> #include <atomic> #include <cassert> #include <complex> #include <cstddef> #include <cstdint> #incl...
#include "xla/ffi/api/ffi.h" #include <cstddef> #include <cstdint> #include <limits> #include <memory> #include <optional> #include <string> #include <string_view> #include <type_traits> #include <utility> #include <vector> #include "absl/log/check.h" #include "absl/status/status.h" #include "absl/strings/match.h" #inc...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/ffi/api/ffi.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/ffi/api/ffi_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
73a594f2-3fb4-4581-a0fc-baaa11a9b95c
cpp
tensorflow/tensorflow
hlo_casting_utils
third_party/xla/xla/hlo/ir/hlo_casting_utils.h
third_party/xla/xla/service/hlo_casting_utils_test.cc
#ifndef XLA_HLO_IR_HLO_CASTING_UTILS_H_ #define XLA_HLO_IR_HLO_CASTING_UTILS_H_ #include <type_traits> #include "xla/hlo/ir/hlo_instruction.h" #include "tsl/platform/logging.h" namespace xla { template <class T> using EnableIfDerivedFromHlo = typename std::enable_if<std::is_base_of<HloInstruction, T>::value>::type;...
#include "xla/hlo/ir/hlo_casting_utils.h" #include "xla/hlo/ir/hlo_instruction.h" #include "tsl/platform/test.h" namespace xla { namespace { class DummyInstruction : public HloInstruction { public: DummyInstruction() : HloInstruction(HloOpcode::kConstant, ShapeUtil::MakeShape(F32, {})) {} static bool ClassOf...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/hlo/ir/hlo_casting_utils.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/hlo_casting_utils_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
c6506a74-564b-4421-9121-be913bba8ef3
cpp
tensorflow/tensorflow
dfs_hlo_visitor_with_default
third_party/xla/xla/hlo/ir/dfs_hlo_visitor_with_default.h
third_party/xla/xla/service/dfs_hlo_visitor_with_default_test.cc
#ifndef XLA_HLO_IR_DFS_HLO_VISITOR_WITH_DEFAULT_H_ #define XLA_HLO_IR_DFS_HLO_VISITOR_WITH_DEFAULT_H_ #include <memory> #include <utility> #include "absl/base/optimization.h" #include "absl/log/log.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" #include "xla/hlo/ir/dfs_hlo_visitor.h" #includ...
#include "xla/hlo/ir/dfs_hlo_visitor_with_default.h" #include "xla/hlo/ir/hlo_computation.h" #include "xla/hlo/ir/hlo_instruction.h" #include "xla/hlo/ir/hlo_module.h" #include "xla/hlo/ir/hlo_opcode.h" #include "xla/service/hlo_runner.h" #include "xla/shape_util.h" #include "xla/test.h" #include "xla/test_helpers.h" #...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/hlo/ir/dfs_hlo_visitor_with_default.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/dfs_hlo_visitor_with_default_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
ef2e10a4-b4e8-4a54-96cd-ad5096524559
cpp
tensorflow/tensorflow
ptrvec
third_party/xla/xla/hlo/ir/ptrvec.h
third_party/xla/xla/hlo/ir/ptrvec_test.cc
#ifndef XLA_HLO_IR_PTRVEC_H_ #define XLA_HLO_IR_PTRVEC_H_ #include <cstddef> #include <cstdint> #include <cstdlib> #include <limits> #include <type_traits> #include <vector> #include "absl/log/check.h" #include "tsl/platform/logging.h" namespace xla { template <typename T> class PtrVec { public: static_assert(std:...
#include "xla/hlo/ir/ptrvec.h" #include <cstdint> #include <initializer_list> #include <memory> #include <utility> #include <vector> #include "absl/strings/str_format.h" #include "absl/types/span.h" #include "tsl/platform/logging.h" #include "tsl/platform/test.h" #include "tsl/platform/test_benchmark.h" namespace xla {...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/hlo/ir/ptrvec.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/hlo/ir/ptrvec_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
e69fde1a-b1ac-484c-b566-41a0b2e4cb3a
cpp
tensorflow/tensorflow
pattern_matcher
third_party/xla/xla/service/pattern_matcher.h
third_party/xla/xla/service/pattern_matcher_test.cc
#ifndef XLA_SERVICE_PATTERN_MATCHER_H_ #define XLA_SERVICE_PATTERN_MATCHER_H_ #include <cstddef> #include <cstdint> #include <ios> #include <memory> #include <optional> #include <ostream> #include <sstream> #include <string> #include <tuple> #include <type_traits> #include <utility> #include <vector> #include "absl/alg...
#include "xla/service/pattern_matcher.h" #include <memory> #include <sstream> #include <string> #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" #include "xla/comparison_util.h" #include "xla/hlo/ir/hlo_instruction.h" #include "xla/hlo/ir/hlo_opcode.h" #include "xla/layout.h" #include "xla/layout...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/pattern_matcher.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/pattern_matcher_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
d6649578-7be7-42e1-8e40-fd3691a3885d
cpp
tensorflow/tensorflow
mapped_ptr_container_sorter
third_party/xla/xla/service/mapped_ptr_container_sorter.h
third_party/xla/xla/service/mapped_ptr_container_sorter_test.cc
#ifndef XLA_SERVICE_MAPPED_PTR_CONTAINER_SORTER_H_ #define XLA_SERVICE_MAPPED_PTR_CONTAINER_SORTER_H_ #include <array> #include <cstddef> #include <functional> #include <limits> #include <list> #include <memory> #include <string> #include <utility> #include <vector> #include "absl/container/flat_hash_map.h" #include "a...
#include "xla/service/mapped_ptr_container_sorter.h" #include <cstddef> #include <list> #include <memory> #include <string> #include <utility> #include <vector> #include "absl/functional/bind_front.h" #include "absl/log/log.h" #include "xla/test.h" #include "xla/tsl/lib/core/status_test_util.h" namespace xla { namespac...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/mapped_ptr_container_sorter.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/mapped_ptr_container_sorter_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
e27221c5-0b3b-45d4-8e65-4e62b0ab5c84
cpp
tensorflow/tensorflow
fuzzy_matcher
third_party/xla/xla/service/fuzzy_matcher.h
third_party/xla/xla/service/fuzzy_matcher_test.cc
#ifndef XLA_SERVICE_FUZZY_MATCHER_H_ #define XLA_SERVICE_FUZZY_MATCHER_H_ #include "xla/hlo/ir/hlo_instruction.h" #include "xla/hlo/ir/hlo_opcode.h" #include "xla/service/pattern_matcher.h" namespace xla { namespace fm { template <typename Pattern> auto OptConvert(Pattern pattern) { auto shared = match::SharedSubpatt...
#include "xla/service/fuzzy_matcher.h" #include <gtest/gtest.h> #include "xla/service/pattern_matcher.h" #include "xla/tests/hlo_test_base.h" #include "tsl/platform/statusor.h" #include "tsl/platform/test.h" namespace xla { namespace { using FuzzyMatcherTest = HloTestBase; TEST_F(FuzzyMatcherTest, IgnoreConvert) { co...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/fuzzy_matcher.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/fuzzy_matcher_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
e71d581e-3184-4873-831f-aba1c7d47594
cpp
tensorflow/tensorflow
hlo_rematerialization_test_utils
third_party/xla/xla/service/hlo_rematerialization_test_utils.h
third_party/xla/xla/service/hlo_rematerialization_test_utils_test.cc
#ifndef XLA_SERVICE_HLO_REMATERIALIZATION_TEST_UTILS_H_ #define XLA_SERVICE_HLO_REMATERIALIZATION_TEST_UTILS_H_ #include <cstdint> #include <memory> #include <string> #include "xla/hlo/ir/hlo_computation.h" #include "xla/hlo/ir/hlo_instruction.h" #include "xla/hlo/ir/hlo_opcode.h" #include "xla/literal_util.h" #include...
#include "xla/service/hlo_rematerialization_test_utils.h" #include <memory> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "xla/hlo/ir/hlo_computation.h" #include "xla/hlo/ir/hlo_instruction.h" namespace xla { namespace { using ::testing::UnorderedElementsAre; class HloRematerializationTes...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/hlo_rematerialization_test_utils.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/hlo_rematerialization_test_utils_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
c2752c74-3af7-4654-8232-6b113fc0920d
cpp
tensorflow/tensorflow
pattern_matcher_gmock
third_party/xla/xla/service/pattern_matcher_gmock.h
third_party/xla/xla/service/pattern_matcher_gmock_test.cc
#ifndef XLA_SERVICE_PATTERN_MATCHER_GMOCK_H_ #define XLA_SERVICE_PATTERN_MATCHER_GMOCK_H_ #include <ostream> #include "xla/hlo/ir/hlo_instruction.h" #include "xla/layout.h" #include "xla/service/pattern_matcher.h" #include "xla/shape.h" #include "xla/test.h" #include "tsl/platform/test.h" namespace xla { namespace patt...
#include "xla/service/pattern_matcher_gmock.h" #include <sstream> #include <string> #include <type_traits> #include "xla/hlo/ir/hlo_instruction.h" #include "xla/layout.h" #include "xla/layout_util.h" #include "xla/service/pattern_matcher.h" #include "xla/shape.h" #include "xla/shape_util.h" #include "xla/test.h" #inclu...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/pattern_matcher_gmock.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/pattern_matcher_gmock_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
df40c77a-7062-4e92-a882-a8f6fe66ce8f
cpp
tensorflow/tensorflow
lockable
third_party/xla/xla/service/lockable.h
third_party/xla/xla/service/lockable_test.cc
#ifndef XLA_SERVICE_LOCKABLE_H_ #define XLA_SERVICE_LOCKABLE_H_ #include <string> #include "absl/base/thread_annotations.h" #include "absl/strings/str_format.h" #include "absl/synchronization/mutex.h" #include "tsl/platform/logging.h" #include "tsl/profiler/lib/traceme.h" namespace xla { template <typename T> struct Lo...
#include "xla/service/lockable.h" #include <cstddef> #include <cstdint> #include <string> #include <utility> #include "absl/synchronization/blocking_counter.h" #include "tsl/platform/env.h" #include "tsl/platform/test.h" #include "tsl/platform/threadpool.h" namespace xla { tsl::thread::ThreadPool CreateThreadPool(int32...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/lockable.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/lockable_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
1636930c-ab5c-49b8-9201-f3ad61c62b54
cpp
tensorflow/tensorflow
ordered_set
third_party/xla/xla/service/graphcycles/ordered_set.h
third_party/xla/xla/service/graphcycles/ordered_set_test.cc
#ifndef XLA_SERVICE_GRAPHCYCLES_ORDERED_SET_H_ #define XLA_SERVICE_GRAPHCYCLES_ORDERED_SET_H_ #include <vector> #include "absl/container/flat_hash_map.h" #include "absl/types/span.h" #include "tsl/platform/logging.h" namespace xla { template <typename T> class OrderedSet { public: bool Insert(T value) { bool new...
#include "xla/service/graphcycles/ordered_set.h" #include "tsl/platform/test.h" namespace xla { namespace { TEST(OrderedSetTest, Insert) { OrderedSet<int> ordered_set; EXPECT_TRUE(ordered_set.Insert(90)); EXPECT_TRUE(ordered_set.Insert(100)); EXPECT_TRUE(ordered_set.Insert(80)); EXPECT_FALSE(ordered_set.Inser...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/graphcycles/ordered_set.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/graphcycles/ordered_set_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
37e3ea92-5e0b-42f0-a7ac-7eaa650395c4
cpp
tensorflow/tensorflow
scoped_module_handle
third_party/xla/xla/stream_executor/scoped_module_handle.h
third_party/xla/xla/stream_executor/scoped_module_handle_test.cc
#ifndef XLA_STREAM_EXECUTOR_SCOPED_MODULE_HANDLE_H_ #define XLA_STREAM_EXECUTOR_SCOPED_MODULE_HANDLE_H_ #include "absl/log/check.h" #include "xla/stream_executor/module_spec.h" #include "xla/stream_executor/stream_executor.h" namespace stream_executor { class ScopedModuleHandle { public: ScopedModuleHandle(StreamExe...
#include "xla/stream_executor/scoped_module_handle.h" #include <utility> #include "xla/stream_executor/mock_stream_executor.h" #include "xla/stream_executor/module_spec.h" #include "tsl/platform/test.h" using testing::Return; namespace stream_executor { namespace { TEST(ScopedModuleHandleTest, NoUnloadForNullHandle) { ...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/stream_executor/scoped_module_handle.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/stream_executor/scoped_module_handle_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
e94eef46-9cde-4093-b44d-8e89d991ead3
cpp
tensorflow/tensorflow
gpu_kernel
third_party/xla/xla/stream_executor/gpu/gpu_kernel.h
third_party/xla/xla/stream_executor/gpu/gpu_kernel_test.cc
#ifndef XLA_STREAM_EXECUTOR_GPU_GPU_KERNEL_H_ #define XLA_STREAM_EXECUTOR_GPU_GPU_KERNEL_H_ #include "xla/stream_executor/gpu/gpu_types.h" #include "xla/stream_executor/kernel.h" namespace stream_executor::gpu { class GpuKernel : public Kernel { public: virtual GpuFunctionHandle gpu_function() const = 0; }; inline c...
#include <cstdint> #include <memory> #include <string_view> #include <vector> #include <gtest/gtest.h> #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/ascii.h" #include "absl/strings/string_view.h" #include "absl/types/span.h" #include "xla/service/platform_util.h" #include "xla...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/stream_executor/gpu/gpu_kernel.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/stream_executor/gpu/gpu_kernel_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
4a03d074-abd5-4eff-b24a-ddc438954def
cpp
tensorflow/tensorflow
context_map
third_party/xla/xla/stream_executor/gpu/context_map.h
third_party/xla/xla/stream_executor/gpu/context_map_test.cc
#ifndef XLA_STREAM_EXECUTOR_GPU_CONTEXT_MAP_H_ #define XLA_STREAM_EXECUTOR_GPU_CONTEXT_MAP_H_ #include <memory> #include <utility> #include <vector> #include "absl/base/thread_annotations.h" #include "absl/container/flat_hash_map.h" #include "absl/functional/any_invocable.h" #include "absl/log/check.h" #include "absl/s...
#include "xla/stream_executor/gpu/context_map.h" #include "tsl/platform/test.h" namespace stream_executor::gpu { namespace { class TestContext { public: TestContext(void *context, int device_ordinal) : context_(context), device_ordinal_(device_ordinal) {} void *context() const { return context_; } int devi...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/stream_executor/gpu/context_map.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/stream_executor/gpu/context_map_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
8971d4cb-bee3-478d-b5af-bb826df19571
cpp
tensorflow/tensorflow
gpu_executor
third_party/xla/xla/stream_executor/gpu/gpu_executor.h
third_party/xla/xla/stream_executor/gpu/gpu_executor_test.cc
#ifndef XLA_STREAM_EXECUTOR_GPU_GPU_EXECUTOR_H_ #define XLA_STREAM_EXECUTOR_GPU_GPU_EXECUTOR_H_ #include <cstdint> #include <memory> #include <utility> #include <variant> #include <vector> #include "absl/base/thread_annotations.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/synchron...
#include <gtest/gtest.h> #include "absl/status/statusor.h" #include "absl/strings/ascii.h" #include "xla/service/platform_util.h" #include "xla/stream_executor/platform.h" #include "xla/stream_executor/platform_manager.h" #include "xla/stream_executor/stream_executor.h" #include "tsl/platform/statusor.h" #include "tsl/...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/stream_executor/gpu/gpu_executor.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/stream_executor/gpu/gpu_executor_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
e1e05b95-3168-49b8-bae6-0e35ebebf454
cpp
tensorflow/tensorflow
ptx_compiler
third_party/xla/xla/stream_executor/cuda/ptx_compiler.h
third_party/xla/xla/stream_executor/cuda/ptx_compiler_test.cc
#ifndef XLA_STREAM_EXECUTOR_CUDA_PTX_COMPILER_H_ #define XLA_STREAM_EXECUTOR_CUDA_PTX_COMPILER_H_ #include <cstdint> #include <vector> #include "absl/status/statusor.h" #include "xla/stream_executor/gpu/gpu_asm_opts.h" #include "xla/stream_executor/semantic_version.h" namespace stream_executor { absl::StatusOr<std::vec...
#include "xla/stream_executor/cuda/ptx_compiler.h" #include <sys/types.h> #include <cstdint> #include <string> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include "absl/status/statusor.h" #include "xla/stream_executor/cuda/ptx_compiler_support.h" #include "xla/st...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/stream_executor/cuda/ptx_compiler.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/stream_executor/cuda/ptx_compiler_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
82253c7c-0a81-4089-ae97-3fa38916f40c
cpp
tensorflow/tensorflow
nvjitlink
third_party/xla/xla/stream_executor/cuda/nvjitlink.h
third_party/xla/xla/stream_executor/cuda/nvjitlink_test.cc
#ifndef XLA_STREAM_EXECUTOR_CUDA_NVJITLINK_H_ #define XLA_STREAM_EXECUTOR_CUDA_NVJITLINK_H_ #include <cstdint> #include <tuple> #include <vector> #include "absl/status/statusor.h" #include "absl/types/span.h" #include "xla/stream_executor/gpu/gpu_asm_opts.h" namespace stream_executor { using NvJitLinkVersion = std::tup...
#include "xla/stream_executor/cuda/nvjitlink.h" #include <sys/types.h> #include <cstdint> #include <cstring> #include <string> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include "absl/strings/str_replace.h" #include "absl/types/span.h" #include "xla/stream_execu...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/stream_executor/cuda/nvjitlink.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/stream_executor/cuda/nvjitlink_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
167d38bf-d218-48de-bf28-3f9bb553562d
cpp
tensorflow/tensorflow
stringpiece
tensorflow/core/lib/core/stringpiece.h
third_party/xla/third_party/tsl/tsl/platform/stringpiece_test.cc
#ifndef TENSORFLOW_CORE_LIB_CORE_STRINGPIECE_H_ #define TENSORFLOW_CORE_LIB_CORE_STRINGPIECE_H_ #include "tensorflow/core/platform/stringpiece.h" #endif
#include "tsl/platform/stringpiece.h" #include <unordered_map> #include "tsl/platform/test.h" namespace tsl { TEST(StringPiece, Ctor) { { const char* hello = "hello"; absl::string_view s20(hello); EXPECT_TRUE(s20.data() == hello); EXPECT_EQ(5, s20.size()); absl::string_view s21(hello, 4); EXPE...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/core/stringpiece.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/stringpiece_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
c004a04a-45b9-41d5-9ca1-80bf5198bb3d
cpp
tensorflow/tensorflow
intrusive_ptr
tensorflow/core/platform/intrusive_ptr.h
third_party/xla/third_party/tsl/tsl/platform/intrusive_ptr_test.cc
#ifndef TENSORFLOW_CORE_PLATFORM_INTRUSIVE_PTR_H_ #define TENSORFLOW_CORE_PLATFORM_INTRUSIVE_PTR_H_ #include <algorithm> #include "tsl/platform/intrusive_ptr.h" namespace tensorflow { namespace core { template <class T> using IntrusivePtr = tsl::core::IntrusivePtr<T>; } } #endif
#include "tsl/platform/intrusive_ptr.h" #include "tsl/platform/refcount.h" #include "tsl/platform/test.h" namespace tsl { namespace core { namespace { TEST(IntrusivePtr, ConstructorAddRefFalse) { auto ptr = IntrusivePtr<RefCounted>(new RefCounted(), false); ASSERT_TRUE(ptr->RefCountIsOne()); } TEST(IntrusivePtr, Co...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/platform/intrusive_ptr.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/intrusive_ptr_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
35fb4466-a507-4ae8-a10f-462ec10def06
cpp
tensorflow/tensorflow
notification
tensorflow/core/lib/core/notification.h
tensorflow/core/lib/core/notification_test.cc
#ifndef TENSORFLOW_CORE_LIB_CORE_NOTIFICATION_H_ #define TENSORFLOW_CORE_LIB_CORE_NOTIFICATION_H_ #include "tensorflow/core/platform/notification.h" #endif
#include "tensorflow/core/platform/test.h" #include "tensorflow/core/lib/core/notification.h" #include "tensorflow/core/lib/core/threadpool.h" #include "tensorflow/core/platform/mutex.h" #include "tensorflow/core/platform/types.h" namespace tensorflow { namespace { TEST(NotificationTest, TestSingleNotification) { thr...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/core/notification.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/core/notification_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
8f2bbdb6-1130-4e57-b10d-d60bc7696f0b
cpp
tensorflow/tensorflow
tstring
tensorflow/core/platform/tstring.h
third_party/xla/third_party/tsl/tsl/platform/tstring_test.cc
#ifndef TENSORFLOW_CORE_PLATFORM_TSTRING_H_ #define TENSORFLOW_CORE_PLATFORM_TSTRING_H_ #include "tensorflow/core/platform/cord.h" #include "tensorflow/core/platform/ctstring.h" #include "tensorflow/core/platform/stringpiece.h" #include "tsl/platform/tstring.h" namespace tensorflow { using tstring = tsl::tstring; } #en...
#include "tsl/platform/tstring.h" #include <memory> #include <string> #include "tsl/platform/cord.h" #include "tsl/platform/platform.h" #include "tsl/platform/stringpiece.h" #include "tsl/platform/test.h" using ::tsl::tstring; static const char kLongString[] = "abcdefghij" "klmnopqrst" "uvwxyz0123" "456...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/platform/tstring.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/tstring_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
baaeddd6-ac64-4c73-9a7a-ec433d59b970
cpp
tensorflow/tensorflow
ctstring
tensorflow/core/platform/ctstring.h
third_party/xla/third_party/tsl/tsl/platform/ctstring_test.cc
#ifndef TENSORFLOW_CORE_PLATFORM_CTSTRING_H_ #define TENSORFLOW_CORE_PLATFORM_CTSTRING_H_ #include "tsl/platform/ctstring.h" #endif
#include "tsl/platform/ctstring.h" #include <memory> #include <string> #include "tsl/platform/ctstring_internal.h" #include "tsl/platform/test.h" static const char kLongString[] = "abcdefghij" "klmnopqrst" "uvwxyz0123" "456789ABCD" "EFGHIKLMNO"; const size_t kLongStringLen = sizeof(kLongString) / si...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/platform/ctstring.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/ctstring_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
23ee1f36-b69d-4cd2-82cb-48f9dc42b1dc
cpp
tensorflow/tensorflow
numa
tensorflow/core/platform/numa.h
third_party/xla/third_party/tsl/tsl/platform/numa_test.cc
#ifndef TENSORFLOW_CORE_PLATFORM_NUMA_H_ #define TENSORFLOW_CORE_PLATFORM_NUMA_H_ #include "tensorflow/core/platform/platform.h" #include "tensorflow/core/platform/types.h" #include "tsl/platform/numa.h" namespace tensorflow { namespace port { using tsl::port::kNUMANoAffinity; using tsl::port::NUMAEnabled; using tsl::p...
#include "tsl/platform/numa.h" #include "tsl/platform/logging.h" #include "tsl/platform/test.h" namespace tsl { namespace internal { TEST(Numa, NumNodes) { if (port::NUMAEnabled()) { EXPECT_GE(port::NUMANumNodes(), 1); } } TEST(Numa, Malloc) { if (port::NUMAEnabled()) { int num_nodes = port::NUMANumNodes(...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/platform/numa.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/numa_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
b76f2da2-2c1b-4341-879a-45c8de64721a
cpp
tensorflow/tensorflow
snappy
tensorflow/core/platform/snappy.h
third_party/xla/xla/tsl/lib/io/snappy/snappy_test.cc
#ifndef TENSORFLOW_CORE_PLATFORM_SNAPPY_H_ #define TENSORFLOW_CORE_PLATFORM_SNAPPY_H_ #include "tensorflow/core/platform/types.h" #include "tsl/platform/snappy.h" #if !defined(PLATFORM_WINDOWS) #include <sys/uio.h> #else namespace tensorflow { using tsl::iovec; } #endif namespace tensorflow { namespace port { using t...
#include <memory> #include "xla/tsl/lib/core/status_test_util.h" #include "xla/tsl/lib/io/inputbuffer.h" #include "xla/tsl/lib/io/random_inputstream.h" #include "xla/tsl/lib/io/snappy/snappy_inputbuffer.h" #include "xla/tsl/lib/io/snappy/snappy_inputstream.h" #include "xla/tsl/lib/io/snappy/snappy_outputbuffer.h" #incl...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/platform/snappy.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/lib/io/snappy/snappy_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
c6cef358-abd6-4c20-b354-33736b80705d
cpp
tensorflow/tensorflow
retrying_file_system
tensorflow/core/platform/retrying_file_system.h
third_party/xla/third_party/tsl/tsl/platform/retrying_file_system_test.cc
#ifndef TENSORFLOW_CORE_PLATFORM_RETRYING_FILE_SYSTEM_H_ #define TENSORFLOW_CORE_PLATFORM_RETRYING_FILE_SYSTEM_H_ #include <functional> #include <string> #include <vector> #include "tensorflow/core/lib/random/random.h" #include "tensorflow/core/platform/env.h" #include "tensorflow/core/platform/errors.h" #include "tens...
#include "tsl/platform/retrying_file_system.h" #include <fstream> #include "xla/tsl/lib/core/status_test_util.h" #include "tsl/platform/str_util.h" #include "tsl/platform/test.h" namespace tsl { namespace { typedef std::vector<std::tuple<string, absl::Status>> ExpectedCalls; ExpectedCalls CreateRetriableErrors(const st...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/platform/retrying_file_system.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/retrying_file_system_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
a8dc82e0-6cfb-4171-9acc-706391937f7d
cpp
tensorflow/tensorflow
refcount
tensorflow/core/lib/core/refcount.h
third_party/xla/third_party/tsl/tsl/platform/refcount_test.cc
#ifndef TENSORFLOW_CORE_LIB_CORE_REFCOUNT_H_ #define TENSORFLOW_CORE_LIB_CORE_REFCOUNT_H_ #include "tensorflow/core/platform/refcount.h" #endif
#include "tsl/platform/refcount.h" #include "tsl/platform/env.h" #include "tsl/platform/test.h" #include "tsl/platform/threadpool.h" namespace tsl { namespace core { namespace { class RefTest : public ::testing::Test { public: RefTest() { constructed_ = 0; destroyed_ = 0; } static int constructed_; sta...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/core/refcount.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/refcount_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
d9291186-f644-4803-84a1-9f17601d1838
cpp
tensorflow/tensorflow
threadpool_async_executor
third_party/xla/third_party/tsl/tsl/platform/threadpool_async_executor.h
third_party/xla/third_party/tsl/tsl/platform/threadpool_async_executor_test.cc
#ifndef TENSORFLOW_TSL_PLATFORM_THREADPOOL_ASYNC_EXECUTOR_H_ #define TENSORFLOW_TSL_PLATFORM_THREADPOOL_ASYNC_EXECUTOR_H_ #include <utility> #include "xla/tsl/concurrency/async_value.h" #include "tsl/platform/threadpool.h" namespace tsl::thread { class ThreadPoolAsyncExecutor : public AsyncValue::Executor { public: ...
#include "tsl/platform/threadpool_async_executor.h" #include "absl/synchronization/notification.h" #include "tsl/platform/env.h" #include "tsl/platform/test.h" #include "tsl/platform/threadpool.h" namespace tsl::thread { namespace { TEST(ThreadPoolAsyncExecutorTest, ExecuteTasks) { ThreadPool thread_pool(Env::Default...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/threadpool_async_executor.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/threadpool_async_executor_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
5253ef1e-f139-4a56-b343-b128d7405c88
cpp
tensorflow/tensorflow
fingerprint
tensorflow/core/platform/fingerprint.h
third_party/xla/third_party/tsl/tsl/platform/fingerprint_test.cc
#ifndef TENSORFLOW_CORE_PLATFORM_FINGERPRINT_H_ #define TENSORFLOW_CORE_PLATFORM_FINGERPRINT_H_ #include "tensorflow/core/platform/stringpiece.h" #include "tensorflow/core/platform/types.h" #include "tsl/platform/fingerprint.h" namespace tensorflow { using Fprint128 = tsl::Fprint128; using Fprint128Hasher = tsl::Fprint...
#include "tsl/platform/fingerprint.h" #include <unordered_set> #include "tsl/platform/test.h" #include "tsl/platform/types.h" namespace tsl { namespace { TEST(Fingerprint64, IsForeverFrozen) { EXPECT_EQ(15404698994557526151ULL, Fingerprint64("Hello")); EXPECT_EQ(18308117990299812472ULL, Fingerprint64("World")); } T...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/platform/fingerprint.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/fingerprint_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
dd9b6d0b-cfde-4480-9c14-d8bc39df53b2
cpp
tensorflow/tensorflow
criticality
third_party/xla/third_party/tsl/tsl/platform/default/criticality.h
third_party/xla/third_party/tsl/tsl/platform/criticality_test.cc
#ifndef TENSORFLOW_TSL_PLATFORM_DEFAULT_CRITICALITY_H_ #define TENSORFLOW_TSL_PLATFORM_DEFAULT_CRITICALITY_H_ namespace tsl { namespace criticality { inline Criticality GetCriticality() { return Criticality::kCritical; } } } #endif
#include "tsl/platform/criticality.h" #include "tsl/platform/test.h" namespace tsl { namespace criticality { TEST(CriticalityTest, Basic) { EXPECT_EQ(GetCriticality(), Criticality::kCritical); } } }
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/default/criticality.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/criticality_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
68be2b50-dfd0-4196-b8b4-1bdb1ae68974
cpp
tensorflow/tensorflow
integral_types
third_party/xla/third_party/tsl/tsl/platform/default/integral_types.h
third_party/xla/third_party/tsl/tsl/platform/integral_types_test.cc
#ifndef TENSORFLOW_TSL_PLATFORM_DEFAULT_INTEGRAL_TYPES_H_ #define TENSORFLOW_TSL_PLATFORM_DEFAULT_INTEGRAL_TYPES_H_ #include <cstdint> namespace tsl { typedef signed char int8; typedef short int16; typedef int int32; typedef ::std::int64_t int64; typedef unsigned char uint8; typedef unsigned short uint16; typedef unsig...
#include "tsl/platform/test.h" #include "tsl/platform/types.h" namespace tsl { namespace { TEST(IntegralTypes, Basic) { EXPECT_EQ(1, sizeof(int8)); EXPECT_EQ(2, sizeof(int16)); EXPECT_EQ(4, sizeof(int32)); EXPECT_EQ(8, sizeof(int64_t)); EXPECT_EQ(1, sizeof(uint8)); EXPECT_EQ(2, sizeof(uint16)); EXPECT_EQ(...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/default/integral_types.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/integral_types_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
67b5dcbe-b63d-4c16-852c-8b8844a3576f
cpp
tensorflow/tensorflow
expiring_lru_cache
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc
#ifndef TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_GCS_EXPIRING_LRU_CACHE_H_ #define TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_GCS_EXPIRING_LRU_CACHE_H_ #include <functional> #include <list> #include <map> #include <memory> #include <string> #include "absl/base/thread_annotations.h" #include "absl/synchronization/...
#include "tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h" #include <memory> #include "tensorflow/c/tf_status.h" #include "tensorflow/c/tf_status_internal.h" #include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/platform/cloud/now_seconds_env.h" #include "tensorflow/core...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
dc4dd8f4-6c45-415b-b3d5-1c28a442ce4a
cpp
tensorflow/tensorflow
scoped_annotation
tensorflow/core/profiler/lib/scoped_annotation.h
third_party/xla/third_party/tsl/tsl/profiler/lib/scoped_annotation_test.cc
#ifndef TENSORFLOW_CORE_PROFILER_LIB_SCOPED_ANNOTATION_H_ #define TENSORFLOW_CORE_PROFILER_LIB_SCOPED_ANNOTATION_H_ #include <stddef.h> #include <atomic> #include <string> #include <string_view> #include <utility> #include "absl/base/macros.h" #include "absl/strings/string_view.h" #include "tensorflow/core/platform/typ...
#include "tsl/profiler/lib/scoped_annotation.h" #include <string> #include "absl/strings/str_cat.h" #include "xla/tsl/profiler/backends/cpu/annotation_stack.h" #include "tsl/platform/test.h" #include "tsl/platform/test_benchmark.h" namespace tsl { namespace profiler { namespace { TEST(ScopedAnnotation, Simple) { { ...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/profiler/lib/scoped_annotation.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/profiler/lib/scoped_annotation_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
51393e4d-12b3-4607-9e39-c7ef2d2956e3
cpp
tensorflow/tensorflow
traceme_encode
tensorflow/core/profiler/lib/traceme_encode.h
third_party/xla/third_party/tsl/tsl/profiler/lib/traceme_encode_test.cc
#ifndef TENSORFLOW_CORE_PROFILER_LIB_TRACEME_ENCODE_H_ #define TENSORFLOW_CORE_PROFILER_LIB_TRACEME_ENCODE_H_ #include <string.h> #include <initializer_list> #include <string> #include <utility> #include "absl/base/macros.h" #include "absl/strings/match.h" #include "absl/strings/str_cat.h" #include "absl/strings/string...
#include "tsl/profiler/lib/traceme_encode.h" #include <string> #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" #include "tsl/platform/platform.h" #include "tsl/platform/test.h" #include "tsl/platform/test_benchmark.h" namespace tsl { namespace profiler { namespace { TEST(TraceMeEncodeTest, NoArgT...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/profiler/lib/traceme_encode.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/profiler/lib/traceme_encode_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
8745af98-1afa-496d-808c-672e91d24dea
cpp
tensorflow/tensorflow
dtensor_operation
tensorflow/dtensor/cc/dtensor_operation.h
tensorflow/dtensor/tests/dtensor_operation_test.cc
#ifndef TENSORFLOW_DTENSOR_CC_DTENSOR_OPERATION_H_ #define TENSORFLOW_DTENSOR_CC_DTENSOR_OPERATION_H_ #include "tensorflow/c/eager/c_api.h" #include "tensorflow/dtensor/cc/tensor_layout.h" namespace tensorflow { namespace dtensor { struct DTensorOperation { const char* name; const FunctionDef* function_def; const...
#include "tensorflow/dtensor/cc/dtensor_operation.h" #include <memory> #include <gtest/gtest.h> #include "tensorflow/core/framework/function.pb.h" #include "tensorflow/core/framework/op.h" namespace tensorflow { namespace dtensor { namespace { REGISTER_OP("OutputResource").Output("resource: resource"); REGISTER_OP("Inp...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/dtensor/cc/dtensor_operation.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/dtensor/tests/dtensor_operation_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
c9a4925f-1dc5-4ac0-9aa6-484ddcff8724
cpp
tensorflow/tensorflow
composable_splitter
tensorflow/tools/proto_splitter/cc/composable_splitter.h
tensorflow/tools/proto_splitter/cc/composable_splitter_test.cc
#ifndef TENSORFLOW_TOOLS_PROTO_SPLITTER_CC_COMPOSABLE_SPLITTER_H_ #define TENSORFLOW_TOOLS_PROTO_SPLITTER_CC_COMPOSABLE_SPLITTER_H_ #include <vector> #include "tensorflow/tools/proto_splitter/cc/composable_splitter_base.h" #include "tensorflow/tools/proto_splitter/cc/util.h" #include "tensorflow/tools/proto_splitter/ch...
#include "tensorflow/tools/proto_splitter/cc/composable_splitter.h" #include <memory> #include <string> #include <utility> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include "absl/strings/cord.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_vi...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/tools/proto_splitter/cc/composable_splitter.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/tools/proto_splitter/cc/composable_splitter_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
9ed3e975-ab7f-4ee0-99bc-cac0be8541df
cpp
tensorflow/tensorflow
eigen_backward_cuboid_convolutions
tensorflow/core/kernels/eigen_backward_cuboid_convolutions.h
tensorflow/core/kernels/eigen_backward_cuboid_convolutions_test.cc
#ifndef TENSORFLOW_CORE_KERNELS_EIGEN_BACKWARD_CUBOID_CONVOLUTIONS_H_ #define TENSORFLOW_CORE_KERNELS_EIGEN_BACKWARD_CUBOID_CONVOLUTIONS_H_ #include "unsupported/Eigen/CXX11/Tensor" #include "tensorflow/core/kernels/eigen_cuboid_convolution.h" namespace Eigen { template <typename OutputBackward, typename Kernel> EIGE...
#include "tensorflow/core/kernels/eigen_backward_cuboid_convolutions.h" #include "tensorflow/core/platform/test.h" namespace Eigen { namespace { void EigenApprox(float a, float b) { ASSERT_TRUE(std::abs(a - b) <= std::min(std::abs(a), std::abs(b)) * 1e-3); } static int ceil_div(int a, int b) { return (a + b - 1) / b;...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/eigen_backward_cuboid_convolutions.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/eigen_backward_cuboid_convolutions_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
cdd2bdaf-cc0d-4ceb-ab30-fdf7e6b15650
cpp
tensorflow/tensorflow
eigen_backward_spatial_convolutions
tensorflow/core/kernels/eigen_backward_spatial_convolutions.h
tensorflow/core/kernels/eigen_backward_spatial_convolutions_test.cc
#ifndef TENSORFLOW_CORE_KERNELS_EIGEN_BACKWARD_SPATIAL_CONVOLUTIONS_H_ #define TENSORFLOW_CORE_KERNELS_EIGEN_BACKWARD_SPATIAL_CONVOLUTIONS_H_ #include "unsupported/Eigen/CXX11/Tensor" #include "xla/tsl/framework/convolution/eigen_spatial_convolutions.h" namespace Eigen { typedef IndexList<type2index<0>, type2index<0>...
#include "tensorflow/core/kernels/eigen_backward_spatial_convolutions.h" #include "tensorflow/core/platform/test.h" namespace Eigen { namespace { void EigenApprox(float a, float b) { ASSERT_TRUE(std::abs(a - b) <= std::min(std::abs(a), std::abs(b)) * 1e-3); } static int ceil_div(int a, int b) { return (a + b - 1) / b...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/eigen_backward_spatial_convolutions.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/eigen_backward_spatial_convolutions_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
9daa5f58-6a74-4c1f-a089-e61cfed04987
cpp
tensorflow/tensorflow
eigen_attention
tensorflow/core/kernels/eigen_attention.h
tensorflow/core/kernels/eigen_attention_test.cc
#ifndef TENSORFLOW_CORE_KERNELS_EIGEN_ATTENTION_H_ #define TENSORFLOW_CORE_KERNELS_EIGEN_ATTENTION_H_ #include "unsupported/Eigen/CXX11/Tensor" namespace Eigen { enum ExtractGlimpsesNoiseMode { UNIFORM = 0, GAUSSIAN = 1, ZERO = 2, }; namespace { template <typename Index> struct GlimpseExtractionOp { GlimpseEx...
#include "tensorflow/core/kernels/eigen_attention.h" #include "tensorflow/core/platform/test.h" namespace Eigen { namespace { void EigenApprox(float a, float b) { ASSERT_TRUE(std::abs(a - b) <= std::min(std::abs(a), std::abs(b)) * 1e-3); } } TEST(EigenAttentionTest, Simple) { const ptrdiff_t depth = 3; const pt...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/eigen_attention.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/eigen_attention_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
65e114f5-b5fd-4148-9e57-cab65cb9be29
cpp
tensorflow/tensorflow
eigen_activations
tensorflow/core/kernels/eigen_activations.h
tensorflow/core/kernels/eigen_activations_test.cc
#ifndef TENSORFLOW_CORE_KERNELS_EIGEN_ACTIVATIONS_H_ #define TENSORFLOW_CORE_KERNELS_EIGEN_ACTIVATIONS_H_ #include "unsupported/Eigen/CXX11/Tensor" namespace Eigen { template <typename T> struct scalar_sigmoid_fast_derivative_op { EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T operator()(const T& y) const { const T on...
#include "tensorflow/core/kernels/eigen_activations.h" #include "tensorflow/core/platform/test.h" namespace Eigen { namespace { void EigenApprox(float a, float b) { ASSERT_TRUE(std::abs(a - b) <= std::min(std::abs(a), std::abs(b)) * 1e-3); } } TEST(EigenBackwardSpatialConvolutionsTest, SigmoidFastDerivative) { co...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/eigen_activations.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/eigen_activations_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
550b570a-3d3c-4266-988c-aca50630b989
cpp
tensorflow/tensorflow
eigen_pooling
tensorflow/core/kernels/eigen_pooling.h
tensorflow/core/kernels/eigen_pooling_test.cc
#ifndef TENSORFLOW_CORE_KERNELS_EIGEN_POOLING_H_ #define TENSORFLOW_CORE_KERNELS_EIGEN_POOLING_H_ #include "unsupported/Eigen/CXX11/Tensor" namespace Eigen { template <typename Input> EIGEN_ALWAYS_INLINE static const TensorReshapingOp< const Eigen::DSizes<typename internal::traits<Input>::Index, ...
#include "tensorflow/core/kernels/eigen_pooling.h" #include "tensorflow/core/platform/test.h" namespace Eigen { namespace { void EigenApprox(float a, float b) { ASSERT_TRUE(std::abs(a - b) <= std::min(std::abs(a), std::abs(b)) * 1e-3); } } TEST(EigenPoolingTest, Simple) { const int depth = 10; const int input_r...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/eigen_pooling.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/eigen_pooling_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
68d21ad5-0373-4de2-8fba-27046bfbf55d
cpp
tensorflow/tensorflow
conv_2d
tensorflow/core/kernels/conv_2d.h
tensorflow/lite/delegates/xnnpack/conv_2d_test.cc
#ifndef TENSORFLOW_CORE_KERNELS_CONV_2D_H_ #define TENSORFLOW_CORE_KERNELS_CONV_2D_H_ #include "absl/strings/string_view.h" #include "unsupported/Eigen/CXX11/Tensor" #include "xla/tsl/framework/convolution/eigen_spatial_convolutions.h" #include "tensorflow/core/framework/tensor_types.h" #include "tensorflow/core/kern...
#include <cstdint> #include <functional> #include <memory> #include <random> #include <gtest/gtest.h> #include "tensorflow/lite/c/c_api_types.h" #include "tensorflow/lite/delegates/xnnpack/conv_2d_tester.h" #include "tensorflow/lite/delegates/xnnpack/xnnpack_delegate.h" namespace tflite { namespace xnnpack { TEST(Conv2...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/conv_2d.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/delegates/xnnpack/conv_2d_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
b0e0bd9f-6772-4b67-a6fa-86f8287c9d5b
cpp
tensorflow/tensorflow
loss
tensorflow/core/kernels/loss.h
tensorflow/core/kernels/loss_test.cc
#ifndef TENSORFLOW_CORE_KERNELS_LOSS_H_ #define TENSORFLOW_CORE_KERNELS_LOSS_H_ #include "tensorflow/core/lib/core/status.h" namespace tensorflow { class DualLossUpdater { public: virtual ~DualLossUpdater() {} virtual double ComputeUpdatedDual( const int num_loss_partitions, const double label, const d...
#include <limits> #include "tensorflow/core/kernels/hinge-loss.h" #include "tensorflow/core/kernels/logistic-loss.h" #include "tensorflow/core/kernels/poisson-loss.h" #include "tensorflow/core/kernels/smooth-hinge-loss.h" #include "tensorflow/core/kernels/squared-loss.h" #include "tensorflow/core/lib/core/errors.h" #in...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/loss.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/loss_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
7f13d784-1dd3-4570-9e98-e4867d47a9bd
cpp
tensorflow/tensorflow
shared_batch_scheduler
tensorflow/core/kernels/batching_util/shared_batch_scheduler.h
tensorflow/core/kernels/batching_util/shared_batch_scheduler_test.cc
#ifndef TENSORFLOW_CORE_KERNELS_BATCHING_UTIL_SHARED_BATCH_SCHEDULER_H_ #define TENSORFLOW_CORE_KERNELS_BATCHING_UTIL_SHARED_BATCH_SCHEDULER_H_ #include <stddef.h> #include <atomic> #include <cstddef> #include <cstdint> #include <deque> #include <functional> #include <list> #include <memory> #include <utility> #include...
#include "tensorflow/core/kernels/batching_util/shared_batch_scheduler.h" #include <cstddef> #include <memory> #include <string> #include <thread> #include <tuple> #include <utility> #include <vector> #include <gtest/gtest.h> #include "absl/base/call_once.h" #include "absl/container/fixed_array.h" #include "absl/stat...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/batching_util/shared_batch_scheduler.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/batching_util/shared_batch_scheduler_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
93a4e78f-e7b6-439c-a9ab-8ad84529ba55
cpp
tensorflow/tensorflow
batch_stats
tensorflow/core/kernels/batching_util/batch_stats.h
tensorflow/core/kernels/batching_util/batch_stats_test.cc
#ifndef TENSORFLOW_CORE_KERNELS_BATCHING_UTIL_BATCH_STATS_H_ #define TENSORFLOW_CORE_KERNELS_BATCHING_UTIL_BATCH_STATS_H_ #include <atomic> #include <cstdint> #include <optional> #include <string> #include <tuple> #include <vector> #include "absl/container/node_hash_map.h" #include "absl/time/time.h" #include "tensorfl...
#include "tensorflow/core/kernels/batching_util/batch_stats.h" #include <tuple> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/time/time.h" #include "tensorflow/core/platform/test.h" namespace tensorflow::serving { namespace { using ::testing::UnorderedElementsAre; TEST(BatchStatsTest, GlobalBatchStat...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/batching_util/batch_stats.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/batching_util/batch_stats_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
1c01a02e-63c2-4cb8-9d8e-94ac3c67739d
cpp
tensorflow/tensorflow
batch_input_task
tensorflow/core/kernels/batching_util/batch_input_task.h
tensorflow/core/kernels/batching_util/batch_input_task_test.cc
#ifndef TENSORFLOW_CORE_KERNELS_BATCHING_UTIL_BATCH_INPUT_TASK_H_ #define TENSORFLOW_CORE_KERNELS_BATCHING_UTIL_BATCH_INPUT_TASK_H_ #include <algorithm> #include <atomic> #include <functional> #include <memory> #include <utility> #include "absl/base/call_once.h" #include "absl/container/fixed_array.h" #include "absl/sy...
#include "tensorflow/core/kernels/batching_util/batch_input_task.h" #include <functional> #include <memory> #include <string> #include <tuple> #include <utility> #include "tensorflow/core/common_runtime/device.h" #include "tensorflow/core/framework/allocator.h" #include "tensorflow/core/framework/device_factory.h" #inc...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/batching_util/batch_input_task.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/batching_util/batch_input_task_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
106e29d3-9c69-48ae-b424-79984c7aed25
cpp
tensorflow/tensorflow
basic_batch_scheduler
tensorflow/core/kernels/batching_util/basic_batch_scheduler.h
tensorflow/core/kernels/batching_util/basic_batch_scheduler_test.cc
#ifndef TENSORFLOW_CORE_KERNELS_BATCHING_UTIL_BASIC_BATCH_SCHEDULER_H_ #define TENSORFLOW_CORE_KERNELS_BATCHING_UTIL_BASIC_BATCH_SCHEDULER_H_ #include <stddef.h> #include <cstddef> #include <functional> #include <memory> #include <string> #include "tensorflow/core/kernels/batching_util/shared_batch_scheduler.h" namespa...
#include "tensorflow/core/kernels/batching_util/basic_batch_scheduler.h" #include <utility> #include "tensorflow/core/kernels/batching_util/batch_scheduler.h" #include "tensorflow/core/lib/core/status.h" #include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/platform/macros.h" #include "tensor...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/batching_util/basic_batch_scheduler.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/batching_util/basic_batch_scheduler_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
8755924a-ced3-48b1-a66e-1a04454a738d
cpp
tensorflow/tensorflow
serial_device_batch_scheduler
tensorflow/core/kernels/batching_util/serial_device_batch_scheduler.h
tensorflow/core/kernels/batching_util/serial_device_batch_scheduler_test.cc
#ifndef TENSORFLOW_CORE_KERNELS_BATCHING_UTIL_SERIAL_DEVICE_BATCH_SCHEDULER_H_ #define TENSORFLOW_CORE_KERNELS_BATCHING_UTIL_SERIAL_DEVICE_BATCH_SCHEDULER_H_ #include <algorithm> #include <functional> #include <memory> #include <random> #include <unordered_map> #include <vector> #include "tensorflow/core/kernels/batchi...
#include "tensorflow/core/kernels/batching_util/serial_device_batch_scheduler.h" #include "tensorflow/core/kernels/batching_util/fake_clock_env.h" #include "tensorflow/core/lib/core/notification.h" #include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/platform/macros.h" #include "tensorflow/c...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/batching_util/serial_device_batch_scheduler.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/batching_util/serial_device_batch_scheduler_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
c0ebcd67-aa31-4bde-8d1d-ac3a89a6019f
cpp
tensorflow/tensorflow
adaptive_shared_batch_scheduler
tensorflow/core/kernels/batching_util/adaptive_shared_batch_scheduler.h
tensorflow/core/kernels/batching_util/adaptive_shared_batch_scheduler_test.cc
#ifndef TENSORFLOW_CORE_KERNELS_BATCHING_UTIL_ADAPTIVE_SHARED_BATCH_SCHEDULER_H_ #define TENSORFLOW_CORE_KERNELS_BATCHING_UTIL_ADAPTIVE_SHARED_BATCH_SCHEDULER_H_ #include <algorithm> #include <atomic> #include <functional> #include <memory> #include <random> #include <unordered_map> #include <vector> #include "absl/typ...
#include "tensorflow/core/kernels/batching_util/adaptive_shared_batch_scheduler.h" #include "tensorflow/core/kernels/batching_util/fake_clock_env.h" #include "tensorflow/core/lib/core/notification.h" #include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/lib/gtl/cleanup.h" #include "tensorflow...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/batching_util/adaptive_shared_batch_scheduler.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/batching_util/adaptive_shared_batch_scheduler_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
2896c2b7-5f4b-4da3-aa65-c05452830b3a
cpp
tensorflow/tensorflow
mkl_quantized_conv_ops
tensorflow/core/kernels/mkl/mkl_quantized_conv_ops.h
tensorflow/core/kernels/mkl/mkl_quantized_conv_ops_test.cc
#ifndef TENSORFLOW_CORE_KERNELS_MKL_MKL_QUANTIZED_CONV_OPS_H_ #define TENSORFLOW_CORE_KERNELS_MKL_MKL_QUANTIZED_CONV_OPS_H_ #include "unsupported/Eigen/CXX11/Tensor" #include "tensorflow/core/framework/tensor.h" #ifdef INTEL_MKL namespace tensorflow { template <class T> float MklFloatForOneQuantizedLevel(float range_...
#if defined(INTEL_MKL) && defined(ENABLE_MKL) #define EIGEN_USE_THREADS #include <functional> #include <memory> #include <vector> #include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/core/framework/allocator.h" #include "tensorflow/core/framework/fake_input.h" #include "tensorflow/core/framework/node_def_bu...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/mkl/mkl_quantized_conv_ops.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/mkl/mkl_quantized_conv_ops_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
13a3f2e4-d5ef-4e08-b0cb-49f8f2fdec84
cpp
tensorflow/tensorflow
exec_on_stall
tensorflow/core/util/exec_on_stall.h
tensorflow/core/util/exec_on_stall_test.cc
#ifndef TENSORFLOW_CORE_UTIL_EXEC_ON_STALL_H_ #define TENSORFLOW_CORE_UTIL_EXEC_ON_STALL_H_ #include <functional> #include "tensorflow/core/platform/env.h" #include "tensorflow/core/platform/mutex.h" namespace tensorflow { class ExecuteOnStall { public: ExecuteOnStall(int delay_secs, std::function<void()> f, ...
#include "tensorflow/core/util/exec_on_stall.h" #include <functional> #include <memory> #include <utility> #include "tensorflow/core/platform/macros.h" #include "tensorflow/core/platform/mutex.h" #include "tensorflow/core/platform/test.h" namespace tensorflow { namespace { struct Chunk { std::unique_ptr<ExecuteOnStal...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/util/exec_on_stall.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/util/exec_on_stall_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
511f9d16-bf58-4913-a3e8-d40d6b2c0fe5
cpp
tensorflow/tensorflow
mkl_heuristics
tensorflow/core/util/mkl_heuristics.h
tensorflow/core/util/mkl_heuristics_test.cc
#ifndef TENSORFLOW_CORE_UTIL_MKL_HEURISTICS_H_ #define TENSORFLOW_CORE_UTIL_MKL_HEURISTICS_H_ #ifdef INTEL_MKL #include <vector> #include "tensorflow/core/framework/node_def_util.h" #include "tensorflow/core/graph/graph.h" #include "tsl/platform/cpu_info.h" namespace tensorflow { struct RewriteThreshold { std::string...
#ifdef INTEL_MKL #define EIGEN_USE_THREADS #include "tensorflow/core/util/mkl_heuristics.h" #include "tensorflow/core/kernels/ops_testutil.h" #include "tensorflow/core/platform/test.h" namespace tensorflow { namespace { TEST(MklHeuristicsTest, MklCalculateMFlops) { int batch = 8; int width = 32; int height = 32; ...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/util/mkl_heuristics.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/util/mkl_heuristics_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
0c1c9d13-d0f8-48d2-8b19-bb7cb1d46d0c
cpp
tensorflow/tensorflow
reffed_status_callback
tensorflow/core/util/reffed_status_callback.h
tensorflow/core/util/reffed_status_callback_test.cc
#ifndef TENSORFLOW_CORE_UTIL_REFFED_STATUS_CALLBACK_H_ #define TENSORFLOW_CORE_UTIL_REFFED_STATUS_CALLBACK_H_ #include <utility> #include "absl/strings/str_cat.h" #include "tensorflow/core/lib/core/refcount.h" #include "tensorflow/core/lib/core/status.h" #include "tensorflow/core/platform/mutex.h" namespace tensorflow ...
#include "tensorflow/core/util/reffed_status_callback.h" #include <atomic> #include <utility> #include "absl/status/status.h" #include "absl/strings/match.h" #include "absl/strings/str_cat.h" #include "tensorflow/core/lib/core/errors.h" #include "tensorflow/core/lib/core/notification.h" #include "tensorflow/core/lib/co...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/util/reffed_status_callback.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/util/reffed_status_callback_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
eb44438c-84cc-487a-a607-7f89b0335637
cpp
tensorflow/tensorflow
mkl_util
tensorflow/core/util/mkl_util.h
tensorflow/core/util/mkl_util_test.cc
#ifndef TENSORFLOW_CORE_UTIL_MKL_UTIL_H_ #define TENSORFLOW_CORE_UTIL_MKL_UTIL_H_ #ifdef INTEL_MKL #include <list> #include <memory> #include <string> #include <unordered_map> #include <utility> #include <vector> #include "dnnl.hpp" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/te...
#ifdef INTEL_MKL #include "tensorflow/core/util/mkl_util.h" #include "tensorflow/core/platform/test.h" namespace tensorflow { namespace { TEST(MklUtilTest, MklDnnTfShape) { auto cpu_engine = engine(engine::kind::cpu, 0); MklDnnData<float> a(&cpu_engine); const int N = 1, C = 2, H = 3, W = 4; memory::dims a_dims...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/util/mkl_util.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/util/mkl_util_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea