Benign repos Download

transform_graph_test.cc

imports tensorflow/core/platform/test.himports tensorflow/core/platform/test_benchmark.h
SHA-2561cb6433d1e731b20a36c65583cd5cbe7835e990aee1294b1b6d58de0d9e53ceb

Evidence

apache web server name lines 1–10
1/* Copyright 2015 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/test.h lines 11–35
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 "tensorflow/tools/graph_transforms/transform_graph.h"
17#include "tensorflow/cc/ops/const_op.h"
18#include "tensorflow/cc/ops/image_ops.h"
19#include "tensorflow/cc/ops/nn_ops.h"
20#include "tensorflow/cc/ops/sendrecv_ops.h"
21#include "tensorflow/cc/ops/standard_ops.h"
22#include "tensorflow/core/framework/tensor_testutil.h"
23#include "tensorflow/core/lib/core/status_test_util.h"
24#include "tensorflow/core/lib/io/path.h"
25#include "tensorflow/core/lib/strings/str_util.h"
26#include "tensorflow/core/platform/test.h"
27#include "tensorflow/core/platform/test_benchmark.h"
28#include "tensorflow/core/public/session.h"
29#include "tensorflow/tools/graph_transforms/transform_utils.h"
30
31namespace tensorflow {
32namespace graph_transforms {
33
34// Declared here so we don't have to expose it in the public header.
35absl::Status ShouldIgnoreErrors(const TransformFuncParameter …
C/C++ unit-test EXPECT_EQ marker lines 91–97
91:34… "--transforms=fold_constants"};
92 const int argc = 6;
93 EXPECT_EQ(argc, args.size());
94 char* argv[argc];
95 std::vector<char*> char_strings;
96 for (int i = 0; i < argc; ++i) {
97 std:: …
C/C++ unit-test EXPECT_TRUE marker lines 140–145
140:19… raph({}, {}, {{"test_no_such_transform", {}}}, &graph_def);
141 EXPECT_TRUE(absl::StrContains(no_such_status.ToString(), "not recognized"));
142 }
143
144 void TestParseTransformParameters() {
145 TransformPara …

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.