simple_hash_table_kernel.cc
imports tensorflow/core/platform/errors.himports tensorflow/core/platform/mutex.h
SHA-2563261626347cdf95f81be4bc310b705f18f9d2d16cef505c00eb00db34bc8d68d
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 <cstddef>
17#include <cstdint>
18#include <string>
19
20#include "absl/container/flat_hash_map.h"
21#include "absl/strings/str_cat.h"
22#include "xla/tsl/platform/errors.h"
23#include "xla/tsl/platform/statusor.h"
24#include "tensorflow/core/framework/allocator.h"
25#include "tensorflow/core/framework/op_kernel.h"
26#include "tensorflow/core/framework/op_requires.h"
27#include "tensorflow/core/framework/resource_base.h"
28#include "tensorflow/core/framework/resource_handle.h"
29#include "tensorflow/core/framework/tensor.h"
30#include "tensorflow/core/framework/tensor_shape.h"
31#include "tensorflow/core/framework/types.h"
32#include "tensorflow/core/framework/types.pb.h"
33#include "tensorflow/core/lib/gtl/map_util.h"
34#include "tensorflow/core/platform/errors.h"
35#include "tensorflow/core/platform/mutex.h"
36#include "tensorflow/core/platform/status.h"
37#include "tensorflow/core/platform/strcat.h"
38#include "tensorflow/core/platform/tstring.h"
39#include "tensorflow/core/platform/types.h"
40#include "tsl/platform/thread_annotations.h"
41
42// Please use the appropriate namespace for your project
⋯4 lines
64:44… lue, const Tensor& default_value) {
65 // Note that tf_shared_lock could be used instead of mutex_lock
66 // in ops that do not not modify data pr …