Benign repos Download

remove_device_test.cc

imports tensorflow/core/platform/test.himports tensorflow/core/platform/test_benchmark.h
SHA-2569f030366abb96e0d6b7732ea96e366bbea857118d107c6b342e9b008c47da111

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–31
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_testutil.h"
22#include "tensorflow/core/lib/core/status_test_util.h"
23#include "tensorflow/core/platform/test.h"
24#include "tensorflow/core/platform/test_benchmark.h"
25#include "tensorflow/core/public/session.h"
26#include "tensorflow/tools/graph_transforms/transform_utils.h"
27
28namespace tensorflow {
29namespace graph_transforms {
30
31// Declare here, so we don't need a pub …
C/C++ unit-test EXPECT_EQ marker lines 85–95
85:39… f*> node_lookup;
86 MapNamesToNodes(result, &node_lookup);
87 EXPECT_EQ("", node_lookup.at("mul_node1")->device());
88 EXPECT_EQ("", node_lookup.at("add_node2")->device());
89 }
⋯6 lines

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.