Benign repos Download

pool_allocator.cc

imports tensorflow/core/platform/logging.himports tensorflow/core/platform/mem.h
SHA-2568e95d4a22b96e7362c479824ee8ff24ea7bc6d405315b9baf3fa448704d091c9
MaleculeMd(In₅)

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/logging.h lines 11–38
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/core/common_runtime/pool_allocator.h"
17
18#include <errno.h>
19
20#ifndef _MSC_VER
21#include <strings.h>
22#include <sys/mman.h> // for munmap
23#endif
24
25#include <map>
26#include <utility>
27
28#include "tensorflow/core/lib/strings/numbers.h"
29#include "tensorflow/core/platform/logging.h"
30#include "tensorflow/core/platform/mem.h"
31#include "tensorflow/core/platform/mutex.h"
32#include "tensorflow/core/platform/numa.h"
33#include "tensorflow/core/platform/types.h"
34#include "tsl/profiler/lib/traceme.h"
35
36namespace tensorflow {
37
38PoolAllocator::PoolAllocator(size_t pool_size_limit, bool auto_resiz …
English function-word token "that" lines 57–60
57:66… Chunk
58// begins with a descriptor (ChunkPrefix) that gives its size and a
59// pointer to itself. The pointer returned to the user is just past
60// th …

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.