barrier_ops.cc
imports tensorflow/core/platform/logging.himports tensorflow/core/platform/macros.h
SHA-256ddc5aa07c148b4cc6c52e80b0539e7c2e7dab9047ec876aa279c19876fd94f53
MaleculeMd(In₅)
Evidence
1/* Copyright 2016 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 …
11:42… IND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14================================================================ …
14:74… =====*/
15// See docs in ../ops/data_flow_ops.cc.
16
17#include <limits.h>
18
19#include <unordered_map>
20#include <vector>
21
22#include "tensorflow/core/framework/op_kernel.h"
23#include "tensorflow/core/framework/register_types.h"
24#include "tensorflow/core/framework/resource_mgr.h"
25#include "tensorflow/core/framework/resource_op_kernel.h"
26#include "tensorflow/core/framework/tensor.h"
27#include "tensorflow/core/framework/tensor_shape.h"
28#include "tensorflow/core/framework/types.h"
29#include "tensorflow/core/kernels/priority_queue.h"
30#include "tensorflow/core/kernels/queue_base.h"
31#include "tensorflow/core/lib/core/errors.h"
32#include "tensorflow/core/lib/core/notification.h"
33#include "tensorflow/core/lib/gtl/map_util.h"
34#include "tensorflow/core/platform/logging.h"
35#include "tensorflow/core/platform/macros.h"
36#include "tensorflow/core/platform/mutex.h"
37#include "tensorflow/core/platform/thread_annotations.h"
38#include "tensorflow/core/platform/types.h"
39
40namespace tensorflow {
⋯6 lines
153:10… allback();
154 return;
155 }
156
157 // We have something to Enqueue. Convert the Tuples into a single
158 // tuple by slicing entries into …
342:36… is the priority: the
343 // input_index_, so that tensors that entered the Barrier
344 // earlier have higher priority in the queue.
345 Tens …