Home
last modified time | relevance | path

Searched refs:MemoryChecker (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/python/framework/
Dmemory_checker_test.py23 from tensorflow.python.framework.memory_checker import MemoryChecker
30 with MemoryChecker() as memory_checker:
40 with MemoryChecker() as memory_checker:
52 with MemoryChecker() as memory_checker:
63 with MemoryChecker() as memory_checker:
74 with MemoryChecker() as memory_checker:
88 with MemoryChecker() as memory_checker:
101 with MemoryChecker() as memory_checker:
114 with MemoryChecker() as memory_checker:
125 with MemoryChecker() as memory_checker:
[all …]
Dmemory_checker.py47 class MemoryChecker(object): class
/external/llvm-project/pstl/test/std/algorithms/alg.modifying.operations/
Dremove.pass.cpp152 test<MemoryChecker>(MemoryChecker{0}, MemoryChecker{1}, in main()
153 [](const MemoryChecker& val){ return val.value() == 1; }, in main()
154 [](std::size_t idx){ return MemoryChecker{std::int32_t(idx % 3 == 0)}; } in main()
156 …EXPECT_FALSE(MemoryChecker::alive_objects() < 0, "wrong effect from remove,remove_if: number of ct… in main()
157 …EXPECT_FALSE(MemoryChecker::alive_objects() > 0, "wrong effect from remove,remove_if: number of ct… in main()
Dunique.pass.cpp155 test<MemoryChecker>( in main()
156 [](std::size_t idx){ return MemoryChecker{std::int32_t(idx / 3)}; }, in main()
157 … [](const MemoryChecker& val1, const MemoryChecker& val2){ return val1.value() == val2.value(); }); in main()
158 …EXPECT_FALSE(MemoryChecker::alive_objects() < 0, "wrong effect from unique: number of ctors calls … in main()
159 …EXPECT_FALSE(MemoryChecker::alive_objects() > 0, "wrong effect from unique: number of ctors calls … in main()
Drotate.pass.cpp170 test<MemoryChecker>(); in main()
171 …EXPECT_FALSE(MemoryChecker::alive_objects() < 0, "wrong effect from rotate: number of ctors calls … in main()
172 …EXPECT_FALSE(MemoryChecker::alive_objects() > 0, "wrong effect from rotate: number of ctors calls … in main()
/external/llvm-project/pstl/test/std/algorithms/alg.merge/
Dinplace_merge.pass.cpp150 test_by_type<MemoryChecker>( in main()
151 [](std::size_t idx){ return MemoryChecker{std::int32_t(idx * 2)}; }, in main()
152 [](std::size_t idx){ return MemoryChecker{std::int32_t(idx * 2 + 1)}; }, in main()
153 … [](const MemoryChecker& val1, const MemoryChecker& val2){ return val1.value() == val2.value(); }); in main()
154 …EXPECT_FALSE(MemoryChecker::alive_objects() < 0, "wrong effect from inplace_merge: number of ctors… in main()
155 …EXPECT_FALSE(MemoryChecker::alive_objects() > 0, "wrong effect from inplace_merge: number of ctors… in main()
/external/tensorflow/tensorflow/python/keras/tests/
Dmemory_checker_test.py23 from tensorflow.python.framework.memory_checker import MemoryChecker
40 with MemoryChecker() as memory_checker:
57 with MemoryChecker() as memory_checker:
/external/llvm-project/pstl/test/std/algorithms/alg.sorting/
Dpartial_sort_copy.pass.cpp189 test_partial_sort_copy<MemoryChecker>( in main()
190 … [](const MemoryChecker& val1, const MemoryChecker& val2){ return val1.value() < val2.value(); }); in main()
191 …EXPECT_FALSE(MemoryChecker::alive_objects() < 0, "wrong effect from partial_sort_copy: number of c… in main()
192 …EXPECT_FALSE(MemoryChecker::alive_objects() > 0, "wrong effect from partial_sort_copy: number of c… in main()
/external/llvm-project/pstl/test/std/algorithms/alg.sorting/alg.set.operations/
Dset.pass.cpp263 …test_set<MemoryChecker, MemoryChecker>([](const MemoryChecker& val1, const MemoryChecker& val2) ->… in main()
266 …EXPECT_FALSE(MemoryChecker::alive_objects() < 0, "wrong effect from set algorithms: number of ctor… in main()
267 …EXPECT_FALSE(MemoryChecker::alive_objects() > 0, "wrong effect from set algorithms: number of ctor… in main()
/external/llvm-project/pstl/test/support/
Dutils.h234 struct MemoryChecker { struct
244 explicit MemoryChecker(std::int32_t value = 0) : _value(value) { in _value() argument
252 MemoryChecker(MemoryChecker&& other) : _value(other.value()) { in MemoryChecker() argument
260 MemoryChecker(const MemoryChecker& other) : _value(other.value()) { in MemoryChecker() argument
268 MemoryChecker& operator=(MemoryChecker&& other) {
277 MemoryChecker& operator=(const MemoryChecker& other) {
286 ~MemoryChecker() { in ~MemoryChecker() argument
304 std::atomic<std::int64_t> MemoryChecker::alive_object_counter{0}; argument
306 std::ostream& operator<<(std::ostream& os, const MemoryChecker& val) { return (os << val.value()); }
307 bool operator==(const MemoryChecker& v1, const MemoryChecker& v2) { return v1.value() == v2.value()…
[all …]
/external/tensorflow/tensorflow/python/eager/
Dbackprop_test.py39 from tensorflow.python.framework.memory_checker import MemoryChecker
1667 with MemoryChecker() as memory_checker: