Benign repos Download

ifrt_ops_kernel_test.cc

imports tensorflow/core/platform/protobuf.himports tensorflow/core/platform/resource_loader.h
SHA-256d957066f5c48ec196051537b57bfa2806099e38543311412406092c3b2baaa78
MaleculeMd(In₉)

Evidence

apache web server name lines 1–10
1/* Copyright 2024 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is …
imports tensorflow/core/platform/protobuf.h lines 11–58
11:42… IND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15
16#include <cstdint>
17#include <functional>
18#include <memory>
19#include <string>
20#include <utility>
21#include <vector>
22
23#include <gmock/gmock.h>
24#include <gtest/gtest.h>
25#include "absl/log/check.h"
26#include "absl/status/status.h"
27#include "absl/strings/str_cat.h"
28#include "absl/strings/string_view.h"
29#include "absl/strings/substitute.h"
30#include "absl/synchronization/notification.h"
31#include "absl/types/span.h"
32#include "tensorflow/compiler/mlir/tfrt/transforms/ifrt/ifrt_types.h"
33#include "xla/python/ifrt/client.h"
34#include "xla/python/ifrt/test_util.h"
35#include "xla/tsl/concurrency/future.h"
36#include "xla/tsl/framework/test_util/mock_serving_device_selector.h"
37#include "xla/tsl/lib/core/status_test_util.h"
38#include "tensorflow/core/framework/resource_var.h"
39#include "tensorflow/core/framework/tensor.h"
40#include "tensorflow/core/framework/tensor_matcher.h"
41#include "tensorflow/core/framework/tensor_testutil.h"
42#include "tensorflow/core/platform/protobuf.h" // IWYU pragma: keep
43#include "tensorflow/core/platform/resource_loader.h"
44#include "tensorflow/core/public/session_options.h"
45#include "tensorflow/core/runtime_fallback/kernel/kernel_fallback_compat_request_state.h"
46#include "tensorflow/core/tfrt/fallback/fallback_state.h"
47#include "tensorflow/core/tfrt/fallback/op_kernel_runner.h"
48#include "tensorflow/core/tfrt/ifrt/checkpoint_loader.h"
49#include "tensorflow/core/tfrt/ifrt/ifrt_config.pb.h"
50#include "tensorflow/core/tfrt/ifrt/ifrt_model_context.h"
51#include "tensorflow/core/tfrt/ifrt/ifrt_model_restore_context.h"
52#include "tensorflow/core/tfrt/ifrt/ifrt_restore_tensor_registry.h"
53#include "tensorflow/core/tfrt/ifrt/ifrt_serving_core_selector.h"
54#include "tensorflow/core/tfrt/ifrt/sharding_utils.h"
55#include "tensorflow/core/tfrt/mlrt/bytecode/bytecode.h"
56#include "tensorflow/core/tfrt/mlrt/bytecode/executable.h"
57#include "tensorflow/core/tfrt/mlrt/interpreter/builtin_kernels.h"
58#include "tensorflow/core/tfrt/mlrt/interpreter/context.h"
English function-word token "that" lines 797–801
797:49… move(name_tensor)));
798
799 // Wrong `slice_tensor` that is missing one element.
800 tensorflow::Tensor slice_tensor = AsTensor<tsl::tstring>(
801 {tsl: …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.