kernels_experimental.cc
imports tensorflow/core/platform/abi.himports tensorflow/core/platform/errors.h
SHA-2565898ed52ceef64c4d8e3ddd9acb96c85d7b0c1aa3da6f239bfabc3496b2a3f1e
MaleculeMd(In₄)
Evidence
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 …
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/c/kernels_experimental.h"
17
18#include <algorithm>
19#include <memory>
20#include <optional>
21#include <string>
22#include <utility>
23
24#include "tensorflow/c/tf_status_helper.h"
25#include "tensorflow/c/tf_status_internal.h"
26#include "tensorflow/c/tf_tensor_internal.h"
27#include "tensorflow/core/framework/control_flow.h"
28#include "tensorflow/core/framework/ref_var.h"
29#include "tensorflow/core/framework/resource_mgr.h"
30#include "tensorflow/core/framework/resource_var.h"
31#include "tensorflow/core/framework/types.h"
32#include "tensorflow/core/framework/variant.h"
33#include "tensorflow/core/lib/gtl/cleanup.h"
34
35#ifndef IS_MOBILE_PLATFORM
36#include "tensorflow/core/kernels/data/optional_ops_util.h"
37#include "tensorflow/core/kernels/tensor_list.h"
38#include "tensorflow/core/kernels/tensor_list_util.h"
39#include "tensorflow/core/kernels/variant_ops_util.h"
40#include "tensorflow/core/platform/abi.h"
41#endif // IS_MOBILE_PLATFORM
42
43#include "tensorflow/core/platform/errors.h"
44#include "tensorflow/core/platform/mutex.h"
45#include "tensorflow/core/platform/refcount.h"
46
47using tensorflow::AllocatorAttributes;
48using tensorflow::mutex_lock;
49using tensorflow::ResourceBase;
50using tensorflow::Statu …
439:28… tion can happen between this and another thread that
440 // turns off some variable's `copy_on_read_mode` after this thread enables
441 // sparse ac …
650:40… al(
651 "BinaryOpVariants: Variants a and b have different "
652 "type ids. Type names: '",
653 a.TypeName(), "' vs. '", b.TypeName(), …