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
94b41683-66eb-49e3-8f28-76f38f147e83
cpp
tensorflow/tensorflow
presized_cuckoo_map
tensorflow/core/util/presized_cuckoo_map.h
tensorflow/core/util/presized_cuckoo_map_test.cc
#ifndef TENSORFLOW_CORE_UTIL_PRESIZED_CUCKOO_MAP_H_ #define TENSORFLOW_CORE_UTIL_PRESIZED_CUCKOO_MAP_H_ #include <algorithm> #include <vector> #include "absl/base/prefetch.h" #include "absl/numeric/int128.h" #include "tensorflow/core/framework/types.h" #include "tensorflow/core/platform/macros.h" namespace tensorflow {...
#include "tensorflow/core/util/presized_cuckoo_map.h" #include <array> #include <vector> #include "tensorflow/core/platform/env.h" #include "tensorflow/core/platform/fingerprint.h" #include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/test_benchmark.h" namespace tensorflow { namespace { TEST(Pre...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/util/presized_cuckoo_map.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/util/presized_cuckoo_map_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
5b87bef5-aef6-4c86-af67-6588098ca436
cpp
tensorflow/tensorflow
overflow
tensorflow/core/util/overflow.h
tensorflow/core/util/overflow_test.cc
#ifndef TENSORFLOW_CORE_UTIL_OVERFLOW_H_ #define TENSORFLOW_CORE_UTIL_OVERFLOW_H_ #include "tensorflow/core/platform/logging.h" #include "tensorflow/core/platform/macros.h" #include "tensorflow/core/platform/types.h" namespace tensorflow { inline int64_t MultiplyWithoutOverflow(int64_t x, int64_t y) { if (TF_PREDICT_...
#include "tensorflow/core/util/overflow.h" #include <cmath> #include <limits> #include <vector> #ifdef PLATFORM_WINDOWS #include <Windows.h> #endif #include "tensorflow/core/platform/macros.h" #include "tensorflow/core/platform/test.h" namespace tensorflow { namespace { bool HasMultiplyOverflow(int64_t x, int64_t y) { ...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/util/overflow.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/util/overflow_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
6d9f8664-2194-465f-8bbc-99225991b66c
cpp
tensorflow/tensorflow
matmul_bcast
tensorflow/core/util/matmul_bcast.h
tensorflow/core/util/matmul_bcast_test.cc
#ifndef TENSORFLOW_CORE_UTIL_MATMUL_BCAST_H_ #define TENSORFLOW_CORE_UTIL_MATMUL_BCAST_H_ #include <algorithm> #include <memory> #include <utility> #include <vector> #include "tensorflow/core/framework/tensor_shape.h" #include "tensorflow/core/lib/gtl/inlined_vector.h" #include "tensorflow/core/util/bcast.h" namespace ...
#include "tensorflow/core/util/matmul_bcast.h" #include "tensorflow/core/lib/strings/str_util.h" #include "tensorflow/core/lib/strings/strcat.h" #include "tensorflow/core/platform/test.h" namespace tensorflow { namespace { string MatMulBCastToStr(const MatMulBCast& b) { if (!b.IsValid()) { return "invalid"; } ...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/util/matmul_bcast.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/util/matmul_bcast_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
95ee4ca1-2dec-41c4-beaa-acb7667b5f7b
cpp
tensorflow/tensorflow
ctc_beam_search
tensorflow/lite/kernels/ctc/ctc_beam_search.h
tensorflow/core/util/ctc/ctc_beam_search_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_CTC_CTC_BEAM_SEARCH_H_ #define TENSORFLOW_LITE_KERNELS_CTC_CTC_BEAM_SEARCH_H_ #include <algorithm> #include <cmath> #include <limits> #include <memory> #include <vector> #include "Eigen/Core" #include "tensorflow/lite/kernels/ctc/ctc_beam_entry.h" #include "tensorflow/lite/kernels/ctc/...
#include "tensorflow/core/util/ctc/ctc_beam_search.h" #include <cmath> #include "tensorflow/core/lib/strings/strcat.h" #include "tensorflow/core/platform/test.h" namespace { template <class T> using TestData = std::vector<std::vector<std::vector<T>>>; template <class T> struct HistoryBeamState { T score; std::vecto...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/ctc/ctc_beam_search.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/util/ctc/ctc_beam_search_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
4838c2d9-38ad-4e47-8b5e-fc837fc96c8d
cpp
tensorflow/tensorflow
op_requires
tensorflow/core/framework/op_requires.h
tensorflow/core/framework/op_requires_test.cc
#ifndef TENSORFLOW_CORE_FRAMEWORK_OP_REQUIRES_H_ #define TENSORFLOW_CORE_FRAMEWORK_OP_REQUIRES_H_ #include <utility> #include "tensorflow/core/platform/macros.h" namespace tensorflow { #define OP_REQUIRES(CTX, EXP, STATUS) \ do { \ if (!TF_PRE...
#include "tensorflow/core/framework/op_requires.h" #include <optional> #include <utility> #include "absl/status/status.h" #include "tensorflow/core/lib/gtl/cleanup.h" #include "tensorflow/core/platform/status_matchers.h" #include "tensorflow/core/platform/test.h" namespace tensorflow { namespace { using ::tensorflow::t...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/framework/op_requires.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/framework/op_requires_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
69e71fa6-5ee3-45a2-ac87-7b2a081c2431
cpp
tensorflow/tensorflow
resource_op_kernel
tensorflow/core/framework/resource_op_kernel.h
tensorflow/core/framework/resource_op_kernel_test.cc
#ifndef TENSORFLOW_CORE_FRAMEWORK_RESOURCE_OP_KERNEL_H_ #define TENSORFLOW_CORE_FRAMEWORK_RESOURCE_OP_KERNEL_H_ #include <string> #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/op_requires.h" #include "tensorflow/core/framework/resource_mgr.h" #include "tensorflow/core/framework/te...
#include "tensorflow/core/framework/resource_op_kernel.h" #include <memory> #include "tensorflow/core/framework/allocator.h" #include "tensorflow/core/framework/node_def_builder.h" #include "tensorflow/core/framework/node_def_util.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/t...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/framework/resource_op_kernel.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/framework/resource_op_kernel_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
3d19f3e5-b0b2-4ec8-b860-1a7e27e52728
cpp
tensorflow/tensorflow
partial_tensor_shape
tensorflow/core/framework/partial_tensor_shape.h
tensorflow/core/framework/partial_tensor_shape_test.cc
#ifndef TENSORFLOW_CORE_FRAMEWORK_PARTIAL_TENSOR_SHAPE_H_ #define TENSORFLOW_CORE_FRAMEWORK_PARTIAL_TENSOR_SHAPE_H_ #include "tensorflow/core/framework/tensor_shape.h" #endif
#include "tensorflow/core/framework/partial_tensor_shape.h" #include <limits> #include "xla/tsl/lib/core/status_test_util.h" #include "tensorflow/core/framework/tensor_shape.h" #include "tensorflow/core/framework/tensor_shape.pb.h" #include "tensorflow/core/lib/core/errors.h" #include "tensorflow/core/lib/core/status_t...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/framework/partial_tensor_shape.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/framework/partial_tensor_shape_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
e5eb671c-fe51-4224-9402-beab750cbaee
cpp
tensorflow/tensorflow
float8
tensorflow/core/platform/float8.h
third_party/xla/xla/tests/float8_test.cc
#ifndef TENSORFLOW_CORE_PLATFORM_FLOAT8_H_ #define TENSORFLOW_CORE_PLATFORM_FLOAT8_H_ #include "tsl/platform/ml_dtypes.h" namespace tensorflow { typedef tsl::float8_e4m3fn float8_e4m3fn; typedef tsl::float8_e5m2 float8_e5m2; } #endif
#include <cmath> #include <memory> #include <vector> #include <gtest/gtest.h> #include "xla/hlo/builder/xla_builder.h" #include "xla/test.h" #include "xla/tests/client_library_test_base.h" #include "xla/tests/test_macros.h" #include "tsl/platform/ml_dtypes.h" namespace xla { namespace { template <typename T> class Floa...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/platform/float8.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tests/float8_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
d7715548-177d-407d-b1e7-f44b71265ada
cpp
tensorflow/tensorflow
pending_counts
tensorflow/core/common_runtime/pending_counts.h
tensorflow/core/common_runtime/pending_counts_test.cc
#ifndef TENSORFLOW_CORE_COMMON_RUNTIME_PENDING_COUNTS_H_ #define TENSORFLOW_CORE_COMMON_RUNTIME_PENDING_COUNTS_H_ #include <atomic> #include "tensorflow/core/lib/gtl/flatmap.h" #include "tensorflow/core/lib/hash/hash.h" #include "tensorflow/core/platform/logging.h" #include "tensorflow/core/platform/macros.h" #include ...
#include "tensorflow/core/common_runtime/pending_counts.h" #include <memory> #include <unordered_map> #include <vector> #include "tensorflow/core/platform/env.h" #include "tensorflow/core/platform/test.h" using std::unique_ptr; namespace tensorflow { TEST(PendingCounts, Simple) { const int C = 300; PendingCounts::L...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/common_runtime/pending_counts.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/common_runtime/pending_counts_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
f03b26a7-efe8-47dd-867f-fb78537061cf
cpp
tensorflow/tensorflow
tf_rendezvous_c_api
tensorflow/core/common_runtime/next_pluggable_device/c/tf_rendezvous_c_api.h
tensorflow/core/common_runtime/next_pluggable_device/c/tf_rendezvous_c_api_test.cc
#ifndef TENSORFLOW_CORE_COMMON_RUNTIME_NEXT_PLUGGABLE_DEVICE_C_TF_RENDEZVOUS_C_API_H_ #define TENSORFLOW_CORE_COMMON_RUNTIME_NEXT_PLUGGABLE_DEVICE_C_TF_RENDEZVOUS_C_API_H_ #include <stdint.h> #include "tensorflow/c/c_api_macros.h" #include "tensorflow/c/tf_status.h" #include "tensorflow/c/tf_tensor.h" #ifdef __cplusp...
#include "tensorflow/core/common_runtime/next_pluggable_device/c/tf_rendezvous_c_api.h" #include <cstddef> #include <cstdint> #include <memory> #include <string> #include <vector> #include <gtest/gtest.h> #include "absl/status/status.h" #include "absl/strings/str_cat.h" #include "absl/synchronization/notification.h" #i...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/common_runtime/next_pluggable_device/c/tf_rendezvous_c_api.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/common_runtime/next_pluggable_device/c/tf_rendezvous_c_api_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
8bb9de31-2dae-4bbc-8191-b301b7399a6e
cpp
tensorflow/tensorflow
plugin_c_api
tensorflow/core/common_runtime/next_pluggable_device/c/plugin_c_api.h
tensorflow/core/common_runtime/next_pluggable_device/c/plugin_c_api_test.cc
#ifndef TENSORFLOW_CORE_COMMON_RUNTIME_NEXT_PLUGGABLE_DEVICE_C_PLUGIN_C_API_H_ #define TENSORFLOW_CORE_COMMON_RUNTIME_NEXT_PLUGGABLE_DEVICE_C_PLUGIN_C_API_H_ #include <cstddef> #include "tensorflow/c/c_api.h" #include "tensorflow/c/c_api_macros.h" #include "tensorflow/c/tf_status.h" #include "tensorflow/c/tf_tensor.h" ...
#include "tensorflow/core/common_runtime/next_pluggable_device/c/plugin_c_api.h" #include <functional> #include <memory> #include <string> #include <utility> #include <gtest/gtest.h> #include "tensorflow/c/tf_status.h" #include "tensorflow/core/common_runtime/next_pluggable_device/c/example_plugin.h" #include "tensorfl...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/common_runtime/next_pluggable_device/c/plugin_c_api.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/common_runtime/next_pluggable_device/c/plugin_c_api_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
8ea32162-2193-47e5-a498-0124570cc283
cpp
tensorflow/tensorflow
register_span
tensorflow/core/tfrt/mlrt/interpreter/register_span.h
tensorflow/core/tfrt/mlrt/interpreter/register_span_test.cc
#ifndef TENSORFLOW_CORE_TFRT_MLRT_INTERPRETER_REGISTER_SPAN_H_ #define TENSORFLOW_CORE_TFRT_MLRT_INTERPRETER_REGISTER_SPAN_H_ #include <iterator> #include "absl/types/span.h" #include "tensorflow/core/tfrt/mlrt/bytecode/bytecode.h" #include "tensorflow/core/tfrt/mlrt/bytecode/span.h" #include "tensorflow/core/tfrt/mlrt...
#include "tensorflow/core/tfrt/mlrt/interpreter/register_span.h" #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/types/span.h" #include "tensorflow/core/tfrt/mlrt/bytecode/bytecode.h" #include "tensorflow/core/tfrt/mlrt/interpreter/value.h" namespace mlrt { namespace { TEST(RegisterSp...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/tfrt/mlrt/interpreter/register_span.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/tfrt/mlrt/interpreter/register_span_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
5b95d526-b4b8-453b-be5a-fc62526a0718
cpp
tensorflow/tensorflow
bytecode
tensorflow/core/tfrt/mlrt/bytecode/bytecode.h
tensorflow/core/tfrt/mlrt/bytecode/bytecode_test.cc
#ifndef TENSORFLOW_CORE_TFRT_MLRT_BYTECODE_BYTECODE_H_ #define TENSORFLOW_CORE_TFRT_MLRT_BYTECODE_BYTECODE_H_ #include <cstddef> #include <cstring> #include <iterator> #include <string> #include <type_traits> #include <utility> #include <vector> #include "absl/log/check.h" #include "absl/strings/string_view.h" namespac...
#include "tensorflow/core/tfrt/mlrt/bytecode/bytecode.h" #include <array> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/strings/string_view.h" namespace mlrt { namespace bc { namespace { TEST(ByteCodeTest, VectorOfTrivial) { Buffer buffer; Allocator alloc(&buffer); auto ctor = New<Vector<uint32...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/tfrt/mlrt/bytecode/bytecode.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/tfrt/mlrt/bytecode/bytecode_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
4ada8775-bd63-45fb-95ee-e5da7caaac97
cpp
tensorflow/tensorflow
span
tensorflow/core/tfrt/mlrt/bytecode/span.h
tensorflow/core/tfrt/mlrt/bytecode/span_test.cc
#ifndef TENSORFLOW_CORE_TFRT_MLRT_BYTECODE_SPAN_H_ #define TENSORFLOW_CORE_TFRT_MLRT_BYTECODE_SPAN_H_ #include <cstdint> #include <vector> #include "tensorflow/core/tfrt/mlrt/bytecode/bytecode.h" namespace mlrt { namespace bc { template <typename T> class Span { public: using value_type = T; using iterator = ReadI...
#include "tensorflow/core/tfrt/mlrt/bytecode/span.h" #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "tensorflow/core/tfrt/mlrt/bytecode/bytecode.h" namespace mlrt { namespace bc { namespace { TEST(SpanTest, SpanOfTrivial) { Buffer buffer; Allocator alloc(&buffer); auto ctor = New<Vec...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/tfrt/mlrt/bytecode/span.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/tfrt/mlrt/bytecode/span_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
87e44559-632d-4de9-a01a-784c19792410
cpp
tensorflow/tensorflow
hash_tools
tensorflow/core/grappler/graph_analyzer/hash_tools.h
tensorflow/core/grappler/graph_analyzer/hash_tools_test.cc
#ifndef TENSORFLOW_CORE_GRAPPLER_GRAPH_ANALYZER_HASH_TOOLS_H_ #define TENSORFLOW_CORE_GRAPPLER_GRAPH_ANALYZER_HASH_TOOLS_H_ #include <cstddef> namespace tensorflow { namespace grappler { namespace graph_analyzer { inline void CombineHash(size_t from, size_t* to) { *to ^= from + 0x9e3779b9 + (*to << 6) + (*to >> 2); }...
#include "tensorflow/core/grappler/graph_analyzer/hash_tools.h" #include <gmock/gmock.h> #include <gtest/gtest.h> namespace tensorflow { namespace grappler { namespace graph_analyzer { namespace test { namespace { using ::testing::Eq; TEST(HashToolsTest, CombineHashCommutative) { size_t a = 0; size_t b = 999; siz...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/grappler/graph_analyzer/hash_tools.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/grappler/graph_analyzer/hash_tools_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
61bb902e-4e11-4c95-ab9f-f2ec2d85005e
cpp
tensorflow/tensorflow
graph_view_internal
tensorflow/core/grappler/utils/graph_view_internal.h
tensorflow/core/grappler/utils/graph_view_internal_test.cc
#ifndef TENSORFLOW_CORE_GRAPPLER_UTILS_GRAPH_VIEW_INTERNAL_H_ #define TENSORFLOW_CORE_GRAPPLER_UTILS_GRAPH_VIEW_INTERNAL_H_ #include "absl/container/flat_hash_map.h" #include "absl/container/flat_hash_set.h" #include "absl/hash/hash.h" #include "absl/strings/string_view.h" #include "tensorflow/core/framework/attr_value...
#include "tensorflow/core/grappler/utils/graph_view_internal.h" #include "absl/container/flat_hash_map.h" #include "tensorflow/core/framework/function_testlib.h" #include "tensorflow/core/grappler/utils/graph_view.h" #include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/platform/test.h" names...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/grappler/utils/graph_view_internal.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/grappler/utils/graph_view_internal_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
0d1d5990-3582-48ac-beea-f64aa5a27125
cpp
tensorflow/tensorflow
cleanup
tensorflow/c/experimental/filesystem/plugins/gcs/cleanup.h
tensorflow/core/lib/gtl/cleanup_test.cc
#ifndef TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_GCS_CLEANUP_H_ #define TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_GCS_CLEANUP_H_ #include <type_traits> #include <utility> namespace tf_gcs_filesystem { template <typename F> class Cleanup { public: Cleanup() : released_(true), f_() {} template <typename G> ...
#include "tensorflow/core/lib/gtl/cleanup.h" #include <functional> #include <type_traits> #include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/test_benchmark.h" namespace tensorflow { namespace { using AnyCleanup = gtl::Cleanup<std::function<void()>>; template <typename T1, typename T2> void As...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/c/experimental/filesystem/plugins/gcs/cleanup.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/gtl/cleanup_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
149c0591-4625-43a9-9386-2d63b5cf6225
cpp
tensorflow/tensorflow
edit_distance
tensorflow/core/lib/gtl/edit_distance.h
tensorflow/core/lib/gtl/edit_distance_test.cc
#ifndef TENSORFLOW_CORE_LIB_GTL_EDIT_DISTANCE_H_ #define TENSORFLOW_CORE_LIB_GTL_EDIT_DISTANCE_H_ #include <numeric> #include "tensorflow/core/lib/gtl/array_slice.h" #include "tensorflow/core/lib/gtl/inlined_vector.h" namespace tensorflow { namespace gtl { template <typename T, typename Cmp> inline int64_t LevenshteinD...
#include "tensorflow/core/lib/gtl/edit_distance.h" #include <cctype> #include <vector> #include "tensorflow/core/platform/logging.h" #include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/test_benchmark.h" #include "tensorflow/core/platform/types.h" namespace tensorflow { namespace gtl { namespac...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/gtl/edit_distance.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/gtl/edit_distance_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
24c0b822-8f7f-46ea-8ca8-f947c4705560
cpp
tensorflow/tensorflow
manual_constructor
tensorflow/core/lib/gtl/manual_constructor.h
tensorflow/core/lib/gtl/manual_constructor_test.cc
#ifndef TENSORFLOW_CORE_LIB_GTL_MANUAL_CONSTRUCTOR_H_ #define TENSORFLOW_CORE_LIB_GTL_MANUAL_CONSTRUCTOR_H_ #include <stddef.h> #include <new> #include <utility> #include "tensorflow/core/platform/macros.h" #include "tensorflow/core/platform/mem.h" namespace tensorflow { namespace gtl { namespace internal { #ifndef SWI...
#include "tensorflow/core/lib/gtl/manual_constructor.h" #include <stdint.h> #include "tensorflow/core/platform/logging.h" #include "tensorflow/core/platform/test.h" namespace tensorflow { namespace { static int constructor_count_ = 0; template <int kSize> struct TestN { TestN() { ++constructor_count_; } ~TestN() { ...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/gtl/manual_constructor.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/gtl/manual_constructor_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
b1ba6c91-c123-4aa3-ad58-8bf8217b1498
cpp
tensorflow/tensorflow
top_n
tensorflow/lite/kernels/ctc/top_n.h
tensorflow/core/lib/gtl/top_n_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_CTC_TOP_N_H_ #define TENSORFLOW_LITE_KERNELS_CTC_TOP_N_H_ #include <stddef.h> #include <algorithm> #include <functional> #include <string> #include <vector> #include "tensorflow/lite/kernels/internal/compatibility.h" namespace tflite { namespace gtl { template <class T, class Cmp = std::...
#include "tensorflow/core/lib/gtl/top_n.h" #include <string> #include <vector> #include "tensorflow/core/lib/random/simple_philox.h" #include "tensorflow/core/platform/logging.h" #include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/types.h" namespace { using tensorflow::string; using tensorflow...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/ctc/top_n.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/gtl/top_n_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
e9360b62-e10d-4dc4-b8bd-f135d545de17
cpp
tensorflow/tensorflow
tfprof_advisor
tensorflow/core/profiler/internal/advisor/tfprof_advisor.h
tensorflow/core/profiler/internal/advisor/tfprof_advisor_test.cc
#ifndef TENSORFLOW_CORE_PROFILER_INTERNAL_ADVISOR_TFPROF_ADVISOR_H_ #define TENSORFLOW_CORE_PROFILER_INTERNAL_ADVISOR_TFPROF_ADVISOR_H_ #include <vector> #include "absl/strings/str_format.h" #include "tensorflow/core/profiler/internal/advisor/accelerator_utilization_checker.h" #include "tensorflow/core/profiler/interna...
#include "tensorflow/core/profiler/internal/advisor/tfprof_advisor.h" #include <map> #include <memory> #include <vector> #include "absl/strings/match.h" #include "tensorflow/core/framework/graph.pb.h" #include "tensorflow/core/framework/node_def.pb.h" #include "tensorflow/core/framework/step_stats.pb.h" #include "tenso...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/profiler/internal/advisor/tfprof_advisor.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/profiler/internal/advisor/tfprof_advisor_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
239cfaaf-48f0-4bbb-8672-546770e99723
cpp
tensorflow/tensorflow
thread_safe_buffer
tensorflow/core/data/service/thread_safe_buffer.h
tensorflow/core/data/service/thread_safe_buffer_test.cc
#ifndef TENSORFLOW_CORE_DATA_SERVICE_THREAD_SAFE_BUFFER_H_ #define TENSORFLOW_CORE_DATA_SERVICE_THREAD_SAFE_BUFFER_H_ #include <deque> #include <utility> #include "tensorflow/core/platform/macros.h" #include "tensorflow/core/platform/mutex.h" #include "tensorflow/core/platform/status.h" #include "tensorflow/core/platfo...
#include "tensorflow/core/data/service/thread_safe_buffer.h" #include <memory> #include <tuple> #include <vector> #include "absl/strings/str_cat.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/framework/tensor_testutil.h" #include "tensorflow/core/lib/core/status_test_util.h" #include "tensor...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/data/service/thread_safe_buffer.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/data/service/thread_safe_buffer_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
b06baea6-f014-46e5-b82a-6472409090f8
cpp
tensorflow/tensorflow
cross_trainer_cache
tensorflow/core/data/service/cross_trainer_cache.h
tensorflow/core/data/service/cross_trainer_cache_test.cc
#ifndef TENSORFLOW_CORE_DATA_SERVICE_CROSS_TRAINER_CACHE_H_ #define TENSORFLOW_CORE_DATA_SERVICE_CROSS_TRAINER_CACHE_H_ #include <cstddef> #include <deque> #include <functional> #include <limits> #include <memory> #include <string> #include <utility> #include "absl/container/flat_hash_map.h" #include "tensorflow/core/d...
#include "tensorflow/core/data/service/cross_trainer_cache.h" #include <cstdint> #include <memory> #include <string> #include <utility> #include <vector> #include "absl/container/flat_hash_map.h" #include "absl/memory/memory.h" #include "absl/strings/str_cat.h" #include "absl/time/time.h" #include "tensorflow/core/fram...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/data/service/cross_trainer_cache.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/data/service/cross_trainer_cache_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
241c7c0e-4f18-4489-be6e-d7b6a4d84b49
cpp
tensorflow/tensorflow
builtin_op_data
tensorflow/compiler/mlir/lite/core/c/builtin_op_data.h
tensorflow/lite/core/c/builtin_op_data_test.cc
#ifndef TENSORFLOW_COMPILER_MLIR_LITE_CORE_C_BUILTIN_OP_DATA_H_ #define TENSORFLOW_COMPILER_MLIR_LITE_CORE_C_BUILTIN_OP_DATA_H_ typedef enum { kTfLitePaddingUnknown = 0, kTfLitePaddingSame, kTfLitePaddingValid, } TfLitePadding; typedef enum { kTfLiteActNone = 0, kTfLiteActRelu, kTfLiteActReluN1To1, kTfL...
#include "tensorflow/lite/core/c/builtin_op_data.h" #include <gtest/gtest.h> namespace tflite { TEST(IntArray, CanCompileStructs) { TfLitePadding padding = kTfLitePaddingSame; TfLitePaddingValues padding_values; TfLiteFusedActivation fused_activation = kTfLiteActRelu; TfLiteConvParams conv_params; TfLitePoolP...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/lite/core/c/builtin_op_data.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/core/c/builtin_op_data_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
0bee8605-291b-4815-9e79-77612b2128b2
cpp
tensorflow/tensorflow
type_to_tflitetype
tensorflow/lite/type_to_tflitetype.h
tensorflow/lite/type_to_tflitetype_test.cc
#ifndef TENSORFLOW_LITE_TYPE_TO_TFLITETYPE_H_ #define TENSORFLOW_LITE_TYPE_TO_TFLITETYPE_H_ #include <complex> #include <string> #include "tensorflow/lite/core/c/common.h" #include "tensorflow/lite/portable_type_to_tflitetype.h" namespace tflite { MATCH_TYPE_AND_TFLITE_TYPE(std::string, kTfLiteString); MATCH_TYPE_AND_T...
#include "tensorflow/lite/type_to_tflitetype.h" #include <string> #include <type_traits> #include <gtest/gtest.h> #include "tensorflow/lite/core/c/c_api_types.h" #include "tensorflow/lite/portable_type_to_tflitetype.h" namespace tflite { namespace { TEST(TypeToTfLiteType, TypeMapsAreInverseOfEachOther) { EXPECT_EQ(kT...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/type_to_tflitetype.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/type_to_tflitetype_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
ec5e5467-28e8-4e41-a333-1a91de739759
cpp
tensorflow/tensorflow
cpu_backend_gemm
tensorflow/lite/kernels/cpu_backend_gemm.h
tensorflow/lite/kernels/cpu_backend_gemm_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_CPU_BACKEND_GEMM_H_ #define TENSORFLOW_LITE_KERNELS_CPU_BACKEND_GEMM_H_ #include <cstdint> #include "ruy/profiler/instrumentation.h" #include "tensorflow/lite/kernels/cpu_backend_context.h" #include "tensorflow/lite/kernels/cpu_backend_gemm_custom_gemv.h" #include "tensorflow/lite/kern...
#include "tensorflow/lite/kernels/cpu_backend_gemm.h" #include <math.h> #include <stdint.h> #include <stdlib.h> #include <algorithm> #include <iterator> #include <limits> #include <random> #include <sstream> #include <string> #include <tuple> #include <type_traits> #include <vector> #include <gtest/gtest.h> #include "r...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/cpu_backend_gemm.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/cpu_backend_gemm_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
77cd2394-1ec2-4b7a-876d-77461d0d270a
cpp
tensorflow/tensorflow
transpose_test_utils
tensorflow/lite/kernels/transpose_test_utils.h
tensorflow/lite/kernels/transpose_test_utils_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_TRANSPOSE_TEST_UTILS_H_ #define TENSORFLOW_LITE_KERNELS_TRANSPOSE_TEST_UTILS_H_ #include <functional> #include <vector> #include "absl/algorithm/container.h" #include "absl/types/span.h" #include "tensorflow/lite/kernels/internal/portable_tensor.h" #include "tensorflow/lite/kernels/inter...
#include "tensorflow/lite/kernels/transpose_test_utils.h" #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/algorithm/container.h" using testing::ElementsAreArray; namespace tflite { namespace { TEST(TransposeTest, TestRefOps1D) { EXPECT_THAT(RunTestPermutation<float>({3}, {0}), Eleme...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/transpose_test_utils.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/transpose_test_utils_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
82311f9f-96cf-4304-b0ea-6fd681e6896c
cpp
tensorflow/tensorflow
cpu_backend_threadpool
tensorflow/lite/kernels/cpu_backend_threadpool.h
tensorflow/lite/kernels/cpu_backend_threadpool_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_CPU_BACKEND_THREADPOOL_H_ #define TENSORFLOW_LITE_KERNELS_CPU_BACKEND_THREADPOOL_H_ #include "tensorflow/lite/kernels/cpu_backend_context.h" #include "tensorflow/lite/kernels/internal/compatibility.h" #ifdef TFLITE_WITH_RUY #include "ruy/context.h" #include "ruy/thread_pool.h" #else ...
#include "tensorflow/lite/kernels/cpu_backend_threadpool.h" #include <vector> #include <gtest/gtest.h> #include "tensorflow/lite/kernels/cpu_backend_context.h" namespace tflite { namespace { class TestGenerateArrayOfIncrementingIntsTask : public cpu_backend_threadpool::Task { public: TestGenerateArrayOfIncrement...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/cpu_backend_threadpool.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/cpu_backend_threadpool_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
fc8bfaa4-1e18-4a7e-9928-d841f1cf4f11
cpp
tensorflow/tensorflow
stablehlo_reduce_window_test_util
tensorflow/lite/kernels/stablehlo_reduce_window_test_util.h
tensorflow/lite/kernels/stablehlo_reduce_window_test_util_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_STABLEHLO_REDUCE_WINDOW_TEST_UTIL_H_ #define TENSORFLOW_LITE_KERNELS_STABLEHLO_REDUCE_WINDOW_TEST_UTIL_H_ #include <algorithm> #include <cstddef> #include <cstdint> #include <functional> #include <initializer_list> #include <numeric> #include <utility> #include <vector> #include "absl/al...
#include "tensorflow/lite/kernels/stablehlo_reduce_window_test_util.h" #include <functional> #include <gmock/gmock.h> #include <gtest/gtest.h> namespace tflite::reduce_window::reference { namespace { using ::testing::ElementsAre; using ::testing::ElementsAreArray; TEST(ReferenceTest, DilateWorks) { reference::Tensor<...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/stablehlo_reduce_window_test_util.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/stablehlo_reduce_window_test_util_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
0c721096-8562-4b1d-b7aa-af2b88995ff3
cpp
tensorflow/tensorflow
strided_slice_logic
tensorflow/lite/kernels/internal/strided_slice_logic.h
tensorflow/lite/kernels/internal/strided_slice_logic_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_STRIDED_SLICE_LOGIC_H_ #define TENSORFLOW_LITE_KERNELS_INTERNAL_STRIDED_SLICE_LOGIC_H_ #include <limits> #include <vector> #include "tensorflow/lite/kernels/internal/compatibility.h" #include "tensorflow/lite/kernels/internal/types.h" namespace tflite { namespace strided_slice {...
#include "tensorflow/lite/kernels/internal/strided_slice_logic.h" #include <initializer_list> #include <gtest/gtest.h> namespace tflite { namespace { void RunStridedSlicePadIndices(std::initializer_list<int> begin, std::initializer_list<int> end, std::initia...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/internal/strided_slice_logic.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/internal/strided_slice_logic_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
6c3acfcc-9911-4a1a-ab26-87375436a5b8
cpp
tensorflow/tensorflow
avx2_quantization_utils
tensorflow/lite/kernels/internal/optimized/avx2_quantization_utils.h
tensorflow/lite/kernels/internal/optimized/avx2_quantization_utils_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_AVX2_QUANTIZATION_UTILS_H_ #define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_AVX2_QUANTIZATION_UTILS_H_ #ifdef __AVX2__ #include <immintrin.h> #include <limits> #include "tensorflow/lite/kernels/internal/compatibility.h" namespace tflite { namespace avx2_utils { stati...
#include "tensorflow/lite/kernels/internal/optimized/avx2_quantization_utils.h" #include <gmock/gmock.h> #include "tensorflow/lite/kernels/internal/common.h" #ifdef __AVX2__ namespace tflite { namespace avx2_utils { namespace { using ::testing::ElementsAreArray; __m256i FillVectorWithInt32(const std::vector<int32_t>& s...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/internal/optimized/avx2_quantization_utils.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/internal/optimized/avx2_quantization_utils_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
ebc77db0-35d1-443b-8e86-281f12c77876
cpp
tensorflow/tensorflow
fully_connected_4bit
tensorflow/lite/kernels/internal/optimized/fully_connected_4bit.h
tensorflow/lite/kernels/fully_connected_4bit_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_FULLY_CONNECTED_4BIT_H_ #define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_FULLY_CONNECTED_4BIT_H_ #include <stdint.h> #ifndef TFLITE_MMAP_DISABLED #include <sys/mman.h> #endif #include <cstdlib> #include <memory> #if defined(FC_4BIT_SSE) && defined(__SSSE3__) #include...
#include <cstdlib> #include <memory> #include <random> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "tensorflow/lite/kernels/fully_connected.h" #include "tensorflow/lite/kernels/test_util.h" #include "tensorflow/lite/schema/schema_generated.h" namespace tflite { class FullyConnected4BitO...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/internal/optimized/fully_connected_4bit.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/fully_connected_4bit_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
ecaeac1a-3764-4ad2-9601-bb802ba6ec39
cpp
tensorflow/tensorflow
reduce_utils
tensorflow/lite/kernels/internal/optimized/reduce_utils.h
tensorflow/lite/kernels/internal/optimized/reduce_utils_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_REDUCE_UTILS_H_ #define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_REDUCE_UTILS_H_ #include <stdint.h> #include <algorithm> #include <cstring> namespace tflite { namespace reduce_utils { inline void RemoveSize1Dims(int* shape_out, int& out_num_dims, int* axis_out, ...
#include "tensorflow/lite/kernels/internal/optimized/reduce_utils.h" #include <gmock/gmock.h> namespace tflite { namespace reduce_utils { namespace { using ::testing::ElementsAreArray; void TestFunction(const std::vector<int>& axis_in, const std::vector<int>& shape_in, const std::vec...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/internal/optimized/reduce_utils.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/internal/optimized/reduce_utils_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
c7cec2c6-4c63-4839-b12d-e64a94d8516d
cpp
tensorflow/tensorflow
depthwiseconv_float
tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h
tensorflow/lite/kernels/internal/depthwiseconv_float_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_DEPTHWISECONV_FLOAT_H_ #define TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_DEPTHWISECONV_FLOAT_H_ #include "tensorflow/lite/kernels/internal/common.h" #include "tensorflow/lite/kernels/internal/compatibility.h" #include "tensorflow/lite/kernels/internal/types.h" namespa...
#include <algorithm> #include <cmath> #include <vector> #include <gtest/gtest.h> #include "tensorflow/lite/kernels/internal/common.h" #include "tensorflow/lite/kernels/internal/test_util.h" #include "tensorflow/lite/kernels/internal/types.h" #define ALLOW_SLOW_GENERIC_DEPTHWISECONV_FALLBACK #include "tensorflow/lite/ke...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/internal/depthwiseconv_float_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
a0b74122-fd6d-4716-ae45-35839fa3648e
cpp
tensorflow/tensorflow
leaky_relu
tensorflow/lite/kernels/internal/reference/leaky_relu.h
tensorflow/lite/delegates/xnnpack/leaky_relu_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_LEAKY_RELU_H_ #define TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_LEAKY_RELU_H_ #include <algorithm> #include <limits> #include "tensorflow/lite/kernels/internal/common.h" namespace tflite { namespace reference_ops { inline void LeakyRelu(const tflite::LeakyReluParams& ...
#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/leaky_relu_tester.h" #include "tensorflow/lite/delegates/xnnpack/xnnpack_delegate.h" namespace tflite { namespace xnnpack { TEST(Le...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/internal/reference/leaky_relu.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/delegates/xnnpack/leaky_relu_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
9662c336-34ba-4275-bdd6-126ea9e0e928
cpp
tensorflow/tensorflow
depthwise_conv_hybrid
tensorflow/lite/kernels/internal/optimized/integer_ops/depthwise_conv_hybrid.h
tensorflow/lite/kernels/depthwise_conv_hybrid_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_INTEGER_OPS_DEPTHWISE_CONV_HYBRID_H_ #define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_INTEGER_OPS_DEPTHWISE_CONV_HYBRID_H_ #include <algorithm> #include <memory> #include "ruy/profiler/instrumentation.h" #include "tensorflow/lite/kernels/cpu_backend_context.h" #inc...
#include <stddef.h> #include <cstdint> #include <initializer_list> #include <map> #include <memory> #include <string> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/memory/memory.h" #include "flatbuffers/flatbuffers.h" #include "tensorflow/lite/core/api/op_resolver.h" #include "ten...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/internal/optimized/integer_ops/depthwise_conv_hybrid.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/depthwise_conv_hybrid_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
cb11a735-6e22-4839-a3bd-054b7b308c9b
cpp
tensorflow/tensorflow
hard_swish
tensorflow/lite/kernels/internal/reference/hard_swish.h
tensorflow/lite/delegates/xnnpack/hard_swish_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_HARD_SWISH_H_ #define TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_HARD_SWISH_H_ #include <algorithm> #include "ruy/profiler/instrumentation.h" #include "tensorflow/lite/kernels/internal/common.h" #include "tensorflow/lite/kernels/internal/types.h" namespace tflite { n...
#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/unary_elementwise_tester.h" #include "tensorflow/lite/delegates/xnnpack/xnnpack_delegate.h" #include "tensorflow/lite/schema/schema...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/internal/reference/hard_swish.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/delegates/xnnpack/hard_swish_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
41037164-37cc-4768-8671-a4dc89ea1e73
cpp
tensorflow/tensorflow
elu
tensorflow/lite/kernels/internal/reference/elu.h
tensorflow/lite/delegates/xnnpack/elu_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_ELU_H_ #define TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_ELU_H_ #include "tensorflow/lite/kernels/internal/cppmath.h" #include "tensorflow/lite/kernels/internal/types.h" namespace tflite { namespace reference_ops { inline void Elu(const RuntimeShape& input_shape, cons...
#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/unary_elementwise_tester.h" #include "tensorflow/lite/delegates/xnnpack/xnnpack_delegate.h" #include "tensorflow/lite/schema/schema...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/internal/reference/elu.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/delegates/xnnpack/elu_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
ef42979d-a408-4ce0-8289-0539d58d3676
cpp
tensorflow/tensorflow
tflite_op_wrapper
tensorflow/lite/kernels/shim/tflite_op_wrapper.h
tensorflow/lite/kernels/shim/tflite_op_wrapper_test.cc
#ifndef TENSORFLOW_LITE_KERNELS_SHIM_TFLITE_OP_WRAPPER_H_ #define TENSORFLOW_LITE_KERNELS_SHIM_TFLITE_OP_WRAPPER_H_ #include <cstdint> #include <memory> #include <string> #include <tuple> #include <utility> #include <variant> #include <vector> #include "tensorflow/lite/c/common.h" #include "tensorflow/lite/kernels/shim...
#include "tensorflow/lite/kernels/shim/tflite_op_wrapper.h" #include <cstddef> #include <cstdint> #include <memory> #include <string> #include <utility> #include <variant> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include "absl/strings/string_view.h" #include "...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/shim/tflite_op_wrapper.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/shim/tflite_op_wrapper_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
478e159d-c7e6-4af3-b9bc-6be8519c096c
cpp
tensorflow/tensorflow
libjpeg_handle
tensorflow/lite/experimental/acceleration/mini_benchmark/libjpeg_handle.h
tensorflow/lite/experimental/acceleration/mini_benchmark/libjpeg_handle_test.cc
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_ACCELERATION_MINI_BENCHMARK_LIBJPEG_HANDLE_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_ACCELERATION_MINI_BENCHMARK_LIBJPEG_HANDLE_H_ #include <stddef.h> #include <stdio.h> #include <memory> #include <string> #include "tensorflow/lite/experimental/acceleration/mini_benchmark/decode_jpeg_...
#include "tensorflow/lite/experimental/acceleration/mini_benchmark/libjpeg_handle.h" #include <memory> #include <gtest/gtest.h> #include "tensorflow/lite/core/c/c_api_types.h" #include "tensorflow/lite/experimental/acceleration/mini_benchmark/decode_jpeg_status.h" namespace tflite { namespace acceleration { namespace d...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/acceleration/mini_benchmark/libjpeg_handle.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/acceleration/mini_benchmark/libjpeg_handle_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
b1eaa4f7-89a4-4061-89a3-e9e5d277c703
cpp
tensorflow/tensorflow
jpeg_decompress_buffered_struct
tensorflow/lite/experimental/acceleration/mini_benchmark/jpeg_decompress_buffered_struct.h
tensorflow/lite/experimental/acceleration/mini_benchmark/jpeg_decompress_buffered_struct_test.cc
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_ACCELERATION_MINI_BENCHMARK_JPEG_DECOMPRESS_BUFFERED_STRUCT_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_ACCELERATION_MINI_BENCHMARK_JPEG_DECOMPRESS_BUFFERED_STRUCT_H_ #include <algorithm> #include <cstddef> #include <cstdlib> #include <vector> #include "tensorflow/lite/experimental/acce...
#include "tensorflow/lite/experimental/acceleration/mini_benchmark/jpeg_decompress_buffered_struct.h" #include <cstddef> #include <gmock/gmock.h> #include <gtest/gtest.h> namespace tflite { namespace acceleration { namespace decode_jpeg_kernel { namespace { const int kSizeOfJpegDecompressStruct = sizeof(jpeg_decompress...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/acceleration/mini_benchmark/jpeg_decompress_buffered_struct.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/acceleration/mini_benchmark/jpeg_decompress_buffered_struct_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
de5331d4-fad9-4f40-929c-87bc3b1f7279
cpp
tensorflow/tensorflow
algo
tensorflow/lite/experimental/lrt/core/algo.h
tensorflow/lite/experimental/lrt/core/algo_test.cc
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_LRT_CORE_ALGO_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_LRT_CORE_ALGO_H_ #include <algorithm> #include <memory> #include <optional> #include <unordered_map> #include <utility> #include <vector> #include "absl/log/check.h" #include "llvm/ADT/MapVector.h" #include "tensorflow/lite/exper...
#include "tensorflow/lite/experimental/lrt/core/algo.h" #include <memory> #include <unordered_set> #include <vector> #include <gtest/gtest.h> #include "tensorflow/lite/experimental/lrt/c/lite_rt_model.h" #include "tensorflow/lite/experimental/lrt/c/lite_rt_op_code.h" #include "tensorflow/lite/experimental/lrt/cc/lite_r...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/lrt/core/algo.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/lrt/core/algo_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
813f4cdc-b499-41a1-9d6d-a182f641d0ef
cpp
tensorflow/tensorflow
bf16
tensorflow/lite/experimental/shlo/legacy/src/bf16.h
tensorflow/lite/experimental/shlo/bf16_test.cc
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_SHLO_LEGACY_SRC_BF16_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_SHLO_LEGACY_SRC_BF16_H_ #include "tensorflow/lite/experimental/shlo/legacy/src/has_keyword.h" #if defined(__STDCPP_BFLOAT16_T__) #include <stdfloat> namespace stablehlo { using BF16 = bfloat16_t; } #elif __has_keyword(__...
#include "tensorflow/lite/experimental/shlo/bf16.h" #include <cmath> #include <cstdint> #include <cstring> #include <limits> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/base/casts.h" namespace shlo_ref { namespace { ::testing::Matcher<BF16> MatchesBits(uint16_t bits) { return ::testing::ResultOf(...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/shlo/legacy/src/bf16.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/shlo/bf16_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
7af3d205-5d2b-4bdd-a060-042589eba699
cpp
tensorflow/tensorflow
f16
tensorflow/lite/experimental/shlo/legacy/src/f16.h
tensorflow/lite/experimental/shlo/f16_test.cc
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_SHLO_LEGACY_SRC_F16_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_SHLO_LEGACY_SRC_F16_H_ #include "tensorflow/lite/experimental/shlo/legacy/src/has_keyword.h" #if defined(__STDCPP_FLOAT16_T__) #include <stdfloat> namespace stablehlo { using F16 = float16_t; } #elif __has_keyword(_Float1...
#include "tensorflow/lite/experimental/shlo/f16.h" #include <cstdint> #include <limits> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/base/casts.h" namespace shlo_ref { namespace { using ::testing::FloatNear; using RoundtripTypeList = ::testing::Types<float, double>; template <class T> struct Roundtr...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/shlo/legacy/src/f16.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/shlo/f16_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
d91e02de-81f7-406d-b4a6-caa95336163b
cpp
tensorflow/tensorflow
overload
tensorflow/lite/experimental/shlo/overload.h
tensorflow/lite/experimental/shlo/overload_test.cc
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_SHLO_OVERLOAD_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_SHLO_OVERLOAD_H_ namespace shlo_ref { template <class... Ts> class Overload : public Ts... { public: explicit Overload(Ts&&... ts) : Ts(static_cast<Ts&&>(ts))... {} using Ts::operator()...; }; template <class... Ts> Overload...
#include "tensorflow/lite/experimental/shlo/overload.h" #include <cstdint> #include <string> #include <type_traits> #include <variant> #include <gtest/gtest.h> #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" namespace { TEST(OverloadTest, DispatchConsidersTypeWithAutoFallback) { auto overloade...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/shlo/overload.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/shlo/overload_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
5ac5caa6-167b-4fcd-a4de-786282f38404
cpp
tensorflow/tensorflow
i4
tensorflow/lite/experimental/shlo/i4.h
tensorflow/lite/experimental/shlo/i4_test.cc
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_SHLO_I4_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_SHLO_I4_H_ #include <cstdint> #include <limits> #include <ostream> #include <type_traits> namespace shlo_ref { struct I4 { int8_t data = 0; constexpr I4() = default; constexpr I4(const I4&) = default; constexpr I4& operator=(co...
#include "tensorflow/lite/experimental/shlo/i4.h" #include <cstdint> #include <gtest/gtest.h> namespace shlo_ref { namespace { TEST(I4Test, ConstructFromArithmeticType) { const I4 from_int8(static_cast<int8_t>(1)); EXPECT_EQ(from_int8.data, 1); const I4 from_int16(static_cast<int16_t>(1)); EXPECT_EQ(from_int16....
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/shlo/i4.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/shlo/i4_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
a7fcf972-41f2-48c3-b0a6-e320192e62bb
cpp
tensorflow/tensorflow
dispatch
tensorflow/lite/experimental/shlo/legacy/src/dispatch.h
tensorflow/lite/experimental/shlo/dispatch_test.cc
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_SHLO_LEGACY_SRC_DISPATCH_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_SHLO_LEGACY_SRC_DISPATCH_H_ namespace stablehlo { #define DISPATCH_INT(name, element_type, ...) \ { \ switch (elem...
#include "tensorflow/lite/experimental/shlo/dispatch.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include "tensorflow/lite/experimental/shlo/status_matcher.h" namespace { void VoidFunction() {} TEST(DispatchTest, ReturnAbslOkIfVoidCompiles) { auto f = []() -> absl::Status { RE...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/shlo/legacy/src/dispatch.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/shlo/dispatch_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
9686cbe2-1b68-4171-9e71-4db9ddcde1c8
cpp
tensorflow/tensorflow
matchers
tensorflow/lite/testing/matchers.h
tensorflow/lite/testing/matchers_test.cc
#ifndef TENSORFLOW_LITE_TESTING_MATCHERS_H_ #define TENSORFLOW_LITE_TESTING_MATCHERS_H_ #include <algorithm> #include <cfloat> #include <cmath> #include <cstring> #include <iomanip> #include <iostream> #include <limits> #include <sstream> #include <string> #include <string_view> #include <vector> #include <gtest/gtest....
#include "tensorflow/lite/testing/matchers.h" #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/types/span.h" #include "tensorflow/lite/core/c/c_api_types.h" #include "tensorflow/lite/core/c/common.h" namespace tflite { namespace { using ::testing::tflite::Approximately; using ::testing...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/testing/matchers.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/testing/matchers_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
8dd52495-17d6-4d03-9b40-62c146124490
cpp
tensorflow/tensorflow
binary_elementwise
tensorflow/lite/experimental/shlo/ops/binary_elementwise.h
tensorflow/lite/experimental/shlo/ops/binary_elementwise_test.cc
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_SHLO_OPS_BINARY_ELEMENTWISE_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_SHLO_OPS_BINARY_ELEMENTWISE_H_ #include "tensorflow/lite/experimental/shlo/data_type.h" #include "tensorflow/lite/experimental/shlo/quantize.h" #include "tensorflow/lite/experimental/shlo/quantized_tensor_element_ty...
#include "tensorflow/lite/experimental/shlo/ops/binary_elementwise.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include "tensorflow/lite/experimental/shlo/ops/test_util.h" #include "tensorflow/lite/experimental/shlo/quantized_tensor_element_type.h" #include "tensorflow/lite/experimental/shlo/shape.h" #include ...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/shlo/ops/binary_elementwise.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/shlo/ops/binary_elementwise_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
ed9a82cd-053d-4367-8614-919d3297f750
cpp
tensorflow/tensorflow
unary_elementwise
tensorflow/lite/experimental/shlo/ops/unary_elementwise.h
tensorflow/lite/experimental/shlo/ops/unary_elementwise_test.cc
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_SHLO_OPS_UNARY_ELEMENTWISE_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_SHLO_OPS_UNARY_ELEMENTWISE_H_ #include <cstddef> #include "absl/algorithm/container.h" #include "absl/status/status.h" #include "absl/types/span.h" #include "tensorflow/lite/experimental/shlo/data_type.h" #include "t...
#include "tensorflow/lite/experimental/shlo/ops/unary_elementwise.h" #include <cstddef> #include <cstdint> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/algorithm/container.h" #include "tensorflow/lite/experimental/shlo/data_type.h" #include "tensorflow/lite/experimental/shlo/ops/test_util.h" #includ...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/shlo/ops/unary_elementwise.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/shlo/ops/unary_elementwise_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
34deddd6-48d3-4706-9c67-4fd08209682b
cpp
tensorflow/tensorflow
reduced_precision_support
tensorflow/lite/tools/optimize/reduced_precision_support.h
tensorflow/lite/tools/optimize/reduced_precision_support_test.cc
#ifndef TENSORFLOW_LITE_TOOLS_OPTIMIZE_REDUCED_PRECISION_SUPPORT_H_ #define TENSORFLOW_LITE_TOOLS_OPTIMIZE_REDUCED_PRECISION_SUPPORT_H_ #include <string> #include "tensorflow/compiler/mlir/lite/tools/optimize/reduced_precision_metadata.h" namespace tflite { namespace optimize { inline bool ReadInferenceType(const std::...
#include "tensorflow/lite/tools/optimize/reduced_precision_support.h" #include <string> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/memory/memory.h" #include "tensorflow/core/platform/init_main.h" #include "tensorflow/lite/core/model.h" #include "tensorflow/lite/schema/schema_gene...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/tools/optimize/reduced_precision_support.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/tools/optimize/reduced_precision_support_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
8244d340-5db9-4480-9ac7-8d78b3bb8bef
cpp
tensorflow/tensorflow
op_resolver_internal
tensorflow/lite/core/api/op_resolver_internal.h
tensorflow/lite/core/api/op_resolver_internal_test.cc
#ifndef TENSORFLOW_LITE_CORE_API_OP_RESOLVER_INTERNAL_H_ #define TENSORFLOW_LITE_CORE_API_OP_RESOLVER_INTERNAL_H_ #include <memory> #include "tensorflow/lite/core/api/op_resolver.h" namespace tflite { class OpResolverInternal { public: OpResolverInternal() = delete; static bool MayContainUserDefinedOps(const OpRes...
#include "tensorflow/lite/core/api/op_resolver_internal.h" #include <gtest/gtest.h> #include "tensorflow/lite/core/api/op_resolver.h" #include "tensorflow/lite/core/kernels/builtin_op_kernels.h" #include "tensorflow/lite/core/kernels/register.h" #include "tensorflow/lite/mutable_op_resolver.h" #include "tensorflow/lite...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/core/api/op_resolver_internal.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/core/api/op_resolver_internal_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
62baec0c-be0a-40db-ac9e-428679188958
cpp
tensorflow/tensorflow
test_runner
tensorflow/lite/testing/test_runner.h
tensorflow/lite/testing/test_runner_test.cc
#ifndef TENSORFLOW_LITE_TESTING_TEST_RUNNER_H_ #define TENSORFLOW_LITE_TESTING_TEST_RUNNER_H_ #include <iostream> #include <memory> #include <string> #include <vector> #include "tensorflow/lite/string_type.h" namespace tflite { namespace testing { class TestRunner { public: TestRunner() {} virtual ~TestRunner() {}...
#include "tensorflow/lite/testing/test_runner.h" #include <string> #include <gtest/gtest.h> #include "tensorflow/lite/string_type.h" namespace tflite { namespace testing { namespace { class ConcreteTestRunner : public TestRunner { public: void LoadModel(const string& bin_file_path) override {} void AllocateTensors...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/testing/test_runner.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/testing/test_runner_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
ae8ab56f-beae-43b8-9489-c0242595dbcc
cpp
tensorflow/tensorflow
join
tensorflow/lite/testing/join.h
tensorflow/lite/testing/join_test.cc
#ifndef TENSORFLOW_LITE_TESTING_JOIN_H_ #define TENSORFLOW_LITE_TESTING_JOIN_H_ #include <cstdint> #include <cstdlib> #include <iomanip> #include <sstream> #include "tensorflow/lite/string_type.h" namespace tflite { namespace testing { template <typename T> string JoinDefault(T* data, size_t len, const string& delimite...
#include "tensorflow/lite/testing/join.h" #include <gmock/gmock.h> #include <gtest/gtest.h> namespace tflite { namespace testing { namespace { TEST(JoinTest, JoinInt) { std::vector<int> data = {1, 2, 3}; EXPECT_EQ(Join(data.data(), data.size(), ","), "1,2,3"); } TEST(JoinDefaultTest, JoinFloat) { float data[] = {...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/testing/join.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/testing/join_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
7a29b9d1-1578-444f-adeb-b1e9b5c2583e
cpp
tensorflow/tensorflow
flexbuffers_util
tensorflow/lite/delegates/xnnpack/flexbuffers_util.h
tensorflow/lite/delegates/xnnpack/flexbuffers_util_test.cc
#ifndef TENSORFLOW_LITE_DELEGATES_XNNPACK_FLEXBUFFERS_UTIL_H_ #define TENSORFLOW_LITE_DELEGATES_XNNPACK_FLEXBUFFERS_UTIL_H_ #include "flatbuffers/base.h" #include "flatbuffers/flexbuffers.h" namespace tflite::xnnpack { struct FloatPointer { const float* ptr = nullptr; }; } namespace flexbuffers { template <> tf...
#include "tensorflow/lite/delegates/xnnpack/flexbuffers_util.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include "flatbuffers/flexbuffers.h" namespace tflite::xnnpack { namespace { using ::testing::Pointee; TEST(FlexbuffersUtilTest, FloatPointer) { constexpr float kAValue = 3.14; constexpr float kBValue...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/delegates/xnnpack/flexbuffers_util.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/delegates/xnnpack/flexbuffers_util_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
9f5bec3b-5ad6-4383-b363-31a826e9cb9f
cpp
tensorflow/tensorflow
tensorhandle
tensorflow/cc/experimental/base/public/tensorhandle.h
tensorflow/cc/experimental/base/tests/tensorhandle_test.cc
#ifndef TENSORFLOW_CC_EXPERIMENTAL_BASE_PUBLIC_TENSORHANDLE_H_ #define TENSORFLOW_CC_EXPERIMENTAL_BASE_PUBLIC_TENSORHANDLE_H_ #include <memory> #include <vector> #include "tensorflow/c/eager/c_api.h" #include "tensorflow/c/eager/c_api_experimental.h" #include "tensorflow/cc/experimental/base/public/runtime.h" #include ...
#include "tensorflow/cc/experimental/base/public/tensorhandle.h" #include <stddef.h> #include <stdint.h> #include <memory> #include <gtest/gtest.h> #include "absl/types/span.h" #include "tensorflow/c/tf_datatype.h" #include "tensorflow/cc/experimental/base/public/runtime.h" #include "tensorflow/cc/experimental/base/pub...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/cc/experimental/base/public/tensorhandle.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/cc/experimental/base/tests/tensorhandle_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
c98c390d-dd6d-4bfc-9171-631eabaf0891
cpp
tensorflow/tensorflow
op_converter
tensorflow/compiler/tf2tensorrt/convert/op_converter.h
tensorflow/compiler/tf2tensorrt/convert/op_converter_test.cc
#ifndef TENSORFLOW_COMPILER_TF2TENSORRT_CONVERT_OP_CONVERTER_H_ #define TENSORFLOW_COMPILER_TF2TENSORRT_CONVERT_OP_CONVERTER_H_ #if GOOGLE_CUDA && GOOGLE_TENSORRT #include <memory> #include <vector> #include "absl/strings/str_format.h" #include "tensorflow/compiler/tf2tensorrt/convert/trt_parameters.h" #include "tensor...
#if GOOGLE_CUDA && GOOGLE_TENSORRT #include "tensorflow/compiler/tf2tensorrt/convert/op_converter.h" #include <gtest/gtest.h> #include "tensorflow/compiler/tf2tensorrt/convert/convert_nodes.h" #include "tensorflow/compiler/tf2tensorrt/convert/op_converter_registry.h" #include "tensorflow/core/framework/types.pb.h" #inc...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/tf2tensorrt/convert/op_converter.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/tf2tensorrt/convert/op_converter_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
fc9125ea-a219-4e03-801b-8bfe86092d36
cpp
tensorflow/tensorflow
offset_buffer
tensorflow/compiler/mlir/lite/offset_buffer.h
tensorflow/compiler/mlir/lite/offset_buffer_test.cc
#ifndef TENSORFLOW_COMPILER_MLIR_LITE_OFFSET_BUFFER_H_ #define TENSORFLOW_COMPILER_MLIR_LITE_OFFSET_BUFFER_H_ #include <cstdint> namespace tflite { inline bool IsValidBufferOffset(const int64_t offset) { return offset > 1; } } #endif
#include "tensorflow/compiler/mlir/lite/offset_buffer.h" #include "tensorflow/core/platform/test.h" namespace tflite { namespace { TEST(OffsetBufferTest, IsValidBufferOffsetTrueGreaterThan1) { EXPECT_TRUE(IsValidBufferOffset(2)); } TEST(OffsetBufferTest, IsValidBufferOffsetFalseForLessThanOrEqualTo1) { EXPECT_FALSE...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/lite/offset_buffer.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/lite/offset_buffer_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
be58cc48-cadb-4691-a6e1-36be63a06a34
cpp
tensorflow/tensorflow
test_matchers
tensorflow/compiler/mlir/tf2xla/internal/test_matchers.h
tensorflow/compiler/mlir/tf2xla/internal/test_matchers_test.cc
#ifndef TENSORFLOW_COMPILER_MLIR_TF2XLA_INTERNAL_TEST_MATCHERS_H_ #define TENSORFLOW_COMPILER_MLIR_TF2XLA_INTERNAL_TEST_MATCHERS_H_ #include <gmock/gmock.h> #include "absl/status/statusor.h" #include "tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.h" #include "tsl/platform/statusor.h" template <typename T> bo...
#include "tensorflow/compiler/mlir/tf2xla/internal/test_matchers.h" #include <cstdint> #include <memory> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include "tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.h" #include "tensorflow/compiler/tf2xla/xla_helpers.h" #include "x...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/tf2xla/internal/test_matchers.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/tf2xla/internal/test_matchers_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
faa2d16e-aafb-4563-bd36-573f59beadb8
cpp
tensorflow/tensorflow
compilation_timer
tensorflow/compiler/mlir/tf2xla/internal/compilation_timer.h
tensorflow/compiler/mlir/tf2xla/internal/compilation_timer_test.cc
#ifndef TENSORFLOW_COMPILER_MLIR_TF2XLA_INTERNAL_COMPILATION_TIMER_H_ #define TENSORFLOW_COMPILER_MLIR_TF2XLA_INTERNAL_COMPILATION_TIMER_H_ #include <chrono> #include "tensorflow/core/platform/profile_utils/cpu_utils.h" struct CompilationTimer { uint64_t start_cycles = tensorflow::profile_utils::CpuUtils::Get...
#include "tensorflow/compiler/mlir/tf2xla/internal/compilation_timer.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/time/clock.h" #include "absl/time/time.h" namespace { TEST(CompilationTimer, MeasuresElapsedTime) { uint64_t timer_result_in_milliseconds; { CompilationTimer timer; absl::...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/tf2xla/internal/compilation_timer.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/tf2xla/internal/compilation_timer_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
732356cd-3b81-4dfa-8545-9e40ed39711b
cpp
tensorflow/tensorflow
stablehlo_type_utils
tensorflow/compiler/mlir/quantization/stablehlo/utils/stablehlo_type_utils.h
tensorflow/compiler/mlir/quantization/stablehlo/utils/stablehlo_type_utils_test.cc
#ifndef TENSORFLOW_COMPILER_MLIR_QUANTIZATION_STABLEHLO_UTILS_STABLEHLO_TYPE_UTILS_H_ #define TENSORFLOW_COMPILER_MLIR_QUANTIZATION_STABLEHLO_UTILS_STABLEHLO_TYPE_UTILS_H_ #include "llvm/ADT/StringRef.h" #include "mlir/IR/BuiltinAttributes.h" #include "mlir/Transforms/DialectConversion.h" #include "stablehlo/dialec...
#include "tensorflow/compiler/mlir/quantization/stablehlo/utils/stablehlo_type_utils.h" #include <gtest/gtest.h> #include "mlir/Dialect/Arith/IR/Arith.h" #include "mlir/Dialect/Func/IR/FuncOps.h" #include "mlir/IR/Builders.h" #include "mlir/IR/MLIRContext.h" #include "mlir/IR/OwningOpRef.h" #include "stablehl...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/quantization/stablehlo/utils/stablehlo_type_utils.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/quantization/stablehlo/utils/stablehlo_type_utils_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
2856eed2-70da-4d70-ac4a-3065123d029d
cpp
tensorflow/tensorflow
permutation
tensorflow/compiler/mlir/quantization/stablehlo/cc/permutation.h
tensorflow/compiler/mlir/quantization/stablehlo/cc/permutation_test.cc
#ifndef TENSORFLOW_COMPILER_MLIR_QUANTIZATION_STABLEHLO_CC_PERMUTATION_H_ #define TENSORFLOW_COMPILER_MLIR_QUANTIZATION_STABLEHLO_CC_PERMUTATION_H_ #include <cstdint> #include <type_traits> #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallVector.h" #include "mlir/Support/LLVM.h...
#include "tensorflow/compiler/mlir/quantization/stablehlo/cc/permutation.h" #include <cstdint> #include <string> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "mlir/Support/LLVM.h" namespace mlir::quant { namespace { using testing::ElementsAre; using testing::IsEmpty; TEST(PermutationTest, PermuteEmptyAr...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/quantization/stablehlo/cc/permutation.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/quantization/stablehlo/cc/permutation_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
22542dd5-4db0-4aa6-a96e-2d2b524faeed
cpp
tensorflow/tensorflow
graph_def
tensorflow/compiler/mlir/quantization/stablehlo/cc/graph_def.h
tensorflow/compiler/mlir/quantization/stablehlo/cc/graph_def_test.cc
#ifndef TENSORFLOW_COMPILER_MLIR_QUANTIZATION_STABLEHLO_CC_GRAPH_DEF_H_ #define TENSORFLOW_COMPILER_MLIR_QUANTIZATION_STABLEHLO_CC_GRAPH_DEF_H_ #include <type_traits> #include "tensorflow/core/framework/function.pb.h" #include "tensorflow/core/framework/graph.pb.h" #include "tensorflow/core/framework/node_def.pb.h" nam...
#include "tensorflow/compiler/mlir/quantization/stablehlo/cc/graph_def.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include "tensorflow/core/framework/graph.pb.h" #include "tensorflow/core/framework/node_def.pb.h" #include "tsl/platform/protobuf.h" namespace stablehlo::quantization { namespace { using ::tens...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/quantization/stablehlo/cc/graph_def.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/quantization/stablehlo/cc/graph_def_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
77752fe8-7d7c-4e1f-b5a5-4603ebf65abd
cpp
tensorflow/tensorflow
calibration_parameters
tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/calibration_parameters.h
tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/calibration_parameters_test.cc
#ifndef TENSORFLOW_COMPILER_MLIR_QUANTIZATION_STABLEHLO_CC_CALIBRATION_CALIBRATION_PARAMETERS_H_ #define TENSORFLOW_COMPILER_MLIR_QUANTIZATION_STABLEHLO_CC_CALIBRATION_CALIBRATION_PARAMETERS_H_ #include <algorithm> #include <cmath> #include <cstdint> #include "tensorflow/compiler/mlir/quantization/stablehlo/quantizatio...
#include "tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/calibration_parameters.h" #include <cmath> #include <cstdint> #include <gtest/gtest.h> namespace stablehlo::quantization { namespace { inline int32_t CalculateActualNumBins(const float min_value, const float m...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/calibration_parameters.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/calibration_parameters_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
b211b421-a59e-4aa5-9f5c-9e7ba5fcbefa
cpp
tensorflow/tensorflow
device_compilation_cache
tensorflow/compiler/jit/device_compilation_cache.h
tensorflow/compiler/jit/device_compilation_cache_test.cc
#ifndef TENSORFLOW_COMPILER_JIT_DEVICE_COMPILATION_CACHE_H_ #define TENSORFLOW_COMPILER_JIT_DEVICE_COMPILATION_CACHE_H_ #include <cstdint> #include <memory> #include <optional> #include <string> #include <utility> #include <variant> #include "absl/strings/str_cat.h" #include "tensorflow/compiler/jit/device_compilation_...
#include "tensorflow/compiler/jit/device_compilation_cache.h" #include <memory> #include <optional> #include <string> #include <utility> #include <vector> #include <gtest/gtest.h> #include "tensorflow/core/platform/errors.h" #include "tensorflow/core/platform/test.h" #include "tsl/protobuf/error_codes.pb.h" namespace t...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/device_compilation_cache.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/device_compilation_cache_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
7d28bedf-da1c-40ae-8533-c0db0131ec7d
cpp
tensorflow/tensorflow
device_compiler
tensorflow/compiler/jit/device_compiler.h
tensorflow/compiler/jit/device_compiler_test.cc
#ifndef TENSORFLOW_COMPILER_JIT_DEVICE_COMPILER_H_ #define TENSORFLOW_COMPILER_JIT_DEVICE_COMPILER_H_ #include <memory> #include <numeric> #include <optional> #include <string> #include <utility> #include <variant> #include <vector> #include "absl/base/call_once.h" #include "absl/container/flat_hash_map.h" #include "ab...
#include "tensorflow/compiler/jit/device_compiler.h" #include <iostream> #include <memory> #include <optional> #include <string> #include <utility> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "tensorflow/cc/framework/scope.h" #include "tensorflow/cc/ops/function_ops.h" #include "tensorf...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/device_compiler.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/device_compiler_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
86b2b763-0abd-4bf5-99c5-c1caff3cceac
cpp
google/glog
utilities
src/utilities.cc
src/utilities_unittest.cc
#define _GNU_SOURCE 1 #include "utilities.h" #include <atomic> #include <cerrno> #include <csignal> #include <cstdio> #include <cstdlib> #include "base/googleinit.h" #include "config.h" #include "glog/flags.h" #include "glog/logging.h" #include "stacktrace.h" #include "symbolize.h" #ifdef GLOG_OS_ANDROID # include <an...
#include "utilities.h" #include "glog/logging.h" #include "googletest.h" #ifdef GLOG_USE_GFLAGS # include <gflags/gflags.h> using namespace GFLAGS_NAMESPACE; #endif using namespace google; TEST(utilities, InitGoogleLoggingDeathTest) { ASSERT_DEATH(InitGoogleLogging("foobar"), ""); } int main(int argc, char** argv) {...
https://github.com/google/glog/blob/de309c08c05382fee0792380de7df1bd65332da2/src/utilities.cc
https://github.com/google/glog/blob/de309c08c05382fee0792380de7df1bd65332da2/src/utilities_unittest.cc
de309c08c05382fee0792380de7df1bd65332da2
cfee79c9-b07d-4a03-86dd-5907d4ab53fe
cpp
google/glog
symbolize
src/symbolize.cc
src/symbolize_unittest.cc
#ifdef GLOG_BUILD_CONFIG_INCLUDE # include GLOG_BUILD_CONFIG_INCLUDE #endif #include "symbolize.h" #include "utilities.h" #if defined(HAVE_SYMBOLIZE) # include <algorithm> # include <cstdlib> # include <cstring> # include <limits> # include "demangle.h" # define GLOG_SAFE_ASSERT(expr) ((expr) ? 0 : (std::abort...
#include "symbolize.h" #include <csignal> #include <iostream> #include "config.h" #include "glog/logging.h" #include "googletest.h" #include "utilities.h" #include "stacktrace.h" #ifdef GLOG_USE_GFLAGS # include <gflags/gflags.h> using namespace GFLAGS_NAMESPACE; #endif using namespace std; using namespace google; #if...
https://github.com/google/glog/blob/de309c08c05382fee0792380de7df1bd65332da2/src/symbolize.cc
https://github.com/google/glog/blob/de309c08c05382fee0792380de7df1bd65332da2/src/symbolize_unittest.cc
de309c08c05382fee0792380de7df1bd65332da2
8239efd6-6647-44aa-ab01-c4a65b5b5ec6
cpp
google/glog
signalhandler
src/signalhandler.cc
src/signalhandler_unittest.cc
#include <algorithm> #include <csignal> #include <cstring> #include <ctime> #include <mutex> #include <sstream> #include <thread> #include "config.h" #include "glog/logging.h" #include "glog/platform.h" #include "stacktrace.h" #include "symbolize.h" #include "utilities.h" #ifdef HAVE_UCONTEXT_H # include <ucontext.h> ...
#include <csignal> #include <cstdio> #include <cstdlib> #include <sstream> #include <string> #include <thread> #include "config.h" #include "glog/logging.h" #include "stacktrace.h" #include "symbolize.h" #if defined(HAVE_UNISTD_H) # include <unistd.h> #endif #ifdef GLOG_USE_GFLAGS # include <gflags/gflags.h> using na...
https://github.com/google/glog/blob/de309c08c05382fee0792380de7df1bd65332da2/src/signalhandler.cc
https://github.com/google/glog/blob/de309c08c05382fee0792380de7df1bd65332da2/src/signalhandler_unittest.cc
de309c08c05382fee0792380de7df1bd65332da2
c75468e1-4f67-47b9-82b2-6d1dc12cb6bb
cpp
google/glog
logging
src/logging.cc
src/logging_unittest.cc
#define _GNU_SOURCE 1 #include "glog/logging.h" #include <algorithm> #include <cassert> #include <chrono> #include <cstddef> #include <cstdint> #include <iomanip> #include <iterator> #include <memory> #include <mutex> #include <shared_mutex> #include <string> #include <thread> #include <tuple> #include <type_traits> ...
#include <fcntl.h> #include <chrono> #include <cstdio> #include <cstdlib> #include <fstream> #include <iomanip> #include <iostream> #include <memory> #include <mutex> #include <queue> #include <sstream> #include <stdexcept> #include <string> #include <thread> #include <vector> #include "config.h" #ifdef HAVE_GLOB_H # ...
https://github.com/google/glog/blob/de309c08c05382fee0792380de7df1bd65332da2/src/logging.cc
https://github.com/google/glog/blob/de309c08c05382fee0792380de7df1bd65332da2/src/logging_unittest.cc
de309c08c05382fee0792380de7df1bd65332da2
4319d63b-c78f-484c-8fe8-e6acfcb63ac0
cpp
google/glog
demangle
src/demangle.cc
src/demangle_unittest.cc
#include "demangle.h" #include <algorithm> #include <cstdlib> #include <limits> #include "utilities.h" #if defined(HAVE___CXA_DEMANGLE) # include <cxxabi.h> #endif #if defined(GLOG_OS_WINDOWS) # include <dbghelp.h> #endif namespace google { inline namespace glog_internal_namespace_ { #if !defined(GLOG_OS_WINDOWS) && ...
#include "demangle.h" #include <fstream> #include <iostream> #include <string> #include "config.h" #include "glog/logging.h" #include "googletest.h" #include "utilities.h" #ifdef GLOG_USE_GFLAGS # include <gflags/gflags.h> using namespace GFLAGS_NAMESPACE; #endif GLOG_DEFINE_bool(demangle_filter, false, ...
https://github.com/google/glog/blob/de309c08c05382fee0792380de7df1bd65332da2/src/demangle.cc
https://github.com/google/glog/blob/de309c08c05382fee0792380de7df1bd65332da2/src/demangle_unittest.cc
de309c08c05382fee0792380de7df1bd65332da2
6abeb031-0f9b-4d31-b673-75daf31fd982
cpp
google/glog
stacktrace
src/stacktrace.cc
src/stacktrace_unittest.cc
#include "stacktrace.h" #if defined(STACKTRACE_H) # include STACKTRACE_H #endif
#include "stacktrace.h" #include <cstdio> #include <cstdlib> #include "base/commandlineflags.h" #include "config.h" #include "glog/logging.h" #include "utilities.h" #ifdef HAVE_EXECINFO_BACKTRACE_SYMBOLS # include <execinfo.h> #endif #ifdef HAVE_STACKTRACE const int BACKTRACE_STEPS = 6; struct AddressRange { const v...
https://github.com/google/glog/blob/de309c08c05382fee0792380de7df1bd65332da2/src/stacktrace.cc
https://github.com/google/glog/blob/de309c08c05382fee0792380de7df1bd65332da2/src/stacktrace_unittest.cc
de309c08c05382fee0792380de7df1bd65332da2
511d6642-4f1a-4dc8-bc5f-e3d3f7835350
cpp
google/glog
mock-log
src/mock-log.h
src/mock-log_unittest.cc
#ifndef GLOG_SRC_MOCK_LOG_H_ #define GLOG_SRC_MOCK_LOG_H_ #include <gmock/gmock.h> #include <string> #include "glog/logging.h" #include "utilities.h" namespace google { namespace glog_testing { class ScopedMockLog : public google::LogSink { public: ScopedMockLog() { AddLogSink(this); } ~ScopedMockLog() override { ...
#include "mock-log.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include <string> namespace { using google::GLOG_ERROR; using google::GLOG_INFO; using google::GLOG_WARNING; using google::glog_testing::ScopedMockLog; using std::string; using testing::_; using testing::EndsWith; using testing::InSequence; using t...
https://github.com/google/glog/blob/de309c08c05382fee0792380de7df1bd65332da2/src/mock-log.h
https://github.com/google/glog/blob/de309c08c05382fee0792380de7df1bd65332da2/src/mock-log_unittest.cc
de309c08c05382fee0792380de7df1bd65332da2
9855c1c7-1951-4105-a993-5090a6604b71
cpp
google/glog
stl_logging
src/glog/stl_logging.h
src/stl_logging_unittest.cc
#ifndef GLOG_STL_LOGGING_H #define GLOG_STL_LOGGING_H #include <deque> #include <list> #include <map> #include <ostream> #include <set> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> template <class First, class Second> std::ostream& operator<<(std::ostream& out, const std::pair<...
#include "glog/stl_logging.h" #include <functional> #include <iostream> #include <map> #include <ostream> #include <string> #include <vector> #include "config.h" #include "glog/logging.h" #include "googletest.h" using namespace std; struct user_hash { size_t operator()(int x) const { return static_cast<size_t>(x); } ...
https://github.com/google/glog/blob/de309c08c05382fee0792380de7df1bd65332da2/src/glog/stl_logging.h
https://github.com/google/glog/blob/de309c08c05382fee0792380de7df1bd65332da2/src/stl_logging_unittest.cc
de309c08c05382fee0792380de7df1bd65332da2
f7d4da3e-9d3d-48d1-90e0-2c36aa6ca297
cpp
google/leveldb
status
util/status.cc
util/status_test.cc
#include "leveldb/status.h" #include <cstdio> #include "port/port.h" namespace leveldb { const char* Status::CopyState(const char* state) { uint32_t size; std::memcpy(&size, state, sizeof(size)); char* result = new char[size + 5]; std::memcpy(result, state, size + 5); return result; } Status::Status(Code code...
#include "leveldb/status.h" #include <utility> #include "gtest/gtest.h" #include "leveldb/slice.h" namespace leveldb { TEST(Status, MoveConstructor) { { Status ok = Status::OK(); Status ok2 = std::move(ok); ASSERT_TRUE(ok2.ok()); } { Status status = Status::NotFound("custom NotFound status message...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/status.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/status_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
70594a59-cbf4-48c5-b398-788d2ee64d20
cpp
google/leveldb
arena
util/arena.cc
util/arena_test.cc
#include "util/arena.h" namespace leveldb { static const int kBlockSize = 4096; Arena::Arena() : alloc_ptr_(nullptr), alloc_bytes_remaining_(0), memory_usage_(0) {} Arena::~Arena() { for (size_t i = 0; i < blocks_.size(); i++) { delete[] blocks_[i]; } } char* Arena::AllocateFallback(size_t bytes) { if (by...
#include "util/arena.h" #include "gtest/gtest.h" #include "util/random.h" namespace leveldb { TEST(ArenaTest, Empty) { Arena arena; } TEST(ArenaTest, Simple) { std::vector<std::pair<size_t, char*>> allocated; Arena arena; const int N = 100000; size_t bytes = 0; Random rnd(301); for (int i = 0; i < N; i++) {...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/arena.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/arena_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
868102d5-3fce-4df6-ae58-7cc321b9294f
cpp
google/leveldb
bloom
util/bloom.cc
util/bloom_test.cc
#include "leveldb/filter_policy.h" #include "leveldb/slice.h" #include "util/hash.h" namespace leveldb { namespace { static uint32_t BloomHash(const Slice& key) { return Hash(key.data(), key.size(), 0xbc9f1d34); } class BloomFilterPolicy : public FilterPolicy { public: explicit BloomFilterPolicy(int bits_per_key) ...
#include "gtest/gtest.h" #include "leveldb/filter_policy.h" #include "util/coding.h" #include "util/logging.h" #include "util/testutil.h" namespace leveldb { static const int kVerbose = 1; static Slice Key(int i, char* buffer) { EncodeFixed32(buffer, i); return Slice(buffer, sizeof(uint32_t)); } class BloomTest : p...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/bloom.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/bloom_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
0851d7ea-8a5b-4636-b24c-ea8f34dd89eb
cpp
google/leveldb
hash
util/hash.cc
util/hash_test.cc
#include "util/hash.h" #include <cstring> #include "util/coding.h" #ifndef FALLTHROUGH_INTENDED #define FALLTHROUGH_INTENDED \ do { \ } while (0) #endif namespace leveldb { uint32_t Hash(const char* data, size_t n, uint32_t seed) { const uint32_t m = 0xc6a4a793; const uint32_t r = 24; co...
#include "util/hash.h" #include "gtest/gtest.h" namespace leveldb { TEST(HASH, SignedUnsignedIssue) { const uint8_t data1[1] = {0x62}; const uint8_t data2[2] = {0xc3, 0x97}; const uint8_t data3[3] = {0xe2, 0x99, 0xa5}; const uint8_t data4[4] = {0xe1, 0x80, 0xb9, 0x32}; const uint8_t data5[48] = { 0x01, ...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/hash.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/hash_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
7ebac96d-5373-4efe-9bc1-d3e56b54150e
cpp
google/leveldb
crc32c
util/crc32c.cc
util/crc32c_test.cc
#include "util/crc32c.h" #include <cstddef> #include <cstdint> #include "port/port.h" #include "util/coding.h" namespace leveldb { namespace crc32c { namespace { const uint32_t kByteExtensionTable[256] = { 0x00000000, 0xf26b8303, 0xe13b70f7, 0x1350f3f4, 0xc79a971f, 0x35f1141c, 0x26a1e7e8, 0xd4ca64eb, 0x8ad958cf...
#include "util/crc32c.h" #include "gtest/gtest.h" namespace leveldb { namespace crc32c { TEST(CRC, StandardResults) { char buf[32]; memset(buf, 0, sizeof(buf)); ASSERT_EQ(0x8a9136aa, Value(buf, sizeof(buf))); memset(buf, 0xff, sizeof(buf)); ASSERT_EQ(0x62a8ab43, Value(buf, sizeof(buf))); for (int i = 0; i <...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/crc32c.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/crc32c_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
f048a1a5-6f7c-4d47-b8b9-224c351315fd
cpp
google/leveldb
cache
util/cache.cc
util/cache_test.cc
#include "leveldb/cache.h" #include <cassert> #include <cstdio> #include <cstdlib> #include "port/port.h" #include "port/thread_annotations.h" #include "util/hash.h" #include "util/mutexlock.h" namespace leveldb { Cache::~Cache() {} namespace { struct LRUHandle { void* value; void (*deleter)(const Slice&, void* val...
#include "leveldb/cache.h" #include <vector> #include "gtest/gtest.h" #include "util/coding.h" namespace leveldb { static std::string EncodeKey(int k) { std::string result; PutFixed32(&result, k); return result; } static int DecodeKey(const Slice& k) { assert(k.size() == 4); return DecodeFixed32(k.data()); } ...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/cache.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/cache_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
90432f51-de56-4e88-bba2-65270ed31614
cpp
google/leveldb
env_windows
util/env_windows.cc
util/env_windows_test.cc
#ifndef NOMINMAX #define NOMINMAX #endif #include <windows.h> #include <algorithm> #include <atomic> #include <chrono> #include <condition_variable> #include <cstddef> #include <cstdint> #include <cstdlib> #include <cstring> #include <memory> #include <mutex> #include <queue> #include <sstream> #include <string> #inc...
#include "gtest/gtest.h" #include "leveldb/env.h" #include "port/port.h" #include "util/env_windows_test_helper.h" #include "util/testutil.h" namespace leveldb { static const int kMMapLimit = 4; class EnvWindowsTest : public testing::Test { public: static void SetFileLimits(int mmap_limit) { EnvWindowsTestHelper...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/env_windows.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/env_windows_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
f53ee2d1-19b2-4c39-b70c-c7eeea5c2694
cpp
google/leveldb
logging
util/logging.cc
util/logging_test.cc
#include "util/logging.h" #include <cstdarg> #include <cstdio> #include <cstdlib> #include <limits> #include "leveldb/env.h" #include "leveldb/slice.h" namespace leveldb { void AppendNumberTo(std::string* str, uint64_t num) { char buf[30]; std::snprintf(buf, sizeof(buf), "%llu", static_cast<unsigned long long>(num)...
#include "util/logging.h" #include <limits> #include <string> #include "gtest/gtest.h" #include "leveldb/slice.h" namespace leveldb { TEST(Logging, NumberToString) { ASSERT_EQ("0", NumberToString(0)); ASSERT_EQ("1", NumberToString(1)); ASSERT_EQ("9", NumberToString(9)); ASSERT_EQ("10", NumberToString(10)); AS...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/logging.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/logging_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
4ecfefe6-3b23-43e8-a12b-076143182fdb
cpp
google/leveldb
coding
util/coding.cc
util/coding_test.cc
#include "util/coding.h" namespace leveldb { void PutFixed32(std::string* dst, uint32_t value) { char buf[sizeof(value)]; EncodeFixed32(buf, value); dst->append(buf, sizeof(buf)); } void PutFixed64(std::string* dst, uint64_t value) { char buf[sizeof(value)]; EncodeFixed64(buf, value); dst->append(buf, sizeo...
#include "util/coding.h" #include <vector> #include "gtest/gtest.h" namespace leveldb { TEST(Coding, Fixed32) { std::string s; for (uint32_t v = 0; v < 100000; v++) { PutFixed32(&s, v); } const char* p = s.data(); for (uint32_t v = 0; v < 100000; v++) { uint32_t actual = DecodeFixed32(p); ASSERT_E...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/coding.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/coding_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
df1d4917-d2e6-47fd-912a-265947ba8239
cpp
google/leveldb
env_posix
util/env_posix.cc
util/env_posix_test.cc
#include <dirent.h> #include <fcntl.h> #include <sys/mman.h> #ifndef __Fuchsia__ #include <sys/resource.h> #endif #include <sys/stat.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h> #include <atomic> #include <cerrno> #include <cstddef> #include <cstdint> #include <cstdio> #include <cstdlib> #include...
#include <sys/resource.h> #include <sys/wait.h> #include <unistd.h> #include <cstdio> #include <cstdlib> #include <cstring> #include <string> #include <unordered_set> #include <vector> #include "gtest/gtest.h" #include "leveldb/env.h" #include "port/port.h" #include "util/env_posix_test_helper.h" #include "util/testuti...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/env_posix.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/env_posix_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
419cad26-d16a-4110-b69d-61fb3bd29932
cpp
google/leveldb
env
util/env.cc
util/env_test.cc
#include "leveldb/env.h" #include <cstdarg> #if defined(_WIN32) && defined(LEVELDB_DELETEFILE_UNDEFINED) #undef DeleteFile #endif namespace leveldb { Env::Env() = default; Env::~Env() = default; Status Env::NewAppendableFile(const std::string& fname, WritableFile** result) { return Status::NotSupported("NewAppendable...
#include "leveldb/env.h" #include <algorithm> #include "gtest/gtest.h" #include "port/port.h" #include "port/thread_annotations.h" #include "util/mutexlock.h" #include "util/testutil.h" namespace leveldb { class EnvTest : public testing::Test { public: EnvTest() : env_(Env::Default()) {} Env* env_; }; TEST_F(EnvTe...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/env.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/env_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
098ee8f8-91fa-497d-8970-0aa185f2ecb9
cpp
google/leveldb
table
table/table.cc
table/table_test.cc
#include "leveldb/table.h" #include "leveldb/cache.h" #include "leveldb/comparator.h" #include "leveldb/env.h" #include "leveldb/filter_policy.h" #include "leveldb/options.h" #include "table/block.h" #include "table/filter_block.h" #include "table/format.h" #include "table/two_level_iterator.h" #include "util/coding.h"...
#include "leveldb/table.h" #include <map> #include <string> #include "gtest/gtest.h" #include "db/dbformat.h" #include "db/memtable.h" #include "db/write_batch_internal.h" #include "leveldb/db.h" #include "leveldb/env.h" #include "leveldb/iterator.h" #include "leveldb/options.h" #include "leveldb/table_builder.h" #incl...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/table/table.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/table/table_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
beb94efe-689c-4864-a58d-c462f72b8745
cpp
google/leveldb
filter_block
table/filter_block.cc
table/filter_block_test.cc
#include "table/filter_block.h" #include "leveldb/filter_policy.h" #include "util/coding.h" namespace leveldb { static const size_t kFilterBaseLg = 11; static const size_t kFilterBase = 1 << kFilterBaseLg; FilterBlockBuilder::FilterBlockBuilder(const FilterPolicy* policy) : policy_(policy) {} void FilterBlockBuilde...
#include "table/filter_block.h" #include "gtest/gtest.h" #include "leveldb/filter_policy.h" #include "util/coding.h" #include "util/hash.h" #include "util/logging.h" #include "util/testutil.h" namespace leveldb { class TestHashFilter : public FilterPolicy { public: const char* Name() const override { return "TestHas...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/table/filter_block.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/table/filter_block_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
fa9a5052-ef10-472d-907c-c663fac19c97
cpp
google/leveldb
filename
db/filename.cc
db/filename_test.cc
#include "db/filename.h" #include <cassert> #include <cstdio> #include "db/dbformat.h" #include "leveldb/env.h" #include "util/logging.h" namespace leveldb { Status WriteStringToFileSync(Env* env, const Slice& data, const std::string& fname); static std::string MakeFileName(const std::strin...
#include "db/filename.h" #include "gtest/gtest.h" #include "db/dbformat.h" #include "port/port.h" #include "util/logging.h" namespace leveldb { TEST(FileNameTest, Parse) { Slice db; FileType type; uint64_t number; static struct { const char* fname; uint64_t number; FileType type; } cases[] = { ...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/db/filename.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/db/filename_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
2557a474-7929-4212-8a22-7076742f216a
cpp
google/leveldb
write_batch
db/write_batch.cc
db/write_batch_test.cc
#include "leveldb/write_batch.h" #include "db/dbformat.h" #include "db/memtable.h" #include "db/write_batch_internal.h" #include "leveldb/db.h" #include "util/coding.h" namespace leveldb { static const size_t kHeader = 12; WriteBatch::WriteBatch() { Clear(); } WriteBatch::~WriteBatch() = default; WriteBatch::Handler::~...
#include "gtest/gtest.h" #include "db/memtable.h" #include "db/write_batch_internal.h" #include "leveldb/db.h" #include "leveldb/env.h" #include "util/logging.h" namespace leveldb { static std::string PrintContents(WriteBatch* b) { InternalKeyComparator cmp(BytewiseComparator()); MemTable* mem = new MemTable(cmp); ...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/db/write_batch.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/db/write_batch_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
300a714d-d3fa-4ac6-a895-c2b60a84b167
cpp
google/leveldb
version_edit
db/version_edit.cc
db/version_edit_test.cc
#include "db/version_edit.h" #include "db/version_set.h" #include "util/coding.h" namespace leveldb { enum Tag { kComparator = 1, kLogNumber = 2, kNextFileNumber = 3, kLastSequence = 4, kCompactPointer = 5, kDeletedFile = 6, kNewFile = 7, kPrevLogNumber = 9 }; void VersionEdit::Clear() { comparator_.c...
#include "db/version_edit.h" #include "gtest/gtest.h" namespace leveldb { static void TestEncodeDecode(const VersionEdit& edit) { std::string encoded, encoded2; edit.EncodeTo(&encoded); VersionEdit parsed; Status s = parsed.DecodeFrom(encoded); ASSERT_TRUE(s.ok()) << s.ToString(); parsed.EncodeTo(&encoded2)...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/db/version_edit.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/db/version_edit_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
b698b8f6-d114-4655-8a28-439344c2c25d
cpp
google/leveldb
dbformat
db/dbformat.cc
db/dbformat_test.cc
#include "db/dbformat.h" #include <cstdio> #include <sstream> #include "port/port.h" #include "util/coding.h" namespace leveldb { static uint64_t PackSequenceAndType(uint64_t seq, ValueType t) { assert(seq <= kMaxSequenceNumber); assert(t <= kValueTypeForSeek); return (seq << 8) | t; } void AppendInternalKey(std:...
#include "db/dbformat.h" #include "gtest/gtest.h" #include "util/logging.h" namespace leveldb { static std::string IKey(const std::string& user_key, uint64_t seq, ValueType vt) { std::string encoded; AppendInternalKey(&encoded, ParsedInternalKey(user_key, seq, vt)); return encoded; } stati...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/db/dbformat.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/db/dbformat_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
fe354f63-2eed-42f1-a42d-7aec1a0c3f03
cpp
google/leveldb
version_set
db/version_set.cc
db/version_set_test.cc
#include "db/version_set.h" #include <algorithm> #include <cstdio> #include "db/filename.h" #include "db/log_reader.h" #include "db/log_writer.h" #include "db/memtable.h" #include "db/table_cache.h" #include "leveldb/env.h" #include "leveldb/table_builder.h" #include "table/merger.h" #include "table/two_level_iterator....
#include "db/version_set.h" #include "gtest/gtest.h" #include "util/logging.h" #include "util/testutil.h" namespace leveldb { class FindFileTest : public testing::Test { public: FindFileTest() : disjoint_sorted_files_(true) {} ~FindFileTest() { for (int i = 0; i < files_.size(); i++) { delete files_[i]; ...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/db/version_set.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/db/version_set_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
d6039166-212e-4c5c-a02a-ee5b64913499
cpp
google/leveldb
memenv
helpers/memenv/memenv.cc
helpers/memenv/memenv_test.cc
#include "helpers/memenv/memenv.h" #include <cstring> #include <limits> #include <map> #include <string> #include <vector> #include "leveldb/env.h" #include "leveldb/status.h" #include "port/port.h" #include "port/thread_annotations.h" #include "util/mutexlock.h" namespace leveldb { namespace { class FileState { publi...
#include "helpers/memenv/memenv.h" #include <string> #include <vector> #include "gtest/gtest.h" #include "db/db_impl.h" #include "leveldb/db.h" #include "leveldb/env.h" #include "util/testutil.h" namespace leveldb { class MemEnvTest : public testing::Test { public: MemEnvTest() : env_(NewMemEnv(Env::Default())) {} ...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/helpers/memenv/memenv.cc
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/helpers/memenv/memenv_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
03550b38-ce64-42b1-8eb3-be6022a8b556
cpp
google/leveldb
no_destructor
util/no_destructor.h
util/no_destructor_test.cc
#ifndef STORAGE_LEVELDB_UTIL_NO_DESTRUCTOR_H_ #define STORAGE_LEVELDB_UTIL_NO_DESTRUCTOR_H_ #include <type_traits> #include <utility> namespace leveldb { template <typename InstanceType> class NoDestructor { public: template <typename... ConstructorArgTypes> explicit NoDestructor(ConstructorArgTypes&&... construct...
#include "util/no_destructor.h" #include <cstdint> #include <cstdlib> #include <utility> #include "gtest/gtest.h" namespace leveldb { namespace { struct DoNotDestruct { public: DoNotDestruct(uint32_t a, uint64_t b) : a(a), b(b) {} ~DoNotDestruct() { std::abort(); } uint32_t a; uint64_t b; }; constexpr const ui...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/no_destructor.h
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/util/no_destructor_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
e10933de-725f-4497-af94-a8296041a38b
cpp
google/leveldb
db
include/leveldb/db.h
db/db_test.cc
#ifndef STORAGE_LEVELDB_INCLUDE_DB_H_ #define STORAGE_LEVELDB_INCLUDE_DB_H_ #include <cstdint> #include <cstdio> #include "leveldb/export.h" #include "leveldb/iterator.h" #include "leveldb/options.h" namespace leveldb { static const int kMajorVersion = 1; static const int kMinorVersion = 23; struct Options; struct Read...
#include "leveldb/db.h" #include <atomic> #include <cinttypes> #include <string> #include "gtest/gtest.h" #include "db/db_impl.h" #include "db/filename.h" #include "db/version_set.h" #include "db/write_batch_internal.h" #include "leveldb/cache.h" #include "leveldb/env.h" #include "leveldb/filter_policy.h" #include "lev...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/include/leveldb/db.h
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/db/db_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
b716890b-3e9c-405c-930e-85296b06a003
cpp
google/leveldb
skiplist
db/skiplist.h
db/skiplist_test.cc
#ifndef STORAGE_LEVELDB_DB_SKIPLIST_H_ #define STORAGE_LEVELDB_DB_SKIPLIST_H_ #include <atomic> #include <cassert> #include <cstdlib> #include "util/arena.h" #include "util/random.h" namespace leveldb { template <typename Key, class Comparator> class SkipList { private: struct Node; public: explicit SkipList(Comp...
#include "db/skiplist.h" #include <atomic> #include <set> #include "gtest/gtest.h" #include "leveldb/env.h" #include "port/port.h" #include "port/thread_annotations.h" #include "util/arena.h" #include "util/hash.h" #include "util/random.h" #include "util/testutil.h" namespace leveldb { typedef uint64_t Key; struct Comp...
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/db/skiplist.h
https://github.com/google/leveldb/blob/23e35d792b9154f922b8b575b12596a4d8664c65/db/skiplist_test.cc
23e35d792b9154f922b8b575b12596a4d8664c65
8e55df92-c213-4cd5-876f-69f4af4f9644
cpp
google/tsl
str_util
tsl/platform/str_util.cc
tsl/platform/str_util_test.cc
#include "tsl/platform/str_util.h" #include <cctype> #include <cstdint> #include <string> #include "absl/strings/ascii.h" #include "tsl/platform/logging.h" #include "tsl/platform/stringpiece.h" namespace tsl { namespace str_util { size_t RemoveLeadingWhitespace(absl::string_view* text) { absl::string_view new_text = ...
#include "tsl/platform/str_util.h" #include <vector> #include "tsl/platform/test.h" namespace tsl { TEST(CEscape, Basic) { EXPECT_EQ(absl::CEscape("hello"), "hello"); EXPECT_EQ(absl::CEscape("hello\n"), "hello\\n"); EXPECT_EQ(absl::CEscape("hello\r"), "hello\\r"); EXPECT_EQ(absl::CEscape("\t\r\"'"), "\\t\\r\\\"...
https://github.com/google/tsl/blob/6d708fdcdd4f40537b7fa273371215a6fa3d4423/tsl/platform/str_util.cc
https://github.com/google/tsl/blob/6d708fdcdd4f40537b7fa273371215a6fa3d4423/tsl/platform/str_util_test.cc
6d708fdcdd4f40537b7fa273371215a6fa3d4423
bc18fd1c-491b-4d62-b0f4-3017a34034bf
cpp
google/tsl
errors
tsl/platform/errors.cc
tsl/platform/errors_test.cc
#include "tsl/platform/errors.h" #include <errno.h> #include <string.h> #include "tsl/platform/status.h" #include "tsl/platform/strcat.h" namespace tsl { namespace errors { namespace { absl::StatusCode ErrnoToCode(int err_number) { absl::StatusCode code; switch (err_number) { case 0: code = absl::StatusCo...
#include "tsl/platform/errors.h" #include "absl/status/status.h" #include "tsl/platform/test.h" namespace tsl { TEST(AppendToMessageTest, PayloadsAreCopied) { absl::Status status = errors::Aborted("Aborted Error Message"); status.SetPayload("payload_key", absl::Cord("payload_value")); errors::AppendToMessage(&sta...
https://github.com/google/tsl/blob/6d708fdcdd4f40537b7fa273371215a6fa3d4423/tsl/platform/errors.cc
https://github.com/google/tsl/blob/6d708fdcdd4f40537b7fa273371215a6fa3d4423/tsl/platform/errors_test.cc
6d708fdcdd4f40537b7fa273371215a6fa3d4423
871d31db-5559-4d8e-9619-1a704c808ec6
cpp
google/tsl
status
tsl/platform/status.cc
tsl/platform/status_test.cc
#include "tsl/platform/status.h" #include <stdio.h> #include <deque> #include <functional> #include <memory> #include <ostream> #include <sstream> #include <string> #include <unordered_map> #include <utility> #include <vector> #include "absl/base/call_once.h" #include "absl/functional/function_ref.h" #include "absl/sta...
#include "tsl/platform/status.h" #include <unordered_map> #include <vector> #include "absl/status/status.h" #include "absl/strings/cord.h" #include "absl/strings/str_format.h" #include "xla/tsl/protobuf/status.pb.h" #include "tsl/platform/errors.h" #include "tsl/platform/stack_frame.h" #include "tsl/platform/status_mat...
https://github.com/google/tsl/blob/6d708fdcdd4f40537b7fa273371215a6fa3d4423/tsl/platform/status.cc
https://github.com/google/tsl/blob/6d708fdcdd4f40537b7fa273371215a6fa3d4423/tsl/platform/status_test.cc
6d708fdcdd4f40537b7fa273371215a6fa3d4423
b2165cf5-6d76-4ef0-ab7b-10c49b938012
cpp
google/tsl
path
tsl/platform/path.cc
tsl/platform/path_test.cc
#include "tsl/platform/path.h" #include <errno.h> #include <fcntl.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> #if defined(PLATFORM_WINDOWS) #include <windows.h> #else #include <unistd.h> #endif #include <string> #include <vector> #include "absl/algorithm/container.h" #include "tsl/platform/loggi...
#include "tsl/platform/path.h" #include <string> #include "tsl/platform/env.h" #include "tsl/platform/stringpiece.h" #include "tsl/platform/test.h" namespace tsl { namespace io { TEST(PathTest, JoinPath) { EXPECT_EQ("/foo/bar", JoinPath("/foo", "bar")); EXPECT_EQ("foo/bar", JoinPath("foo", "bar")); EXPECT_EQ("foo...
https://github.com/google/tsl/blob/6d708fdcdd4f40537b7fa273371215a6fa3d4423/tsl/platform/path.cc
https://github.com/google/tsl/blob/6d708fdcdd4f40537b7fa273371215a6fa3d4423/tsl/platform/path_test.cc
6d708fdcdd4f40537b7fa273371215a6fa3d4423