ID
stringlengths
36
36
Language
stringclasses
1 value
Repository Name
stringclasses
13 values
File Name
stringlengths
2
44
File Path in Repository
stringlengths
11
111
File Path for Unit Test
stringlengths
16
116
Code
stringlengths
0
278k
Unit Test - (Ground Truth)
stringlengths
127
663k
Code Url
stringlengths
91
198
Test Code Url
stringlengths
96
203
Commit Hash
stringclasses
13 values
683091d0-4b5c-4f95-8c5d-18017a2e0324
cpp
google/quiche
qpack_header_table
quiche/quic/core/qpack/qpack_header_table.cc
quiche/quic/core/qpack/qpack_header_table_test.cc
#include "quiche/quic/core/qpack/qpack_header_table.h" #include <utility> #include "absl/strings/string_view.h" #include "quiche/quic/core/qpack/qpack_static_table.h" #include "quiche/quic/platform/api/quic_logging.h" #include "quiche/common/platform/api/quiche_logging.h" namespace quic { QpackEncoderHeaderTable::Qpack...
#include "quiche/quic/core/qpack/qpack_header_table.h" #include <memory> #include <tuple> #include <utility> #include "absl/base/macros.h" #include "absl/strings/string_view.h" #include "quiche/http2/hpack/hpack_entry.h" #include "quiche/quic/core/qpack/qpack_static_table.h" #include "quiche/quic/platform/api/quic_test...
https://github.com/google/quiche/blob/6fe69b2cf77d5fc175a729bc7a6c322a6388b8b6/quiche/quic/core/qpack/qpack_header_table.cc
https://github.com/google/quiche/blob/6fe69b2cf77d5fc175a729bc7a6c322a6388b8b6/quiche/quic/core/qpack/qpack_header_table_test.cc
6fe69b2cf77d5fc175a729bc7a6c322a6388b8b6
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
b177da21-0cd6-4142-be0f-c1ea4d838d88
cpp
google/quiche
oblivious_http_gateway
quiche/oblivious_http/oblivious_http_gateway.cc
quiche/oblivious_http/oblivious_http_gateway_test.cc
#include "quiche/oblivious_http/oblivious_http_gateway.h" #include <stdint.h> #include <memory> #include <string> #include <utility> #include "absl/memory/memory.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" #include "quiche/common/quiche_crypto_logging.h" #i...
#include "quiche/oblivious_http/oblivious_http_gateway.h" #include <stdint.h> #include <string> #include <utility> #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/escaping.h" #include "absl/strings/string_view.h" #include "quiche/common/platform/api/quiche_test.h" #include "quic...
https://github.com/google/quiche/blob/6fe69b2cf77d5fc175a729bc7a6c322a6388b8b6/quiche/oblivious_http/oblivious_http_gateway.cc
https://github.com/google/quiche/blob/6fe69b2cf77d5fc175a729bc7a6c322a6388b8b6/quiche/oblivious_http/oblivious_http_gateway_test.cc
6fe69b2cf77d5fc175a729bc7a6c322a6388b8b6
05ba9773-8dd8-4974-a475-170f6c840a77
cpp
tensorflow/tensorflow
random_op
tensorflow/core/kernels/random_op.cc
tensorflow/core/kernels/random_op_test.cc
#define EIGEN_USE_THREADS #include <algorithm> #include <cmath> #include <memory> #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/register_types.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/framework/tensor_shape.h" #include "tensorflow/core/framework/t...
#include <random> #include "tensorflow/core/common_runtime/kernel_benchmark_testlib.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/lib/math/math_util.h" #include "tensorflow/core/lib/random/philox_random.h" #include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/test_be...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/random_op.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/random_op_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
f92f7a68-f778-4514-9db2-42387ef2abfa
cpp
google/tensorstore
json_gtest
tensorstore/internal/json_gtest.cc
tensorstore/internal/json_gtest_test.cc
#include "tensorstore/internal/json_gtest.h" #include <ostream> #include <string> #include <utility> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include <nlohmann/json.hpp> #include "tensorstore/internal/json/same.h" #include "tensorstore/internal/json_pointer.h" #include "tensorstore/util/quot...
#include "tensorstore/internal/json_gtest.h" #include <sstream> #include <string> #include <gmock/gmock.h> #include <gtest/gtest.h> #include <nlohmann/json.hpp> namespace { using ::tensorstore::JsonSubValueMatches; using ::tensorstore::JsonSubValuesMatch; using ::tensorstore::MatchesJson; template <typename MatcherType...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/json_gtest.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/json_gtest_test.cc
4f887a6430414cd6088e1743555015b10f116d50
94696138-88ad-406c-84d3-0739ede2539f
cpp
tensorflow/tensorflow
full_type_util
tensorflow/core/framework/full_type_util.cc
tensorflow/core/framework/full_type_util_test.cc
#include "tensorflow/core/framework/full_type_util.h" #include <algorithm> #include <string> #include "absl/container/flat_hash_map.h" #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/full_type.pb.h" #include "tensorflow/core/framework/node_def.pb.h" #include "tensorflow/core/fra...
#include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/full_type.pb.h" #include "tensorflow/core/framework/node_def.pb.h" #include "tensorflow/core/framework/node_def_util.h" #include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op_def.pb.h" #include "tensorflow...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/framework/full_type_util.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/framework/full_type_util_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
896b5f77-9df8-45ee-8777-37ac3e99637f
cpp
google/libaddressinput
address_normalizer
cpp/src/address_normalizer.cc
cpp/test/address_normalizer_test.cc
#include <libaddressinput/address_normalizer.h> #include <libaddressinput/address_data.h> #include <libaddressinput/address_field.h> #include <libaddressinput/preload_supplier.h> #include <cassert> #include <cstddef> #include <string> #include <vector> #include "lookup_key.h" #include "rule.h" #include "util/size.h" #i...
#include <libaddressinput/address_normalizer.h> #include <libaddressinput/address_data.h> #include <libaddressinput/callback.h> #include <libaddressinput/null_storage.h> #include <libaddressinput/preload_supplier.h> #include <memory> #include <string> #include <gtest/gtest.h> #include "testdata_source.h" namespace { us...
https://github.com/google/libaddressinput/blob/2610f7b1043d6784ada41392fc9392d1ea09ea07/cpp/src/address_normalizer.cc
https://github.com/google/libaddressinput/blob/2610f7b1043d6784ada41392fc9392d1ea09ea07/cpp/test/address_normalizer_test.cc
2610f7b1043d6784ada41392fc9392d1ea09ea07
5e5b458c-749f-4599-ab52-44f385a4c5f4
cpp
tensorflow/tensorflow
stream_executor_util
third_party/xla/xla/service/gpu/stream_executor_util.cc
third_party/xla/xla/service/gpu/stream_executor_util_test.cc
#include "xla/service/gpu/stream_executor_util.h" #include <cstdint> #include <iterator> #include <limits> #include <map> #include <memory> #include <optional> #include <random> #include <sstream> #include <string_view> #include <tuple> #include <type_traits> #include <utility> #include <vector> #include "absl/algorith...
#include "xla/service/gpu/stream_executor_util.h" #include <cstdint> #include <vector> #include <gtest/gtest.h> #include "absl/status/statusor.h" #include "absl/time/time.h" #include "xla/autotuning.pb.h" #include "xla/service/hlo_module_config.h" #include "xla/tsl/util/proto/proto_utils.h" namespace xla::gpu { namespa...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/gpu/stream_executor_util.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/gpu/stream_executor_util_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
dde88d8c-a50e-4c90-9f5c-0a007cee16b9
cpp
tensorflow/tensorflow
colocate_predecessor_trees_pass
tensorflow/core/common_runtime/colocate_predecessor_trees_pass.cc
tensorflow/core/common_runtime/colocate_predecessor_trees_pass_test.cc
#include "tensorflow/core/common_runtime/colocate_predecessor_trees_pass.h" #include <optional> #include <queue> #include <string> #include <utility> #include "absl/container/flat_hash_map.h" #include "absl/container/flat_hash_set.h" #include "absl/status/status.h" #include "absl/strings/str_cat.h" #include "absl/strin...
#include "tensorflow/core/common_runtime/colocate_predecessor_trees_pass.h" #include <memory> #include <string> #include "tensorflow/cc/framework/scope.h" #include "xla/tsl/lib/core/status_test_util.h" #include "tensorflow/core/common_runtime/graph_def_builder_util.h" #include "tensorflow/core/common_runtime/optimizati...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/common_runtime/colocate_predecessor_trees_pass.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/common_runtime/colocate_predecessor_trees_pass_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
4f659819-6eca-4f9c-a250-a5fa655698cb
cpp
abseil/abseil-cpp
layout
absl/container/internal/layout.h
absl/container/internal/layout_test.cc
#ifndef ABSL_CONTAINER_INTERNAL_LAYOUT_H_ #define ABSL_CONTAINER_INTERNAL_LAYOUT_H_ #include <assert.h> #include <stddef.h> #include <stdint.h> #include <array> #include <string> #include <tuple> #include <type_traits> #include <typeinfo> #include <utility> #include "absl/base/attributes.h" #include "absl/base/config.h...
#include "absl/container/internal/layout.h" #include <stddef.h> #include <cstdint> #include <cstring> #include <initializer_list> #include <memory> #include <ostream> #include <string> #include <tuple> #include <type_traits> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/base/config.h" #include "absl/...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/container/internal/layout.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/container/internal/layout_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
555aed98-8f55-421e-badb-302e32069668
cpp
tensorflow/tensorflow
reduce_scatter_decomposer
third_party/xla/xla/service/reduce_scatter_decomposer.cc
third_party/xla/xla/service/reduce_scatter_decomposer_test.cc
#include "xla/service/reduce_scatter_decomposer.h" #include <sys/types.h> #include <limits> #include "xla/hlo/ir/hlo_casting_utils.h" #include "xla/hlo/ir/hlo_computation.h" #include "xla/hlo/ir/hlo_instruction.h" #include "xla/hlo/ir/hlo_instructions.h" #include "xla/hlo/ir/hlo_module.h" #include "xla/hlo/ir/hlo_opcod...
#include "xla/service/reduce_scatter_decomposer.h" #include <utility> #include "xla/hlo/ir/hlo_module.h" #include "xla/hlo/ir/hlo_opcode.h" #include "xla/hlo/utils/hlo_matchers.h" #include "xla/literal_util.h" #include "xla/service/collective_ops_utils.h" #include "xla/tests/hlo_test_base.h" #include "tsl/platform/stat...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/reduce_scatter_decomposer.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/reduce_scatter_decomposer_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
c035c168-6335-49bb-a102-f0b941fe3711
cpp
tensorflow/tensorflow
hash_utils
tensorflow/core/data/hash_utils.cc
tensorflow/core/data/hash_utils_test.cc
#include "tensorflow/core/data/hash_utils.h" #include <array> #include <memory> #include <queue> #include <string> #include <utility> #include <vector> #include "absl/container/flat_hash_map.h" #include "absl/container/flat_hash_set.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_join.h" #include "tenso...
#include "tensorflow/core/data/hash_utils.h" #include <utility> #include <vector> #include "tensorflow/core/framework/function.h" #include "tensorflow/core/framework/function.pb.h" #include "tensorflow/core/framework/node_def_builder.h" #include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/types...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/data/hash_utils.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/data/hash_utils_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
aa9eb069-6e9e-4c5a-9df4-5d8c7ab16540
cpp
tensorflow/tensorflow
xplane_to_profile_instructions
third_party/xla/xla/python/xplane_to_profile_instructions.cc
third_party/xla/xla/python/xplane_to_profile_instructions_test.cc
#include "xla/python/xplane_to_profile_instructions.h" #include <cstdint> #include <memory> #include <numeric> #include <optional> #include <string> #include <utility> #include <vector> #include "absl/container/flat_hash_map.h" #include "absl/status/status.h" #include "absl/strings/match.h" #include "absl/strings/str_c...
#include "xla/python/xplane_to_profile_instructions.h" #include <cstdint> #include <memory> #include <string> #include "xla/service/hlo.pb.h" #include "xla/tests/verified_hlo_module.h" #include "xla/tsl/profiler/convert/xla_op_utils.h" #include "xla/tsl/profiler/rpc/client/save_profile.h" #include "xla/tsl/profiler/uti...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/python/xplane_to_profile_instructions.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/python/xplane_to_profile_instructions_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
2a27a67d-619c-4efb-a55a-b7f6ba66a70d
cpp
google/quiche
ping_payload_decoder
quiche/http2/decoder/payload_decoders/ping_payload_decoder.cc
quiche/http2/decoder/payload_decoders/ping_payload_decoder_test.cc
#include "quiche/http2/decoder/payload_decoders/ping_payload_decoder.h" #include "quiche/http2/decoder/http2_frame_decoder_listener.h" #include "quiche/http2/http2_constants.h" #include "quiche/common/platform/api/quiche_logging.h" namespace http2 { namespace { constexpr auto kOpaqueSize = Http2PingFields::EncodedSize(...
#include "quiche/http2/decoder/payload_decoders/ping_payload_decoder.h" #include <stddef.h> #include "quiche/http2/decoder/http2_frame_decoder_listener.h" #include "quiche/http2/http2_constants.h" #include "quiche/http2/test_tools/frame_parts.h" #include "quiche/http2/test_tools/frame_parts_collector.h" #include "quich...
https://github.com/google/quiche/blob/6fe69b2cf77d5fc175a729bc7a6c322a6388b8b6/quiche/http2/decoder/payload_decoders/ping_payload_decoder.cc
https://github.com/google/quiche/blob/6fe69b2cf77d5fc175a729bc7a6c322a6388b8b6/quiche/http2/decoder/payload_decoders/ping_payload_decoder_test.cc
6fe69b2cf77d5fc175a729bc7a6c322a6388b8b6
7706d990-1619-4cbd-8817-82820269533e
cpp
tensorflow/tensorflow
reporter
third_party/xla/xla/tsl/util/reporter.cc
tensorflow/core/util/reporter_test.cc
#include "xla/tsl/util/reporter.h" #include "tsl/platform/errors.h" #include "tsl/platform/mutex.h" #include "tsl/platform/str_util.h" namespace tsl { TestReportFile::TestReportFile(const string& fname, const string& test_name) : closed_(true), fname_(fname), test_name_(test_name) {} absl::Status TestReportFile::Ap...
#define _XOPEN_SOURCE #include <cstdlib> #include "tensorflow/core/util/reporter.h" #include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/lib/strings/str_util.h" #include "tensorflow/core/lib/strings/strcat.h" #include "tensorflow/core/platform/protobuf.h" #include "tensorflow/core/platform...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/util/reporter.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/util/reporter_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
3fc1de5f-22d4-46d6-9a7d-6cf17b61d645
cpp
tensorflow/tensorflow
attribute_map_internal
tensorflow/lite/core/async/interop/attribute_map_internal.cc
tensorflow/lite/core/async/interop/attribute_map_internal_test.cc
#include "tensorflow/lite/core/async/interop/attribute_map_internal.h" #include "tensorflow/lite/core/async/interop/reconcile_fns.h" namespace tflite { namespace interop { bool AttributeMap::ReconcileAttributes(const AttributeMap* other, AttributeMap* merged, ...
#include "tensorflow/lite/core/async/interop/attribute_map_internal.h" #include <cstdint> #include <gtest/gtest.h> #include "tensorflow/lite/core/async/interop/c/types.h" namespace tflite { namespace interop { namespace { TEST(AttributeMapTest, TypeTest) { { auto attrs = AttributeMap(kTfLiteAttrMapTypeBuffer); ...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/core/async/interop/attribute_map_internal.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/core/async/interop/attribute_map_internal_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
4e72922f-72c7-4080-9b76-440f602382cd
cpp
tensorflow/tensorflow
grpc_tensor_coding
tensorflow/core/distributed_runtime/rpc/grpc_tensor_coding.cc
tensorflow/core/distributed_runtime/rpc/grpc_tensor_coding_test.cc
#include "tensorflow/core/distributed_runtime/rpc/grpc_tensor_coding.h" #include "grpcpp/support/byte_buffer.h" #include "grpcpp/support/slice.h" #include "tensorflow/core/common_runtime/dma_helper.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/framework/tensor.pb.h" #include "tensorflow/cor...
#include "tensorflow/core/distributed_runtime/rpc/grpc_tensor_coding.h" #include "grpcpp/support/byte_buffer.h" #include "grpcpp/support/slice.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/framework/tensor_testutil.h" #include "tensorflow/core/lib/gtl/inlined_vector.h" #include "tensorflow/...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/distributed_runtime/rpc/grpc_tensor_coding.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/distributed_runtime/rpc/grpc_tensor_coding_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
e623aace-d631-4870-923c-4ed013853e68
cpp
tensorflow/tensorflow
all_reduce_promotion
third_party/xla/xla/service/all_reduce_promotion.cc
third_party/xla/xla/service/all_reduce_promotion_test.cc
#include "xla/service/all_reduce_promotion.h" #include <memory> #include <string> #include <utility> #include "absl/container/flat_hash_set.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" #include "absl/types/span.h" #include "xla/hlo/ir/hlo_computation.h" #i...
#include "xla/service/all_reduce_promotion.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/strings/string_view.h" #include "xla/hlo/ir/hlo_module.h" #include "xla/service/pattern_matcher.h" #include "xla/service/pattern_matcher_gmock.h" #include "xla/tests/hlo_test_base.h" #include "xla/xla_data.pb....
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/all_reduce_promotion.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/all_reduce_promotion_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
fd40ac30-586f-4884-9c6e-7edd9bbe0bf6
cpp
google/arolla
memory
arolla/util/memory.h
arolla/util/memory_test.cc
#ifndef AROLLA_UTIL_MEMORY_H_ #define AROLLA_UTIL_MEMORY_H_ #include <cstddef> #include <cstdint> #include <cstdlib> #include <memory> #include "absl/log/check.h" namespace arolla { struct FreeDeleter { void operator()(const void* ptr) const { std::free(const_cast<void*>(ptr)); } }; using MallocPtr = std::unique_ptr<...
#include "arolla/util/memory.h" #include <cstdint> #include <vector> #include "gtest/gtest.h" namespace arolla { namespace { TEST(Memory, IsAlignedPtr) { std::vector<char> range(128, 0); for (auto& ref : range) { EXPECT_EQ(IsAlignedPtr(32, &ref), reinterpret_cast<uintptr_t>(&ref) % 32 == 0); } }...
https://github.com/google/arolla/blob/1ca990dbeca224035efdabffecc7f3738df6b52c/arolla/util/memory.h
https://github.com/google/arolla/blob/1ca990dbeca224035efdabffecc7f3738df6b52c/arolla/util/memory_test.cc
1ca990dbeca224035efdabffecc7f3738df6b52c
c092720c-f1ac-4480-8438-947c924d26ed
cpp
google/tsl
mutex
tsl/platform/default/mutex.cc
tsl/platform/mutex_test.cc
#include "tsl/platform/mutex.h" #include <time.h> #include <cstdint> #include "nsync_cv.h" #include "nsync_mu.h" #include "nsync_mu_wait.h" #include "nsync_time.h" namespace tsl { static_assert(sizeof(nsync::nsync_mu) <= sizeof(internal::MuData), "tsl::internal::MuData needs to be big...
#include "tsl/platform/mutex.h" #include "tsl/platform/test.h" #include "tsl/platform/threadpool.h" namespace tsl { namespace { class MutexTest : public ::testing::Test { protected: mutex_lock GetLock() TF_NO_THREAD_SAFETY_ANALYSIS { return mutex_lock{mu_}; } tf_shared_lock GetSharedLock() TF_NO_THREAD_SAFET...
https://github.com/google/tsl/blob/6d708fdcdd4f40537b7fa273371215a6fa3d4423/tsl/platform/default/mutex.cc
https://github.com/google/tsl/blob/6d708fdcdd4f40537b7fa273371215a6fa3d4423/tsl/platform/mutex_test.cc
6d708fdcdd4f40537b7fa273371215a6fa3d4423
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
0dc90f43-3fd2-43ff-b407-9a4a3aaa2aa1
cpp
tensorflow/tensorflow
shape_tree
third_party/xla/xla/shape_tree.cc
third_party/xla/xla/shape_tree_test.cc
#include "xla/shape_tree.h" #include <cstddef> #include <cstdint> #include "xla/shape.h" #include "xla/shape_util.h" #include "tsl/platform/logging.h" namespace xla { namespace internal { IndexTable::IndexTable(const Shape& shape) : entries_(1) { size_t next_node_id = 0; CreateEntry(entries_[0], shape, next_node_...
#include "xla/shape_tree.h" #include <iterator> #include <memory> #include <utility> #include <vector> #include "xla/shape.h" #include "xla/shape_util.h" #include "xla/test.h" #include "xla/xla_data.pb.h" #include "tsl/platform/test_benchmark.h" namespace xla { namespace { class ShapeTreeTest : public ::testing::Test {...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/shape_tree.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/shape_tree_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
8a6d5e13-b058-42e0-b8ea-d7b62c632acd
cpp
tensorflow/tensorflow
pjrt_c_api_helpers
third_party/xla/xla/pjrt/c/pjrt_c_api_helpers.cc
third_party/xla/xla/pjrt/c/pjrt_c_api_helpers_test.cc
#include "xla/pjrt/c/pjrt_c_api_helpers.h" #include <algorithm> #include <cstddef> #include <cstdint> #include <functional> #include <memory> #include <string> #include <string_view> #include <utility> #include <variant> #include <vector> #include "absl/container/flat_hash_map.h" #include "absl/container/inlined_vector...
#include "xla/pjrt/c/pjrt_c_api_helpers.h" #include <cstddef> #include <cstdint> #include <memory> #include <string> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/container/flat_hash_map.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/pjrt/c/pjrt_c_api_helpers.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/pjrt/c/pjrt_c_api_helpers_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
134ec802-5d04-47ce-83bd-c7083b178e4b
cpp
tensorflow/tensorflow
sharding_conversions
third_party/xla/xla/python/ifrt/support/sharding_conversions.cc
third_party/xla/xla/python/ifrt/support/sharding_conversions_test.cc
#include "xla/python/ifrt/support/sharding_conversions.h" #include <cstdint> #include <utility> #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" #include "absl/types/span.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallVe...
#include "xla/python/ifrt/support/sharding_conversions.h" #include <memory> #include <numeric> #include <utility> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/container/flat_hash_map.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/python/ifrt/support/sharding_conversions.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/python/ifrt/support/sharding_conversions_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
b6ff3b65-9b13-44b3-8470-4edfba40e5bf
cpp
tensorflow/tensorflow
conv_layout_normalization
third_party/xla/xla/service/gpu/conv_layout_normalization.cc
third_party/xla/xla/service/gpu/conv_layout_normalization_test.cc
#include "xla/service/gpu/conv_layout_normalization.h" #include <cstdint> #include <optional> #include <vector> #include "absl/status/statusor.h" #include "xla/hlo/ir/hlo_casting_utils.h" #include "xla/hlo/ir/hlo_instruction.h" #include "xla/hlo/ir/hlo_instructions.h" #include "xla/hlo/ir/hlo_module.h" #include "xla/se...
#include "xla/error_spec.h" #include "xla/hlo/ir/hlo_module.h" #include "xla/tests/hlo_test_base.h" #include "xla/tests/test_macros.h" #include "tsl/platform/test.h" namespace xla { namespace gpu { namespace { class ConvolutionLayoutNormalizationTest : public HloTestBase { public: se::CudaComputeCapability GetCudaCo...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/gpu/conv_layout_normalization.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/gpu/conv_layout_normalization_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
6deec09b-f59f-458b-9ae1-7ae910be6816
cpp
google/tensorstore
circular_queue
tensorstore/internal/container/circular_queue.h
tensorstore/internal/container/circular_queue_test.cc
#ifndef TENSORSTORE_INTERNAL_THREAD_CIRCULAR_QUEUE_H_ #define TENSORSTORE_INTERNAL_THREAD_CIRCULAR_QUEUE_H_ #include <stddef.h> #include <algorithm> #include <cassert> #include <memory> #include <type_traits> #include "absl/base/attributes.h" #include "absl/log/absl_check.h" #include "tensorstore/internal/container/ite...
#include "tensorstore/internal/container/circular_queue.h" #include <stdint.h> #include <memory> #include <gmock/gmock.h> #include <gtest/gtest.h> namespace { using ::tensorstore::internal_container::CircularQueue; TEST(CircularQueue, Basic) { CircularQueue<int64_t> q(2); EXPECT_TRUE(q.empty()); EXPECT_THAT(q.siz...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/container/circular_queue.h
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/container/circular_queue_test.cc
4f887a6430414cd6088e1743555015b10f116d50
6f7ffe16-c5ff-47d3-844e-a0bf0bc88a11
cpp
google/langsvr
encode
src/lsp/encode.cc
src/lsp/encode_test.cc
#include "langsvr/lsp/encode.h" namespace langsvr::lsp { Result<const json::Value*> Encode(Null, json::Builder& b) { return b.Null(); } Result<const json::Value*> Encode(Boolean in, json::Builder& b) { return b.Bool(in); } Result<const json::Value*> Encode(Integer in, json::Builder& b) { return b.I64(in); }...
#include "langsvr/json/builder.h" #include "langsvr/lsp/lsp.h" #include "gmock/gmock.h" namespace langsvr::lsp { namespace { TEST(EncodeTest, ShowDocumentParams) { ShowDocumentParams params; params.uri = "file.txt"; params.selection = Range{{1, 2}, {3, 4}}; auto b = json::Builder::Create(); auto res...
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/lsp/encode.cc
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/lsp/encode_test.cc
303c526231a90049a3e384549720f3fbd453cf66
92a675e2-12a2-4cc7-94b8-6b41dd74b6c4
cpp
google/cel-cpp
uint_value
common/values/uint_value.cc
common/values/uint_value_test.cc
#include <cstddef> #include <cstdint> #include <string> #include <utility> #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/cord.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" #include "common/any.h" #include "common/casting.h" #include "common/json.h"...
#include <cstdint> #include <sstream> #include "absl/hash/hash.h" #include "absl/strings/cord.h" #include "absl/types/optional.h" #include "common/any.h" #include "common/casting.h" #include "common/json.h" #include "common/native_type.h" #include "common/value.h" #include "common/value_testing.h" #include "internal/te...
https://github.com/google/cel-cpp/blob/4552db5798fb0853b131b783d8875794334fae7f/common/values/uint_value.cc
https://github.com/google/cel-cpp/blob/4552db5798fb0853b131b783d8875794334fae7f/common/values/uint_value_test.cc
4552db5798fb0853b131b783d8875794334fae7f
3c947f36-5411-42e9-ae6b-7264dbade642
cpp
tensorflow/tensorflow
ir_array
third_party/xla/xla/service/llvm_ir/ir_array.cc
third_party/xla/xla/service/llvm_ir/ir_array_test.cc
#include "xla/service/llvm_ir/ir_array.h" #include <cstdint> #include <optional> #include <tuple> #include <utility> #include <variant> #include <vector> #include "absl/strings/string_view.h" #include "absl/types/span.h" #include "llvm/IR/Constants.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/IRBuilder.h" #in...
#include "xla/service/llvm_ir/ir_array.h" #include <string> #include "llvm/ADT/ArrayRef.h" #include "llvm/IR/Argument.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/Function.h" #include "llvm/IR/IRBuilder.h" #include "llvm/IR/Type.h" #include "llvm/IR/Value.h" #include "xla/servi...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/llvm_ir/ir_array.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/llvm_ir/ir_array_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
a5f1c7f7-4c8d-4a2d-b296-8e3453f03101
cpp
tensorflow/tensorflow
tpu_metadata_utils
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils_test.cc
#include "tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.h" #include <optional> #include <string> #include <utility> #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallSet.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/FormatVariadic.h" #inc...
#include "tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.h" #include <ostream> #include <string> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_v...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
73030787-d952-461e-beaf-51cb58b76e6a
cpp
tensorflow/tensorflow
node_def_builder
tensorflow/core/framework/node_def_builder.cc
tensorflow/core/framework/node_def_builder_test.cc
#include "tensorflow/core/framework/node_def_builder.h" #include <vector> #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op_def_util.h" #include "tensorflow/core/lib/core/errors.h" #include "tensorflow/core/lib/strings/str_util.h" names...
#include "tensorflow/core/framework/node_def_builder.h" #include <memory> #include <vector> #include "tensorflow/core/framework/fake_input.h" #include "tensorflow/core/framework/node_def_util.h" #include "tensorflow/core/framework/op_def_builder.h" #include "tensorflow/core/framework/op_def_util.h" #include "tensorflow...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/framework/node_def_builder.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/framework/node_def_builder_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
4e2fd81d-47ea-45e7-a4dd-dcd3075df80d
cpp
abseil/abseil-cpp
poisson_distribution
absl/random/poisson_distribution.h
absl/random/poisson_distribution_test.cc
#ifndef ABSL_RANDOM_POISSON_DISTRIBUTION_H_ #define ABSL_RANDOM_POISSON_DISTRIBUTION_H_ #include <cassert> #include <cmath> #include <istream> #include <limits> #include <ostream> #include <type_traits> #include "absl/random/internal/fast_uniform_bits.h" #include "absl/random/internal/fastmath.h" #include "absl/random/...
#include "absl/random/poisson_distribution.h" #include <algorithm> #include <cstddef> #include <cstdint> #include <iterator> #include <random> #include <sstream> #include <string> #include <vector> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/base/macros.h" #include "absl/container/flat_hash_map.h" ...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/poisson_distribution.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/poisson_distribution_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
de5fe46c-970f-4768-becc-1f57168e0534
cpp
tensorflow/tensorflow
auto_mixed_precision
tensorflow/core/grappler/optimizers/auto_mixed_precision.cc
tensorflow/core/grappler/optimizers/auto_mixed_precision_test.cc
#include "tensorflow/core/grappler/optimizers/auto_mixed_precision.h" #include <fstream> #include <memory> #include <string> #include <unordered_map> #include "absl/container/flat_hash_map.h" #include "absl/container/flat_hash_set.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" #include "tenso...
#if GOOGLE_CUDA || TENSORFLOW_USE_ROCM || INTEL_MKL #include "tensorflow/core/grappler/optimizers/auto_mixed_precision.h" #include <utility> #include <vector> #include "tensorflow/cc/ops/control_flow_ops_internal.h" #include "tensorflow/cc/ops/list_ops.h" #include "tensorflow/cc/ops/math_ops.h" #include "tensorflow/cc/...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/grappler/optimizers/auto_mixed_precision.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/grappler/optimizers/auto_mixed_precision_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
93afc18b-9012-463a-bf70-e385a2f499ec
cpp
tensorflow/tensorflow
triton_support
third_party/xla/xla/service/gpu/fusions/triton/triton_support.cc
third_party/xla/xla/service/gpu/fusions/triton/triton_support_test.cc
#include "xla/service/gpu/fusions/triton/triton_support.h" #include <variant> #include "absl/algorithm/container.h" #include "absl/container/flat_hash_set.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/strings/str_cat.h" #include "xla/hlo/ir/hlo_casting_utils.h" ...
#include "xla/service/gpu/fusions/triton/triton_support.h" #include <array> #include <cstdint> #include <string> #include <tuple> #include <utility> #include <variant> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/algorithm/container.h" #include "absl/container/flat_hash_set.h" #inc...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/gpu/fusions/triton/triton_support.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/gpu/fusions/triton/triton_support_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
241482d4-5593-45b6-9f17-7c5376ad9853
cpp
tensorflow/tensorflow
tensor_shape
tensorflow/core/framework/tensor_shape.cc
tensorflow/core/framework/tensor_shape_test.cc
#include "tensorflow/core/framework/tensor_shape.h" #include "tensorflow/core/framework/bounds_check.h" #include "tensorflow/core/framework/tensor_shape.pb.h" #include "tensorflow/core/lib/strings/str_util.h" #include "tensorflow/core/lib/strings/strcat.h" #include "tensorflow/core/platform/errors.h" #include "tensorfl...
#include "tensorflow/core/framework/tensor_shape.h" #include <cstdint> #include <limits> #include "xla/tsl/lib/core/status_test_util.h" #include "tensorflow/core/framework/tensor_shape.pb.h" #include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/lib/random/simple_philox.h" #include "tensorflow...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/framework/tensor_shape.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/framework/tensor_shape_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
656417ff-07ef-40b3-a25e-31c722343732
cpp
tensorflow/tensorflow
hlo_verifier
third_party/xla/xla/service/hlo_verifier.cc
third_party/xla/xla/service/hlo_verifier_test.cc
#include "xla/service/hlo_verifier.h" #include <algorithm> #include <cstddef> #include <cstdint> #include <iterator> #include <map> #include <memory> #include <numeric> #include <optional> #include <string> #include <vector> #include "absl/algorithm/container.h" #include "absl/container/flat_hash_map.h" #include "absl/...
#include "xla/service/hlo_verifier.h" #include <cstdint> #include <memory> #include <optional> #include <string> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/base/log_severity.h" #include "absl/log/scoped_mock_log.h" #include "absl/status/status.h" #include "absl/status/statusor.h"...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/hlo_verifier.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/hlo_verifier_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
1537adbd-f895-48a3-a962-980f34a94b42
cpp
tensorflow/tensorflow
cudnn_norm_rewriter
third_party/xla/xla/service/gpu/transforms/cudnn_norm_rewriter.cc
third_party/xla/xla/service/gpu/transforms/cudnn_norm_rewriter_test.cc
#include "xla/service/gpu/transforms/cudnn_norm_rewriter.h" #include <algorithm> #include <cstdint> #include <cstdlib> #include <functional> #include <iterator> #include <limits> #include <optional> #include <utility> #include <vector> #include "google/protobuf/wrappers.pb.h" #include "absl/algorithm/container.h" #incl...
#include <string> #include <gtest/gtest.h> #include "xla/error_spec.h" #include "xla/stream_executor/device_description.h" #if GOOGLE_CUDA #include "third_party/gpus/cuda/include/cuda.h" #include "third_party/gpus/cudnn/cudnn.h" #include "third_party/gpus/cudnn/cudnn_version.h" #endif #include "xla/service/gpu/tests/...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/gpu/transforms/cudnn_norm_rewriter.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/gpu/transforms/cudnn_norm_rewriter_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
0c6af5f6-a3fb-4656-a51c-7ca0c76e6dbc
cpp
google/arolla
factory_operators
arolla/expr/operators/factory_operators.cc
arolla/expr/operators/factory_operators_test.cc
#include "arolla/expr/operators/factory_operators.h" #include <cstdint> #include <memory> #include "absl/status/statusor.h" #include "absl/types/span.h" #include "arolla/expr/basic_expr_operator.h" #include "arolla/expr/expr.h" #include "arolla/expr/expr_node.h" #include "arolla/expr/expr_operator.h" #include "arolla/e...
#include <optional> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/status/status_matchers.h" #include "arolla/dense_array/qtype/types.h" #include "arolla/expr/expr.h" #include "arolla/expr/expr_node.h" #include "arolla/expr/testing/testing.h" #include "arolla/memory/optional_value.h" #include "arolla/...
https://github.com/google/arolla/blob/1ca990dbeca224035efdabffecc7f3738df6b52c/arolla/expr/operators/factory_operators.cc
https://github.com/google/arolla/blob/1ca990dbeca224035efdabffecc7f3738df6b52c/arolla/expr/operators/factory_operators_test.cc
1ca990dbeca224035efdabffecc7f3738df6b52c
fb20ada8-b714-43c8-8b83-15f3843d3fde
cpp
google/tsl
gcs_dns_cache
tsl/platform/cloud/gcs_dns_cache.cc
tsl/platform/cloud/gcs_dns_cache_test.cc
#include "tsl/platform/cloud/gcs_dns_cache.h" #include <cstring> #include "absl/status/status.h" #include "absl/strings/str_cat.h" #include "tsl/platform/errors.h" #include "tsl/platform/retrying_utils.h" #include "tsl/platform/status.h" #ifndef _WIN32 #include <arpa/inet.h> #include <netdb.h> #include <netinet/in.h> #...
#include "tsl/platform/cloud/gcs_dns_cache.h" #include "tsl/platform/str_util.h" #include "tsl/platform/test.h" namespace tsl { class TestHttpRequest : public HttpRequest { public: void SetUri(const string& uri) override {} void SetRange(uint64 start, uint64 end) override {} void AddHeader(const string& name, co...
https://github.com/google/tsl/blob/6d708fdcdd4f40537b7fa273371215a6fa3d4423/tsl/platform/cloud/gcs_dns_cache.cc
https://github.com/google/tsl/blob/6d708fdcdd4f40537b7fa273371215a6fa3d4423/tsl/platform/cloud/gcs_dns_cache_test.cc
6d708fdcdd4f40537b7fa273371215a6fa3d4423
b7d6da6e-3bdf-40bb-8cec-56ffbc861a17
cpp
tensorflow/tensorflow
partially_decluster_pass
tensorflow/compiler/jit/partially_decluster_pass.cc
tensorflow/compiler/jit/partially_decluster_pass_test.cc
#include "tensorflow/compiler/jit/partially_decluster_pass.h" #include "absl/algorithm/container.h" #include "absl/container/flat_hash_set.h" #include "absl/strings/str_cat.h" #include "tensorflow/compiler/jit/device_util.h" #include "tensorflow/compiler/jit/xla_cluster_util.h" #include "tensorflow/compiler/tf2xla/cons...
#include "tensorflow/compiler/jit/partially_decluster_pass.h" #include "absl/memory/memory.h" #include "tensorflow/cc/framework/ops.h" #include "tensorflow/cc/ops/array_ops.h" #include "tensorflow/cc/ops/const_op.h" #include "tensorflow/cc/ops/control_flow_ops_internal.h" #include "tensorflow/cc/ops/function_ops.h" #in...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/partially_decluster_pass.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/jit/partially_decluster_pass_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
2a892248-e2f2-4e15-b37d-ddc783b8833a
cpp
abseil/abseil-cpp
nullability
absl/base/nullability.h
absl/base/nullability_test.cc
#ifndef ABSL_BASE_NULLABILITY_H_ #define ABSL_BASE_NULLABILITY_H_ #include "absl/base/config.h" #include "absl/base/internal/nullability_impl.h" #define ABSL_POINTERS_DEFAULT_NONNULL namespace absl { ABSL_NAMESPACE_BEGIN template <typename T> using Nonnull = nullability_internal::NonnullImpl<T>; template <typename T> u...
#include "absl/base/nullability.h" #include <cassert> #include <memory> #include <utility> #include "gtest/gtest.h" #include "absl/base/attributes.h" namespace { using ::absl::Nonnull; using ::absl::NullabilityUnknown; using ::absl::Nullable; void funcWithNonnullArg(Nonnull<int*> ) {} template <typename T> void funcWit...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/nullability.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/nullability_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
080bb713-9ec6-4917-8c00-a8802f2a3a3c
cpp
tensorflow/tensorflow
attribute_map
tensorflow/lite/core/async/interop/c/attribute_map.cc
tensorflow/lite/core/async/interop/c/attribute_map_test.cc
#include "tensorflow/lite/core/async/interop/c/attribute_map.h" #include <cstddef> #include <cstdint> #include "tensorflow/lite/core/async/interop/attribute_map_internal.h" #include "tensorflow/lite/core/async/interop/c/types.h" extern "C" { TfLiteAttributeMap* TfLiteAttributeMapCreate(TfLiteAttrMapType type) { retur...
#include "tensorflow/lite/core/async/interop/c/attribute_map.h" #include <cstddef> #include <cstdint> #include <gtest/gtest.h> #include "tensorflow/lite/core/async/interop/c/types.h" namespace { TEST(AttributeMapTest, AttributeMapCreateTypeCheckTest) { { auto* attr = TfLiteAttributeMapCreate(kTfLiteAttrMapTypeBuf...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/core/async/interop/c/attribute_map.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/core/async/interop/c/attribute_map_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
8eece88e-b26c-48bd-9e50-14e9a4efb88c
cpp
google/tensorstore
unique_with_intrusive_allocator
tensorstore/internal/unique_with_intrusive_allocator.h
tensorstore/internal/unique_with_intrusive_allocator_test.cc
#ifndef TENSORSTORE_INTERNAL_UNIQUE_WITH_INTRUSIVE_ALLOCATOR_H_ #define TENSORSTORE_INTERNAL_UNIQUE_WITH_INTRUSIVE_ALLOCATOR_H_ #include <memory> #include <new> #include <utility> namespace tensorstore { namespace internal { template <typename T> struct IntrusiveAllocatorDeleter { void operator()(T* p) { auto all...
#include "tensorstore/internal/unique_with_intrusive_allocator.h" #include <cstddef> #include <memory> #include <vector> #include <gtest/gtest.h> #include "tensorstore/internal/arena.h" namespace { using ::tensorstore::internal::Arena; using ::tensorstore::internal::ArenaAllocator; using ::tensorstore::internal::Intrus...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/unique_with_intrusive_allocator.h
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/unique_with_intrusive_allocator_test.cc
4f887a6430414cd6088e1743555015b10f116d50
4498a8c2-e52a-4d92-ab97-db20211d4a22
cpp
tensorflow/tensorflow
custom_call_status
third_party/xla/xla/service/custom_call_status.cc
third_party/xla/xla/service/custom_call_status_test.cc
#include "xla/service/custom_call_status_internal.h" namespace xla { std::optional<absl::string_view> CustomCallStatusGetMessage( const XlaCustomCallStatus* status) { return status->message; } } void XlaCustomCallStatusSetSuccess(XlaCustomCallStatus* status) { status->message = std::nullopt; } void XlaCustomC...
#include "xla/service/custom_call_status_internal.h" #include "xla/service/custom_call_status_test_c_caller.h" #include "tsl/platform/test.h" TEST(XlaCustomCallStatusTest, DefaultIsSuccess) { XlaCustomCallStatus status; ASSERT_EQ(xla::CustomCallStatusGetMessage(&status), std::nullopt); } TEST(XlaCustomCallStatusTes...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/custom_call_status.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/custom_call_status_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
b429e49a-77aa-4098-91af-c00083cc61fb
cpp
tensorflow/tensorflow
debug_stripper
tensorflow/core/grappler/optimizers/debug_stripper.cc
tensorflow/core/grappler/optimizers/debug_stripper_test.cc
#include "tensorflow/core/grappler/optimizers/debug_stripper.h" #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/node_def.pb.h" #include "tensorflow/core/grappler/clusters/cluster.h" #include "tensorflow/core/grappler/grappler_item.h" #include "tensorflow/core/grappler/op_types.h...
#include "tensorflow/core/grappler/optimizers/debug_stripper.h" #include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/core/framework/tensor_testutil.h" #include "tensorflow/core/grappler/grappler_item.h" #include "tensorflow/core/grappler/utils/grappler_test.h" #include "tensorflow/core/lib/core/status_test_...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/grappler/optimizers/debug_stripper.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/grappler/optimizers/debug_stripper_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
d89b3608-8520-4260-8f56-7949b38f8dce
cpp
tensorflow/tensorflow
call
tensorflow/lite/experimental/acceleration/mini_benchmark/call.cc
tensorflow/lite/experimental/acceleration/mini_benchmark/call_test.cc
#include <stddef.h> #include <cstring> #include <sstream> #include <string> #include <vector> #include "flatbuffers/flexbuffers.h" #include "tensorflow/lite/context_util.h" #include "tensorflow/lite/core/c/common.h" #include "tensorflow/lite/core/subgraph.h" #include "tensorflow/lite/experimental/acceleration/mini_be...
#include <cstddef> #include <memory> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "flatbuffers/flexbuffers.h" #include "tensorflow/lite/builtin_ops.h" #include "tensorflow/lite/core/c/builtin_op_data.h" #include "tensorflow/lite/core/c/common.h" #include "tensorflow/lite/core/interpret...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/acceleration/mini_benchmark/call.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/experimental/acceleration/mini_benchmark/call_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
28040aa5-8181-4e52-8669-91ca1a3372ac
cpp
tensorflow/tensorflow
skip_gram
tensorflow/lite/kernels/skip_gram.cc
tensorflow/lite/kernels/skip_gram_test.cc
#include <ctype.h> #include <vector> #include "tensorflow/lite/core/c/builtin_op_data.h" #include "tensorflow/lite/core/c/common.h" #include "tensorflow/lite/kernels/internal/compatibility.h" #include "tensorflow/lite/kernels/kernel_util.h" #include "tensorflow/lite/string_util.h" namespace tflite { namespace ops { nam...
#include <memory> #include <string> #include <vector> #include <gtest/gtest.h> #include "flatbuffers/flatbuffers.h" #include "tensorflow/lite/core/interpreter.h" #include "tensorflow/lite/kernels/test_util.h" #include "tensorflow/lite/schema/schema_generated.h" #include "tensorflow/lite/string_type.h" #include "tenso...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/skip_gram.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/skip_gram_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
132383d5-a84f-45ff-9829-fb63d2ae5943
cpp
google/cel-cpp
utf8
internal/utf8.cc
internal/utf8_test.cc
#include "internal/utf8.h" #include <algorithm> #include <cstdint> #include <cstring> #include <string> #include <utility> #include "absl/base/attributes.h" #include "absl/base/macros.h" #include "absl/base/optimization.h" #include "absl/log/absl_check.h" #include "absl/strings/cord.h" #include "absl/strings/string_vie...
#include "internal/utf8.h" #include <string> #include <vector> #include "absl/strings/cord.h" #include "absl/strings/cord_test_helpers.h" #include "absl/strings/escaping.h" #include "absl/strings/string_view.h" #include "internal/benchmark.h" #include "internal/testing.h" namespace cel::internal { namespace { TEST(Utf8...
https://github.com/google/cel-cpp/blob/4552db5798fb0853b131b783d8875794334fae7f/internal/utf8.cc
https://github.com/google/cel-cpp/blob/4552db5798fb0853b131b783d8875794334fae7f/internal/utf8_test.cc
4552db5798fb0853b131b783d8875794334fae7f
846b0ef6-bee7-4e12-ac28-585dca10c72c
cpp
google/arolla
operators
arolla/qexpr/operators.cc
arolla/qexpr/operators_test.cc
#include "arolla/qexpr/operators.h" #include <algorithm> #include <bitset> #include <cstddef> #include <memory> #include <string> #include <utility> #include <vector> #include "absl/base/no_destructor.h" #include "absl/container/flat_hash_map.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/statu...
#include "arolla/qexpr/operators.h" #include <algorithm> #include <cstdint> #include <memory> #include <string> #include <utility> #include <vector> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/status/status.h" #include "absl/status/status_matchers.h" #include "absl/status/statusor.h" #include "absl...
https://github.com/google/arolla/blob/1ca990dbeca224035efdabffecc7f3738df6b52c/arolla/qexpr/operators.cc
https://github.com/google/arolla/blob/1ca990dbeca224035efdabffecc7f3738df6b52c/arolla/qexpr/operators_test.cc
1ca990dbeca224035efdabffecc7f3738df6b52c
b29a0a1c-13ca-4fde-bdbc-0fdc345e1ae1
cpp
tensorflow/tensorflow
tensor_utils
tensorflow/lite/core/api/tensor_utils.cc
tensorflow/lite/kernels/internal/tensor_utils_test.cc
#include "tensorflow/lite/core/api/tensor_utils.h" #include <string.h> #include "tensorflow/lite/core/c/common.h" namespace tflite { TfLiteStatus ResetVariableTensor(TfLiteTensor* tensor) { if (!tensor->is_variable) { return kTfLiteOk; } int value = 0; if (tensor->type == kTfLiteInt8) { value = tensor->...
#include "tensorflow/lite/kernels/internal/tensor_utils.h" #include <math.h> #include <algorithm> #include <gmock/gmock.h> #include "tensorflow/lite/core/c/builtin_op_data.h" #include "tensorflow/lite/kernels/cpu_backend_context.h" #include "tensorflow/lite/kernels/internal/common.h" #include "tensorflow/lite/kernels/i...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/core/api/tensor_utils.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/internal/tensor_utils_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
ca410313-e701-44a2-b7c7-7d99c9f9e40f
cpp
tensorflow/tensorflow
mkl_swish_op
tensorflow/core/kernels/mkl/mkl_swish_op.cc
tensorflow/core/kernels/mkl/mkl_swish_op_test.cc
#ifdef INTEL_MKL #include "tensorflow/core/kernels/mkl/mkl_eltwise_activation_base_op.h" namespace tensorflow { template <typename Device, typename T> class MklSwishOp : public MklEltwiseFwdActivationOpBase<Device, T, dnnl::algorithm::eltwise_swish> { public: ~MklSwishO...
#ifdef INTEL_MKL #include "absl/strings/match.h" #include "tensorflow/cc/ops/const_op.h" #include "tensorflow/cc/ops/math_ops.h" #include "tensorflow/cc/ops/nn_ops.h" #include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/core/common_runtime/kernel_benchmark_testlib.h" #include "tensorflow/core/framework/fake...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/mkl/mkl_swish_op.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/mkl/mkl_swish_op_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
ee0b0fcd-8545-49e5-8b69-2c9a4f14e780
cpp
tensorflow/tensorflow
conv_constants
tensorflow/lite/delegates/gpu/common/tasks/conv_constants.cc
tensorflow/lite/delegates/gpu/cl/kernels/conv_constants_test.cc
#include "tensorflow/lite/delegates/gpu/common/tasks/conv_constants.h" #include <algorithm> #include <memory> #include <string> #include <utility> #include "absl/strings/match.h" #include "absl/strings/str_cat.h" namespace tflite { namespace gpu { namespace { int GetAdrenoOptimalMaxConstantSize(const AdrenoInfo& adreno...
#include <gmock/gmock.h> #include <gtest/gtest.h> #include "tensorflow/lite/delegates/gpu/cl/kernels/cl_test.h" #include "tensorflow/lite/delegates/gpu/common/operations.h" #include "tensorflow/lite/delegates/gpu/common/status.h" #include "tensorflow/lite/delegates/gpu/common/tasks/conv_constants_test_util.h" namespace...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/delegates/gpu/common/tasks/conv_constants.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/delegates/gpu/cl/kernels/conv_constants_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
5b8f066c-2a97-4e81-9265-a2cf2cc649cd
cpp
tensorflow/tensorflow
sparse_core_layout
tensorflow/core/tpu/kernels/sparse_core_layout.cc
tensorflow/core/tpu/kernels/sparse_core_layout_test.cc
#include "tensorflow/core/tpu/kernels/sparse_core_layout.h" #include <cstdint> #include <string> #include <utility> #include <vector> #include "absl/base/attributes.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" #include "absl/strings/sub...
#include "tensorflow/core/tpu/kernels/sparse_core_layout.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include "tensorflow/core/tpu/kernels/sparse_core_layout.pb.h" namespace tensorflow { namespace tpu { namespace { using ::testing::EqualsProto; using ::testing::proto::Partially; using ::testing::status::IsOkAn...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/tpu/kernels/sparse_core_layout.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/tpu/kernels/sparse_core_layout_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
c5455352-1ad0-4ff2-9c83-e89ac052dc9c
cpp
google/tensorstore
value_as
tensorstore/internal/json/value_as.cc
tensorstore/internal/json/value_as_test.cc
#include "tensorstore/internal/json/value_as.h" #include <stdint.h> #include <cmath> #include <cstddef> #include <limits> #include <optional> #include <string> #include <string_view> #include <type_traits> #include "absl/status/status.h" #include "absl/strings/numbers.h" #include <nlohmann/json.hpp> #include "tensorsto...
#include "tensorstore/internal/json/value_as.h" #include <stdint.h> #include <map> #include <optional> #include <set> #include <string> #include <type_traits> #include <utility> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include <nlohmann/json.hpp> #include "tensorstore/internal/...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/json/value_as.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/json/value_as_test.cc
4f887a6430414cd6088e1743555015b10f116d50
34c8dafc-d129-4f28-a135-dae212b8739a
cpp
abseil/abseil-cpp
any
absl/types/any.h
absl/types/any_test.cc
#ifndef ABSL_TYPES_ANY_H_ #define ABSL_TYPES_ANY_H_ #include "absl/base/attributes.h" #include "absl/base/config.h" #include "absl/utility/utility.h" #ifdef ABSL_USES_STD_ANY #include <any> namespace absl { ABSL_NAMESPACE_BEGIN using std::any; using std::any_cast; using std::bad_any_cast; using std::make_any; ABSL_NA...
#include "absl/types/any.h" #if !defined(ABSL_USES_STD_ANY) #include <initializer_list> #include <type_traits> #include <utility> #include <vector> #include "gtest/gtest.h" #include "absl/base/config.h" #include "absl/base/internal/exception_testing.h" #include "absl/container/internal/test_instance_tracker.h" #include...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/types/any.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/types/any_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
6e49f4a9-c87d-4ea6-9c68-73d8c7379601
cpp
tensorflow/tensorflow
pjrt_state
tensorflow/core/tfrt/common/pjrt_state.cc
tensorflow/core/tfrt/common/pjrt_state_test.cc
#include "tensorflow/core/tfrt/common/pjrt_state.h" #include <memory> #include <utility> #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/synchronization/mutex.h" #include "xla/pjrt/pjrt_client.h" #include "xla/pjrt/tf_pjrt_client.h" #include "tensorflow/core/framework/types.h" #include ...
#include "tensorflow/core/tfrt/common/pjrt_state.h" #include <memory> #include <utility> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "xla/pjrt/cpu/cpu_client.h" #include "xla/pjrt/pjrt_client.h" #include "xla/tsl/lib/core/status_test_util.h" #include "tensorflow/core/framework/types.h" #include "tensorfl...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/tfrt/common/pjrt_state.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/tfrt/common/pjrt_state_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
170f268f-ba87-4ee9-b093-b6449fd5a01a
cpp
tensorflow/tensorflow
gpu_performance_model_base
third_party/xla/xla/service/gpu/model/gpu_performance_model_base.cc
third_party/xla/xla/service/gpu/model/gpu_performance_model_base_test.cc
#include "xla/service/gpu/model/gpu_performance_model_base.h" #include <algorithm> #include <cmath> #include <cstdint> #include <optional> #include <vector> #include "absl/container/flat_hash_set.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/synchronization/mutex.h" #include "absl/time/time.h"...
#include "xla/service/gpu/model/gpu_performance_model_base.h" #include <cstdint> #include <gtest/gtest.h> #include "absl/strings/string_view.h" #include "xla/hlo/ir/hlo_computation.h" #include "xla/hlo/ir/hlo_instruction.h" #include "xla/service/gpu/backend_configs.pb.h" #include "xla/service/gpu/gpu_device_info_for_te...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/gpu/model/gpu_performance_model_base.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/gpu/model/gpu_performance_model_base_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
79f89674-bf24-4505-9db9-114f61502a06
cpp
google/tensorstore
grid_chunk_key_ranges
tensorstore/internal/grid_chunk_key_ranges.cc
tensorstore/internal/grid_chunk_key_ranges_test.cc
#include "tensorstore/internal/grid_chunk_key_ranges.h" #include <cassert> #include <string> #include "absl/functional/function_ref.h" #include "absl/status/status.h" #include "tensorstore/box.h" #include "tensorstore/index.h" #include "tensorstore/index_interval.h" #include "tensorstore/index_space/index_transform.h" ...
#include "tensorstore/internal/grid_chunk_key_ranges.h" #include <cassert> #include <string> #include <tuple> #include <utility> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/functional/function_ref.h" #include "absl/status/status.h" #include "tensorstore/box.h" #include "tensorstor...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/grid_chunk_key_ranges.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/grid_chunk_key_ranges_test.cc
4f887a6430414cd6088e1743555015b10f116d50
84dc13a8-40c4-46d9-9c1a-bea4f801ff37
cpp
tensorflow/tensorflow
grappler_test
tensorflow/c/experimental/grappler/grappler_test.cc
tensorflow/core/grappler/utils/grappler_test_test.cc
#include "tensorflow/c/experimental/grappler/grappler.h" #include "absl/log/check.h" #include "tensorflow/c/experimental/grappler/grappler_internal.h" #include "tensorflow/c/tf_buffer.h" #include "tensorflow/c/tf_buffer_internal.h" #include "tensorflow/c/tf_status.h" #include "xla/tsl/lib/core/status_test_util.h" #incl...
#include "tensorflow/core/grappler/utils/grappler_test.h" #include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/core/grappler/utils.h" #include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/platform/test.h" namespace tensorflow { namespace grappler { namespace { class GrapplerTestTe...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/c/experimental/grappler/grappler_test.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/grappler/utils/grappler_test_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
e93d8c14-5b23-430f-b0da-3ba1cd3e21b0
cpp
abseil/abseil-cpp
city
absl/hash/internal/city.cc
absl/hash/internal/city_test.cc
#include "absl/hash/internal/city.h" #include <string.h> #include <algorithm> #include "absl/base/config.h" #include "absl/base/internal/endian.h" #include "absl/base/internal/unaligned_access.h" #include "absl/base/optimization.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace hash_internal { #ifdef ABSL_IS_BIG_END...
#include "absl/hash/internal/city.h" #include <string.h> #include <cstdio> #include <iostream> #include "gtest/gtest.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace hash_internal { namespace { static const uint64_t k0 = 0xc3a5c85c97cb3127ULL; static const uint64_t kSeed0 = 1234567; static const uint64_t kSeed1 = k0;...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/hash/internal/city.cc
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/hash/internal/city_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
e8e70257-c930-4276-aa31-a78ba89ae267
cpp
tensorflow/tensorflow
profiler_client
third_party/xla/xla/tsl/profiler/rpc/client/profiler_client.cc
third_party/xla/xla/tsl/profiler/rpc/client/profiler_client_test.cc
#include "xla/tsl/profiler/rpc/client/profiler_client.h" #include <limits> #include <memory> #include "absl/memory/memory.h" #include "absl/time/clock.h" #include "absl/time/time.h" #include "grpcpp/grpcpp.h" #include "tsl/platform/errors.h" #include "tsl/platform/logging.h" #include "tsl/platform/status.h" #include ...
#include "xla/tsl/profiler/rpc/client/profiler_client.h" #include <memory> #include <string> #include "absl/time/clock.h" #include "absl/time/time.h" #include "xla/tsl/profiler/rpc/client/profiler_client_test_util.h" #include "tsl/platform/errors.h" #include "tsl/platform/status.h" #include "tsl/platform/test.h" #inclu...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/profiler/rpc/client/profiler_client.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/profiler/rpc/client/profiler_client_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
6a135d5f-6744-4874-af6f-dff8063fac3a
cpp
google/quiche
quic_crypto_client_handshaker
quiche/quic/core/quic_crypto_client_handshaker.cc
quiche/quic/core/quic_crypto_client_handshaker_test.cc
#include "quiche/quic/core/quic_crypto_client_handshaker.h" #include <memory> #include <string> #include <utility> #include "absl/strings/str_cat.h" #include "quiche/quic/core/crypto/crypto_protocol.h" #include "quiche/quic/core/crypto/crypto_utils.h" #include "quiche/quic/core/quic_session.h" #include "quiche/quic/cor...
#include "quiche/quic/core/quic_crypto_client_handshaker.h" #include <memory> #include <string> #include <utility> #include <vector> #include "absl/strings/string_view.h" #include "quiche/quic/core/proto/crypto_server_config_proto.h" #include "quiche/quic/platform/api/quic_test.h" #include "quiche/quic/test_tools/quic_...
https://github.com/google/quiche/blob/6fe69b2cf77d5fc175a729bc7a6c322a6388b8b6/quiche/quic/core/quic_crypto_client_handshaker.cc
https://github.com/google/quiche/blob/6fe69b2cf77d5fc175a729bc7a6c322a6388b8b6/quiche/quic/core/quic_crypto_client_handshaker_test.cc
6fe69b2cf77d5fc175a729bc7a6c322a6388b8b6
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
da9cd0b1-a718-4bc5-a59f-dcc55283c76a
cpp
tensorflow/tensorflow
collective_ops_utils
third_party/xla/xla/service/collective_ops_utils.cc
third_party/xla/xla/service/collective_ops_utils_test.cc
#include "xla/service/collective_ops_utils.h" #include <cstdint> #include <optional> #include <string> #include <utility> #include <vector> #include "absl/container/flat_hash_map.h" #include "absl/status/statusor.h" #include "absl/strings/str_join.h" #include "xla/hlo/ir/hlo_casting_utils.h" #include "xla/hlo/ir/hlo_in...
#include "xla/service/collective_ops_utils.h" #include <cstdint> #include <iterator> #include <optional> #include <sstream> #include <string> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/algorithm/container.h" #include "absl/strings/string_view.h" #include "xla/hlo/ir/hlo_computati...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/collective_ops_utils.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/collective_ops_utils_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
cd4d6a35-82ce-47f3-b580-f9949f4f1774
cpp
abseil/abseil-cpp
structured
absl/log/internal/structured.h
absl/log/structured_test.cc
#ifndef ABSL_LOG_INTERNAL_STRUCTURED_H_ #define ABSL_LOG_INTERNAL_STRUCTURED_H_ #include <ostream> #include "absl/base/config.h" #include "absl/log/internal/log_message.h" #include "absl/strings/string_view.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace log_internal { class ABSL_MUST_USE_RESULT AsLiteralImpl final ...
#include "absl/log/structured.h" #include <ios> #include <sstream> #include <string> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/base/attributes.h" #include "absl/log/internal/test_helpers.h" #include "absl/log/internal/test_matchers.h" #include "absl/log/log.h" #include "absl/log/scoped_mock_log.h...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/log/internal/structured.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/log/structured_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
ca34a38a-e8e5-4fb3-b1d4-e583a80562a1
cpp
tensorflow/tensorflow
ifrt_executable_registry
tensorflow/core/tfrt/ifrt/ifrt_executable_registry.cc
tensorflow/core/tfrt/ifrt/ifrt_executable_registry_test.cc
#include "tensorflow/core/tfrt/ifrt/ifrt_executable_registry.h" #include <cstdint> #include <memory> #include <optional> #include <utility> #include "absl/base/attributes.h" #include "absl/base/const_init.h" #include "absl/container/flat_hash_map.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/s...
#include "tensorflow/core/tfrt/ifrt/ifrt_executable_registry.h" #include <cstdint> #include <memory> #include <string> #include <utility> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_vi...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/tfrt/ifrt/ifrt_executable_registry.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/tfrt/ifrt/ifrt_executable_registry_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
9131b767-6a50-48e5-8e87-4d8d59db6611
cpp
tensorflow/tensorflow
rendezvous
tensorflow/core/framework/rendezvous.cc
tensorflow/core/framework/rendezvous_test.cc
#include "tensorflow/core/framework/rendezvous.h" #include <deque> #include <functional> #include <utility> #include <vector> #include "tensorflow/core/framework/local_rendezvous.h" #include "tensorflow/core/lib/core/errors.h" #include "tensorflow/core/lib/core/notification.h" #include "tensorflow/core/lib/gtl/flatmap....
#include "tensorflow/core/framework/rendezvous.h" #include "absl/status/status.h" #include "unsupported/Eigen/CXX11/Tensor" #include "tensorflow/core/framework/cancellation.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/framework/tensor_shape.h" #include "tensorflow/core/framework/tensor_t...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/framework/rendezvous.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/framework/rendezvous_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
10c3c9a1-2e41-4864-a9be-cd9d7a285c38
cpp
tensorflow/tensorflow
xplane_to_tool_names
tensorflow/core/profiler/convert/xplane_to_tool_names.cc
tensorflow/core/profiler/convert/xplane_to_tool_names_test.cc
#include "tensorflow/core/profiler/convert/xplane_to_tool_names.h" #include <memory> #include <string> #include <vector> #include "absl/strings/str_join.h" #include "tensorflow/core/platform/statusor.h" #include "tensorflow/core/profiler/convert/repository.h" #include "tensorflow/core/profiler/convert/xplane_to_dcn_col...
#include "tensorflow/core/profiler/convert/xplane_to_tool_names.h" #include <memory> #include <string> #include <string_view> #include <utility> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/strings/str_cat.h" #include "absl/strings/str_split.h" #include "tensorflow/core/platform/en...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/profiler/convert/xplane_to_tool_names.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/profiler/convert/xplane_to_tool_names_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
c981c3cc-c1bc-48ff-92ea-e891c374416e
cpp
tensorflow/tensorflow
indexing_map_serialization
third_party/xla/xla/service/gpu/model/indexing_map_serialization.cc
third_party/xla/xla/service/gpu/model/indexing_map_serialization_test.cc
#include "xla/service/gpu/model/indexing_map_serialization.h" #include <algorithm> #include <cctype> #include <cstdint> #include <optional> #include <ostream> #include <sstream> #include <string> #include <string_view> #include <utility> #include <vector> #include "absl/log/check.h" #include "absl/strings/str_cat.h" #i...
#include "xla/service/gpu/model/indexing_map_serialization.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/strings/string_view.h" #include "mlir/IR/AffineExpr.h" #include "mlir/IR/AffineMap.h" #include "mlir/IR/MLIRContext.h" #include "xla/service/gpu/model/indexing_test_utils.h" #include "xla/tests...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/gpu/model/indexing_map_serialization.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/gpu/model/indexing_map_serialization_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
18f9c3b8-6cfb-4ca6-8922-7f83ac1b5560
cpp
tensorflow/tensorflow
matrix_set_diag
tensorflow/lite/kernels/matrix_set_diag.cc
tensorflow/lite/kernels/matrix_set_diag_test.cc
#include <stdint.h> #include "tensorflow/lite/core/c/common.h" #include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" #include "tensorflow/lite/kernels/internal/reference/reference_ops.h" #include "tensorflow/lite/kernels/internal/tensor.h" #include "tensorflow/lite/kernels/internal/tensor_ctypes.h" #inc...
#include <stdint.h> #include <memory> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "tensorflow/lite/core/interpreter.h" #include "tensorflow/lite/kernels/test_util.h" #include "tensorflow/lite/schema/schema_generated.h" namespace tflite { namespace { using ::testing::ElementsAre; using :...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/matrix_set_diag.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/kernels/matrix_set_diag_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
ebe25b54-ad49-46c8-a552-3bfae8fe7623
cpp
tensorflow/tensorflow
device_memory_handle
third_party/xla/xla/stream_executor/device_memory_handle.cc
third_party/xla/xla/stream_executor/device_memory_handle_test.cc
#include "xla/stream_executor/device_memory_handle.h" #include <utility> #include "xla/stream_executor/device_memory.h" #include "xla/stream_executor/stream_executor.h" namespace stream_executor { DeviceMemoryHandle::DeviceMemoryHandle(StreamExecutor *executor, DeviceMemoryBase me...
#include "xla/stream_executor/device_memory_handle.h" #include <utility> #include "xla/stream_executor/device_memory.h" #include "xla/stream_executor/mock_stream_executor.h" #include "tsl/platform/test.h" namespace stream_executor { namespace { TEST(DeviceMemoryHandle, NullMemoryNoDeallocate) { DeviceMemoryBase null_...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/stream_executor/device_memory_handle.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/stream_executor/device_memory_handle_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
40d198c4-ab0f-4c3f-b86b-e60a3a7036c9
cpp
tensorflow/tensorflow
all_reduce_combiner
third_party/xla/xla/service/all_reduce_combiner.cc
third_party/xla/xla/service/all_reduce_combiner_test.cc
#include "xla/service/all_reduce_combiner.h" #include <algorithm> #include <list> #include <memory> #include <optional> #include <string> #include <utility> #include <vector> #include "absl/container/flat_hash_set.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "a...
#include "xla/service/all_reduce_combiner.h" #include <memory> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/log/check.h" #include "absl/log/log.h" #include "xla/hlo/ir/collective_device_list.h" #include "xla/hlo/ir/hlo_computation.h" #include "xla/hlo/ir/hlo_instruction.h" #include...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/all_reduce_combiner.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/all_reduce_combiner_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
e01ac670-7a1a-4d0b-8ef1-61fc5f1f5991
cpp
abseil/abseil-cpp
charconv_bigint
absl/strings/internal/charconv_bigint.cc
absl/strings/internal/charconv_bigint_test.cc
#include "absl/strings/internal/charconv_bigint.h" #include <algorithm> #include <cassert> #include <string> namespace absl { ABSL_NAMESPACE_BEGIN namespace strings_internal { namespace { constexpr int kLargePowerOfFiveStep = 27; constexpr int kLargestPowerOfFiveIndex = 20; const uint32_t kLargePowersOfFive[] = { 0xf...
#include "absl/strings/internal/charconv_bigint.h" #include <string> #include "gtest/gtest.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace strings_internal { TEST(BigUnsigned, ShiftLeft) { { BigUnsigned<4> num(3u); num.ShiftLeft(100); EXPECT_EQ(num, BigUnsigned<4>("3802951800684688204490109616128")); ...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/strings/internal/charconv_bigint.cc
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/strings/internal/charconv_bigint_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
78c82e59-e383-40f5-be5e-ae074095bd05
cpp
tensorflow/tensorflow
type_inference
tensorflow/core/common_runtime/type_inference.cc
tensorflow/core/common_runtime/type_inference_test.cc
#include "tensorflow/core/common_runtime/type_inference.h" #include <functional> #include <list> #include <queue> #include <string> #include <string_view> #include <utility> #include <vector> #include "absl/container/flat_hash_set.h" #include "tensorflow/core/framework/full_type.pb.h" #include "tensorflow/core/framewor...
#include "tensorflow/core/common_runtime/type_inference.h" #include <functional> #include <string> #include "tensorflow/cc/client/client_session.h" #include "tensorflow/cc/framework/ops.h" #include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/core/common_runtime/graph_constructor.h" #include "tensorflow/core...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/common_runtime/type_inference.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/common_runtime/type_inference_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
40fe60b6-15b3-4cfd-9724-57a62982e349
cpp
tensorflow/tensorflow
min_max_builder
tensorflow/lite/delegates/hexagon/builders/min_max_builder.cc
tensorflow/lite/delegates/hexagon/builders/tests/min_max_builder_test.cc
#include "tensorflow/lite/delegates/hexagon/builders/min_max_builder.h" #include "tensorflow/lite/core/c/common.h" namespace tflite { namespace delegates { namespace hexagon { TfLiteStatus MinMaxOpBuilder::PopulateSubGraph(const TfLiteIntArray* inputs, const TfLiteIntArray...
#include <initializer_list> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "tensorflow/lite/c/c_api_types.h" #include "tensorflow/lite/c/common.h" #include "tensorflow/lite/delegates/hexagon/builders/tests/hexagon_delegate_op_model.h" #include "tensorflow/lite/kernels/test_util.h" #include "tensorflow/lite/...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/delegates/hexagon/builders/min_max_builder.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/delegates/hexagon/builders/tests/min_max_builder_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
28137463-1133-408c-a2a4-1261817f14ef
cpp
tensorflow/tensorflow
async_value_ref
third_party/xla/xla/tsl/concurrency/async_value_ref.cc
third_party/xla/xla/tsl/concurrency/async_value_ref_test.cc
#include "xla/tsl/concurrency/async_value_ref.h" #include <string_view> #include <utility> #include "absl/status/status.h" #include "xla/tsl/concurrency/async_value.h" #include "xla/tsl/concurrency/ref_count.h" #include "tsl/platform/logging.h" namespace tsl { RCReference<IndirectAsyncValue> MakeIndirectAsyncValue() { ...
#include "xla/tsl/concurrency/async_value_ref.h" #include <any> #include <array> #include <atomic> #include <cstddef> #include <cstdint> #include <memory> #include <utility> #include <vector> #include "absl/functional/any_invocable.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/type...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/concurrency/async_value_ref.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/concurrency/async_value_ref_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
a9f555b1-f12d-4de3-a59e-cd6f28002d77
cpp
google/tensorstore
tagged_ptr
tensorstore/internal/tagged_ptr.h
tensorstore/internal/tagged_ptr_test.cc
#ifndef TENSORSTORE_INTERNAL_TAGGED_PTR_H_ #define TENSORSTORE_INTERNAL_TAGGED_PTR_H_ #include <cassert> #include <cstddef> #include <cstdint> #include <type_traits> #include <utility> namespace tensorstore { namespace internal { template <typename T, int TagBits> class TaggedPtr { constexpr static std::uintptr_t kTa...
#include "tensorstore/internal/tagged_ptr.h" #include <memory> #include <type_traits> #include <gtest/gtest.h> #include "tensorstore/internal/intrusive_ptr.h" #include "tensorstore/internal/memory.h" namespace { using ::tensorstore::internal::const_pointer_cast; using ::tensorstore::internal::dynamic_pointer_cast; usin...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/tagged_ptr.h
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/tagged_ptr_test.cc
4f887a6430414cd6088e1743555015b10f116d50
ba4bb99e-6122-4932-bfa9-b7e6c0737093
cpp
tensorflow/tensorflow
flatmap
tensorflow/core/lib/gtl/flatmap.h
third_party/xla/xla/tsl/lib/gtl/flatmap_test.cc
#ifndef TENSORFLOW_CORE_LIB_GTL_FLATMAP_H_ #define TENSORFLOW_CORE_LIB_GTL_FLATMAP_H_ #include "xla/tsl/lib/gtl/flatmap.h" #include "tensorflow/core/lib/gtl/flatrep.h" #include "tensorflow/core/lib/hash/hash.h" #include "tensorflow/core/platform/logging.h" #include "tensorflow/core/platform/types.h" namespace tensorflo...
#include "xla/tsl/lib/gtl/flatmap.h" #include <algorithm> #include <memory> #include <string> #include <unordered_map> #include <utility> #include <vector> #include "tsl/platform/hash.h" #include "tsl/platform/test.h" #include "tsl/platform/types.h" namespace tsl { namespace gtl { namespace { typedef FlatMap<int64_t, i...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/lib/gtl/flatmap.h
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/tsl/lib/gtl/flatmap_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
054d4ec8-7d02-492e-9705-84fd9efd0b3a
cpp
tensorflow/tensorflow
serialization_utils
tensorflow/core/data/serialization_utils.cc
tensorflow/core/data/serialization_utils_test.cc
#include "tensorflow/core/data/serialization_utils.h" #include <cstdint> #include <map> #include <memory> #include <string> #include <utility> #include <vector> #include "absl/container/flat_hash_set.h" #include "tensorflow/core/common_runtime/graph_constructor.h" #include "tensorflow/core/common_runtime/graph_runner.h...
#include "tensorflow/core/data/serialization_utils.h" #include <cstdint> #include <functional> #include <memory> #include <string> #include <utility> #include <vector> #include "absl/container/flat_hash_set.h" #include "tensorflow/core/common_runtime/device_factory.h" #include "tensorflow/core/data/dataset_test_base.h"...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/data/serialization_utils.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/data/serialization_utils_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
95025948-2ae7-4372-8da2-9564390b0027
cpp
tensorflow/tensorflow
save_variables
tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.cc
tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables_test.cc
#include "tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.h" #include <string> #include <utility> #include <vector> #include "absl/status/status.h" #include "absl/status/statusor.h" #include "mlir/Dialect/Func/IR/FuncOps.h" #include "mlir/IR/BuiltinOps.h" #include "tensorflow/compiler/mlir/tensor...
#include "tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.h" #include <string> #include <vector> #include "absl/cleanup/cleanup.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_format.h" #include "absl/strings/string_view.h" #include "mlir/Dialect/Func/I...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
578789e4-5367-4156-8c17-19fde5e0ba5e
cpp
google/quiche
lifetime_tracking
quiche/common/lifetime_tracking.h
quiche/common/lifetime_tracking_test.cc
#ifndef QUICHE_COMMON_LIFETIME_TRACKING_H_ #define QUICHE_COMMON_LIFETIME_TRACKING_H_ #include <memory> #include <optional> #include <utility> #include <vector> #include "absl/strings/str_format.h" #include "quiche/common/platform/api/quiche_export.h" #include "quiche/common/platform/api/quiche_logging.h" #include "qui...
#include "quiche/common/lifetime_tracking.h" #include <memory> #include <string> #include <utility> #include <vector> #include "absl/strings/str_cat.h" #include "quiche/common/platform/api/quiche_logging.h" #include "quiche/common/platform/api/quiche_test.h" namespace quiche { namespace test { struct ComposedTrackable ...
https://github.com/google/quiche/blob/6fe69b2cf77d5fc175a729bc7a6c322a6388b8b6/quiche/common/lifetime_tracking.h
https://github.com/google/quiche/blob/6fe69b2cf77d5fc175a729bc7a6c322a6388b8b6/quiche/common/lifetime_tracking_test.cc
6fe69b2cf77d5fc175a729bc7a6c322a6388b8b6
172d4993-1731-40c0-8561-33d46cf51e04
cpp
tensorflow/tensorflow
hash
third_party/xla/third_party/tsl/tsl/platform/hash.cc
third_party/xla/third_party/tsl/tsl/platform/hash_test.cc
#include "tsl/platform/hash.h" #include <string.h> #include "tsl/platform/macros.h" #include "tsl/platform/raw_coding.h" #include "tsl/platform/types.h" namespace tsl { static inline uint32 ByteAs32(char c) { return static_cast<uint32>(c) & 0xff; } static inline uint64 ByteAs64(char c) { return static_cast<uint64>(c) &...
#include <map> #include <unordered_map> #include <vector> #include "tsl/platform/hash.h" #include "tsl/platform/logging.h" #include "tsl/platform/test.h" #include "tsl/platform/test_benchmark.h" namespace tsl { TEST(Hash, SignedUnsignedIssue) { const unsigned char d1[1] = {0x62}; const unsigned char d2[2] = {0xc3, ...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/hash.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/third_party/tsl/tsl/platform/hash_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
dc692c4b-5539-4049-846b-b6721c7cd45d
cpp
tensorflow/tensorflow
batch_resource_base
tensorflow/core/kernels/batching_util/batch_resource_base.cc
tensorflow/core/kernels/batching_util/batch_resource_base_test.cc
#include "tensorflow/core/kernels/batching_util/batch_resource_base.h" #include <algorithm> #include <cstddef> #include <cstdint> #include <functional> #include <iterator> #include <memory> #include <optional> #include <sstream> #include <string> #include <utility> #include <vector> #include "absl/container/fixed_array...
#include "tensorflow/core/kernels/batching_util/batch_resource_base.h" #include <cstdint> #include <functional> #include <memory> #include <string> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include "absl/strings/string_view.h" #include "absl/time/time.h" #inclu...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/batching_util/batch_resource_base.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/kernels/batching_util/batch_resource_base_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
5f5ef3e3-bb1a-46e0-b920-a077c2c24a8f
cpp
google/arolla
weak_qtype
arolla/qtype/weak_qtype.cc
arolla/qtype/weak_qtype_test.cc
#include "arolla/qtype/weak_qtype.h" #include <utility> #include <vector> #include "absl/base/no_destructor.h" #include "absl/log/check.h" #include "absl/strings/str_cat.h" #include "arolla/memory/optional_value.h" #include "arolla/qtype/base_types.h" #include "arolla/qtype/derived_qtype.h" #include "arolla/qtype/opt...
#include "arolla/qtype/weak_qtype.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/status/status.h" #include "absl/status/status_matchers.h" #include "arolla/array/qtype/types.h" #include "arolla/memory/optional_value.h" #include "arolla/qtype/base_types.h" #include "arolla/qtype/optional_qtype.h" #i...
https://github.com/google/arolla/blob/1ca990dbeca224035efdabffecc7f3738df6b52c/arolla/qtype/weak_qtype.cc
https://github.com/google/arolla/blob/1ca990dbeca224035efdabffecc7f3738df6b52c/arolla/qtype/weak_qtype_test.cc
1ca990dbeca224035efdabffecc7f3738df6b52c
90efec1f-b7a5-4704-ad96-5a68bd299536
cpp
tensorflow/tensorflow
best_fit_repacker
third_party/xla/xla/service/memory_space_assignment/best_fit_repacker.cc
third_party/xla/xla/service/memory_space_assignment/best_fit_repacker_test.cc
#include "xla/service/memory_space_assignment/best_fit_repacker.h" #include <algorithm> #include <cstdint> #include <functional> #include <optional> #include <string> #include <tuple> #include <utility> #include <vector> #include "absl/algorithm/container.h" #include "absl/container/flat_hash_map.h" #include "absl/cont...
#include "xla/service/memory_space_assignment/best_fit_repacker.h" #include <cstdint> #include "absl/container/flat_hash_map.h" #include "absl/types/span.h" #include "xla/comparison_util.h" #include "xla/service/heap_simulator/allocation_block.h" #include "xla/service/heap_simulator/heap_simulator.h" #include "tsl/plat...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/memory_space_assignment/best_fit_repacker.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/memory_space_assignment/best_fit_repacker_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
3393ebe0-0d02-4328-8e95-0a40a35cb820
cpp
tensorflow/tensorflow
tree_reduction_rewriter
third_party/xla/xla/service/gpu/transforms/tree_reduction_rewriter.cc
third_party/xla/xla/service/cpu/tests/tree_reduction_rewriter_test.cc
#include "xla/service/gpu/transforms/tree_reduction_rewriter.h" #include <algorithm> #include <cmath> #include <cstdint> #include <iterator> #include <memory> #include <utility> #include "absl/algorithm/container.h" #include "absl/container/flat_hash_set.h" #include "absl/container/inlined_vector.h" #include "absl/log/...
#include "xla/service/cpu/tests/cpu_codegen_test.h" #include "tsl/platform/test.h" namespace xla { namespace cpu { namespace { class TreeReductionRewriterTest : public CpuCodegenTest {}; TEST_F(TreeReductionRewriterTest, SimpleRewrite) { const char* hlo_text = R"( HloModule SimpleReduction add { acc = f32[] paramet...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/gpu/transforms/tree_reduction_rewriter.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/cpu/tests/tree_reduction_rewriter_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
2e44108f-0ab0-4cba-9936-a5afa356d05c
cpp
tensorflow/tensorflow
collective_param_resolver_distributed
tensorflow/core/distributed_runtime/collective_param_resolver_distributed.cc
tensorflow/core/distributed_runtime/collective_param_resolver_distributed_test.cc
#include "tensorflow/core/distributed_runtime/collective_param_resolver_distributed.h" #include "absl/strings/escaping.h" #include "tensorflow/core/common_runtime/device.h" #include "tensorflow/core/common_runtime/device_mgr.h" #include "tensorflow/core/distributed_runtime/cancellable_call.h" #include "tensorflow/core/...
#include "tensorflow/core/distributed_runtime/collective_param_resolver_distributed.h" #include "absl/container/flat_hash_map.h" #include "tensorflow/core/common_runtime/device_mgr.h" #include "tensorflow/core/common_runtime/test_collective_executor_mgr.h" #include "tensorflow/core/distributed_runtime/device_resolver_d...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/distributed_runtime/collective_param_resolver_distributed.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/distributed_runtime/collective_param_resolver_distributed_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
e7f6450c-05e8-4958-bf2e-9669cd67d5e5
cpp
tensorflow/tensorflow
simplify_fp_conversions
third_party/xla/xla/service/simplify_fp_conversions.cc
third_party/xla/xla/service/gpu/tests/simplify_fp_conversions_test.cc
#include "xla/service/simplify_fp_conversions.h" #include <cstddef> #include "absl/container/flat_hash_set.h" #include "absl/status/statusor.h" #include "absl/strings/str_format.h" #include "absl/strings/string_view.h" #include "xla/hlo/ir/hlo_computation.h" #include "xla/hlo/ir/hlo_instruction.h" #include "xla/hlo/ir/...
#include <string_view> #include "xla/tests/hlo_test_base.h" #include "xla/xla.pb.h" namespace xla { namespace gpu { namespace { class SimplifyFPConversionsTest : public HloTestBase { public: DebugOptions GetDebugOptionsForTest() override { DebugOptions debug_options = HloTestBase::GetDebugOptionsForTest(); d...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/simplify_fp_conversions.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/gpu/tests/simplify_fp_conversions_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
f5f16c60-4ca6-4bc5-b57b-52af2ce349be
cpp
google/cel-cpp
opaque_type
common/types/opaque_type.cc
common/types/opaque_type_test.cc
#include <cstddef> #include <cstring> #include <string> #include <type_traits> #include "absl/base/nullability.h" #include "absl/log/absl_check.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_join.h" #include "absl/strings/string_view.h" #include "absl/types/optional.h" #include "absl/types/span.h" #inc...
#include <sstream> #include "absl/hash/hash.h" #include "common/type.h" #include "internal/testing.h" #include "google/protobuf/arena.h" namespace cel { namespace { TEST(OpaqueType, Kind) { google::protobuf::Arena arena; EXPECT_EQ(OpaqueType(&arena, "test.Opaque", {BytesType()}).kind(), OpaqueType::kKin...
https://github.com/google/cel-cpp/blob/4552db5798fb0853b131b783d8875794334fae7f/common/types/opaque_type.cc
https://github.com/google/cel-cpp/blob/4552db5798fb0853b131b783d8875794334fae7f/common/types/opaque_type_test.cc
4552db5798fb0853b131b783d8875794334fae7f
54892a0d-a6bd-4074-b1d2-de0af3d15773
cpp
tensorflow/tensorflow
hlo_sharding
third_party/xla/xla/hlo/ir/hlo_sharding.cc
third_party/xla/xla/service/hlo_sharding_test.cc
#include "xla/hlo/ir/hlo_sharding.h" #include <algorithm> #include <array> #include <cstdint> #include <iterator> #include <map> #include <memory> #include <optional> #include <ostream> #include <string> #include <tuple> #include <utility> #include <vector> #include "absl/algorithm/container.h" #include "absl/container...
#include <algorithm> #include <set> #include <sstream> #include <string> #include <tuple> #include <utility> #include <vector> #include "absl/hash/hash.h" #include "xla/protobuf_util.h" #include "xla/service/hlo_parser.h" #include "xla/shape_util.h" #include "xla/test.h" #include "xla/test_helpers.h" #include "xla/test...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/hlo/ir/hlo_sharding.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/hlo_sharding_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
79f4067c-cdba-4150-810e-3c3b509d548f
cpp
tensorflow/tensorflow
mlir_to_hlo
third_party/xla/xla/pjrt/mlir_to_hlo.cc
third_party/xla/xla/pjrt/mlir_to_hlo_test.cc
#include "xla/pjrt/mlir_to_hlo.h" #include <cstdint> #include <memory> #include <optional> #include <string> #include <utility> #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" #include "llvm/ADT/STLFunctionalExtras.h" #include "ll...
#include "xla/pjrt/mlir_to_hlo.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include "absl/strings/str_cat.h" #include "mlir/IR/MLIRContext.h" #include "mlir/IR/OwningOpRef.h" #include "stablehlo/api/PortableApi.h" #include "xla/test.h" #include "tsl/platform/statusor.h" namespac...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/pjrt/mlir_to_hlo.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/pjrt/mlir_to_hlo_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
66a6130e-df50-475d-9fcc-fa07e2cdd66e
cpp
tensorflow/tensorflow
robust_stats
tensorflow/core/grappler/costs/robust_stats.cc
tensorflow/core/grappler/costs/robust_stats_test.cc
#include "tensorflow/core/grappler/costs/robust_stats.h" #include <algorithm> #include <cmath> #include <utility> namespace tensorflow { namespace grappler { static double SortedMedian(const std::vector<double> &values) { const int n = values.size(); if (n == 0) return 0.0; if (n & 1) { return values[n / 2]; ...
#include "tensorflow/core/grappler/costs/robust_stats.h" #include "tensorflow/core/platform/test.h" namespace tensorflow { namespace grappler { namespace { class RobustStatsTest : public ::testing::Test { public: void SetUp() override { for (double d = 1.0; d <= 5.0; d += 1.0) { values1_.push_back(5.0 - d)...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/grappler/costs/robust_stats.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/grappler/costs/robust_stats_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
3adfd356-0a6b-4561-8157-72882331708c
cpp
tensorflow/tensorflow
index_util
third_party/xla/xla/index_util.cc
third_party/xla/xla/index_util_test.cc
#include "xla/index_util.h" #include <algorithm> #include <cstdint> #include <string> #include <vector> #include "absl/types/span.h" #include "xla/layout_util.h" #include "xla/shape.h" #include "xla/shape_util.h" #include "xla/util.h" #include "tsl/platform/logging.h" namespace xla { DimensionVector IndexUtil::LinearI...
#include "xla/index_util.h" #include <initializer_list> #include <vector> #include "absl/types/span.h" #include "xla/shape.h" #include "xla/shape_util.h" #include "xla/test.h" #include "xla/xla_data.pb.h" namespace xla { namespace { void SetMinorToMajorLayout(Shape* shape, std::vector<int64_t> dimensions) { shape->mu...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/index_util.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/index_util_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
39ece867-becf-40a5-be85-a8bfb9996b0b
cpp
tensorflow/tensorflow
all_reduce_reassociate
third_party/xla/xla/service/all_reduce_reassociate.cc
third_party/xla/xla/service/all_reduce_reassociate_test.cc
#include "xla/service/all_reduce_reassociate.h" #include <cstdint> #include <optional> #include <string> #include "absl/container/flat_hash_set.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" #include "xla...
#include "xla/service/all_reduce_reassociate.h" #include <cstddef> #include <memory> #include <utility> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/algorithm/container.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" #include "xla/hlo/ir/hlo_instruction.h" #include "xla/hl...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/all_reduce_reassociate.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/service/all_reduce_reassociate_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
32b6f306-4d70-4f3a-8887-4af878ce1da0
cpp
tensorflow/tensorflow
task_runner
tensorflow/core/data/service/task_runner.cc
tensorflow/core/data/service/task_runner_test.cc
#include "tensorflow/core/data/service/task_runner.h" #include <algorithm> #include <memory> #include <optional> #include <utility> #include <vector> #include "tensorflow/core/data/service/byte_size.h" #include "tensorflow/core/data/service/common.h" #include "tensorflow/core/data/service/cross_trainer_cache.h" #includ...
#include "tensorflow/core/data/service/task_runner.h" #include <algorithm> #include <cstdint> #include <iterator> #include <memory> #include <optional> #include <string> #include <tuple> #include <utility> #include <vector> #include "absl/memory/memory.h" #include "tensorflow/core/data/service/data_transfer.h" #include...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/data/service/task_runner.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/core/data/service/task_runner_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
5fda2d8d-3b4a-4536-afb2-12c1cb9ba632
cpp
tensorflow/tensorflow
cuda_driver
third_party/xla/xla/stream_executor/cuda/cuda_driver.cc
third_party/xla/xla/stream_executor/cuda/cuda_driver_test.cc
#include "xla/stream_executor/cuda/cuda_driver.h" #include <stdint.h> #include <stdlib.h> #include <cstdint> #include <cstdlib> #include <cstring> #include <new> #include <string> #include <utility> #include <variant> #include <vector> #include "absl/base/casts.h" #include "absl/container/inlined_vector.h" #include "ab...
#include "xla/stream_executor/cuda/cuda_driver.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/cleanup/cleanup.h" #include "absl/log/log.h" #include "third_party/gpus/cuda/include/cuda.h" #include "third_party/gpus/cuda/include/cuda_runtime_api.h" #include "third_party/gpus/cuda/include/driver_types...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/stream_executor/cuda/cuda_driver.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/third_party/xla/xla/stream_executor/cuda/cuda_driver_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea
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
5326e467-00f3-4f31-a980-31e0e3f00c84
cpp
google/arolla
optional_value
arolla/memory/optional_value.cc
arolla/memory/optional_value_test.cc
#include "arolla/memory/optional_value.h" #include <cstdint> #include "absl/strings/str_cat.h" #include "arolla/util/bytes.h" #include "arolla/util/repr.h" #include "arolla/util/text.h" namespace arolla { ReprToken ReprTraits<OptionalValue<bool>>::operator()( const OptionalValue<bool>& value) const { return ReprT...
#include "arolla/memory/optional_value.h" #include <cstdint> #include <cstring> #include <memory> #include <new> #include <optional> #include <sstream> #include <string> #include <type_traits> #include <utility> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/status/status.h" #include "absl/status/stat...
https://github.com/google/arolla/blob/1ca990dbeca224035efdabffecc7f3738df6b52c/arolla/memory/optional_value.cc
https://github.com/google/arolla/blob/1ca990dbeca224035efdabffecc7f3738df6b52c/arolla/memory/optional_value_test.cc
1ca990dbeca224035efdabffecc7f3738df6b52c
7695cc84-31be-478b-a72f-9f410a73ea54
cpp
tensorflow/tensorflow
remove_noop
tensorflow/lite/delegates/gpu/common/transformations/remove_noop.cc
tensorflow/lite/delegates/gpu/common/transformations/remove_noop_test.cc
#include "tensorflow/lite/delegates/gpu/common/transformations/remove_noop.h" #include <algorithm> #include <any> #include <functional> #include <iterator> #include <memory> #include <string> #include <utility> #include <variant> #include <vector> #include "absl/memory/memory.h" #include "absl/types/any.h" #include "ab...
#include "tensorflow/lite/delegates/gpu/common/transformations/remove_noop.h" #include <any> #include <memory> #include <string> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include "tensorflow/lite/delegates/gpu/common/data_type.h" #include "tensorflow/lite/deleg...
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/delegates/gpu/common/transformations/remove_noop.cc
https://github.com/tensorflow/tensorflow/blob/4a29233a7b7c1a3a4294e4ccdd1772f9083944ea/tensorflow/lite/delegates/gpu/common/transformations/remove_noop_test.cc
4a29233a7b7c1a3a4294e4ccdd1772f9083944ea