Benign repos Download

strip_unused_nodes_test.cc

imports tensorflow/core/platform/test.himports tensorflow/core/platform/test_benchmark.h
SHA-25687afd6243e624ef642cb1615ecd9e2a7301f8d2998c4db133bc21a6a4f314c7d

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–32
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/cc/ops/const_op.h"
17#include "tensorflow/cc/ops/image_ops.h"
18#include "tensorflow/cc/ops/nn_ops.h"
19#include "tensorflow/cc/ops/sendrecv_ops.h"
20#include "tensorflow/cc/ops/standard_ops.h"
21#include "tensorflow/core/framework/tensor_shape.pb.h"
22#include "tensorflow/core/framework/tensor_testutil.h"
23#include "tensorflow/core/lib/core/status_test_util.h"
24#include "tensorflow/core/platform/test.h"
25#include "tensorflow/core/platform/test_benchmark.h"
26#include "tensorflow/core/public/session.h"
27#include "tensorflow/tools/graph_transforms/transform_utils.h"
28
29namespace tensorflow {
30namespace graph_transforms {
31
32// Declare here, so we don't need a pub …
C/C++ unit-test EXPECT_EQ marker lines 62–66
62:39… f*> node_lookup;
63 MapNamesToNodes(result, &node_lookup);
64 EXPECT_EQ(1, node_lookup.count("add_node"));
65 EXPECT_EQ(1, node_lookup.count("a_node"));
66 EXPECT_EQ(1, node_lookup.count("b_node")) …

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.