Benign repos Download

attr_util_test.cc

imports tensorflow/core/platform/status.himports tensorflow/core/platform/test.h
SHA-2564963d934b7cf0c649fe62adcf0e7bf46efc18b78c9004b737ca420c2bebf440e

Evidence

apache web server name lines 1–10
1/* Copyright 2021 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/status.h lines 11–32
11:42… IND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15#include "tensorflow/core/runtime_fallback/kernel/attr_util.h"
16
17#include <vector>
18
19#include "absl/status/status.h"
20#include "xla/tsl/lib/core/status_test_util.h"
21#include "tensorflow/core/platform/status.h"
22#include "tensorflow/core/platform/test.h"
23#include "tensorflow/core/platform/types.h"
24#include "tfrt/core_runtime/op_attr_type.h" // from @tf_runtime
25#include "tfrt/core_runtime/op_attrs.h" // from @tf_runtime
26#include "tfrt/support/forward_decls.h" // from @tf_runtime
27
28using llvm::ArrayRef;
⋯4 lines
C/C++ unit-test ASSERT_EQ marker lines 47–52
47:48… rs));
48 TF_ASSERT_OK(AddOpAttr("baz", "i32$123", &opattrs));
49
50 ASSERT_EQ(opattrs.GetAsserting<int32_t>("foo"), -2);
51 ASSERT_EQ(opattrs.GetAsserting<int32_t>("bar"), 0);
52 ASSERT_EQ(opattrs.GetAsserti …

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.