Home
last modified time | relevance | path

Searched refs:ScopedRef (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_tpu_device.h34 class ScopedRef {
36 ScopedRef() {} in ScopedRef() function
37 ~ScopedRef() {} in ~ScopedRef()
39 ScopedRef(const ScopedRef&) = delete;
40 ScopedRef& operator=(const ScopedRef&) = delete;
61 ScopedRef* scoped_ref);
63 static Status InitScopedRef(OpKernelContext* ctx, ScopedRef* scoped_ref);
Dxrt_device.h41 class ScopedRef {
43 ScopedRef() {} in ScopedRef() function
44 ~ScopedRef() {} in ~ScopedRef()
46 ScopedRef(const ScopedRef&) = delete;
47 ScopedRef& operator=(const ScopedRef&) = delete;
69 ScopedRef* scoped_ref);
71 static Status InitScopedRef(OpKernelContext* ctx, ScopedRef* scoped_ref);
Dxrt_tpu_device.cc37 Status XRTTpuDeviceAccessor::ScopedRef::Acquire(int device_ordinal) { in Acquire()
44 Status XRTTpuDeviceAccessor::ScopedRef::Acquire(OpKernelContext* ctx) { in Acquire()
52 ScopedRef* scoped_ref) { in InitScopedRef()
57 ScopedRef* scoped_ref) { in InitScopedRef()
Dxrt_device.cc71 OpKernelContext* ctx, int device_ordinal, ScopedRef* scoped_ref) { in InitScopedRef()
84 OpKernelContext* ctx, ScopedRef* scoped_ref) { in InitScopedRef()
/external/libtextclassifier/native/utils/java/
Djni-base.h130 class ScopedRef {
132 ScopedRef() : ptr_(nullptr, Deleter(nullptr)) {} in ScopedRef() function
133 ScopedRef(T value, Env* env) : ptr_(value, Deleter(env)) {} in ScopedRef() function
155 inline bool operator==(const ScopedRef<T, Env, Deleter>& x,
156 const ScopedRef<U, Env, Deleter>& y) {
161 inline bool operator==(const ScopedRef<T, Env, Deleter>& x, std::nullptr_t) {
166 inline bool operator==(std::nullptr_t, const ScopedRef<T, Env, Deleter>& x) {
171 inline bool operator!=(const ScopedRef<T, Env, Deleter>& x,
172 const ScopedRef<U, Env, Deleter>& y) {
177 inline bool operator!=(const ScopedRef<T, Env, Deleter>& x, std::nullptr_t) {
[all …]
/external/icing/icing/text_classifier/lib3/utils/java/
Djni-base.h128 class ScopedRef {
130 ScopedRef() : ptr_(nullptr, Deleter(nullptr)) {} in ScopedRef() function
131 ScopedRef(T value, Env* env) : ptr_(value, Deleter(env)) {} in ScopedRef() function
153 inline bool operator==(const ScopedRef<T, Env, Deleter>& x,
154 const ScopedRef<U, Env, Deleter>& y) {
159 inline bool operator==(const ScopedRef<T, Env, Deleter>& x, std::nullptr_t) {
164 inline bool operator==(std::nullptr_t, const ScopedRef<T, Env, Deleter>& x) {
169 inline bool operator!=(const ScopedRef<T, Env, Deleter>& x,
170 const ScopedRef<U, Env, Deleter>& y) {
175 inline bool operator!=(const ScopedRef<T, Env, Deleter>& x, std::nullptr_t) {
[all …]
/external/tensorflow/tensorflow/compiler/xrt/kernels/
Dxrt_state_ops.h197 class DeviceAccessor::ScopedRef device_ref; in Compute()
237 class DeviceAccessor::ScopedRef device_ref; in Compute()
341 class DeviceAccessor::ScopedRef device_ref; in Compute()
459 class DeviceAccessor::ScopedRef device_ref; in Compute()
517 class DeviceAccessor::ScopedRef device_ref; in Compute()
570 class DeviceAccessor::ScopedRef device_ref; in Compute()
658 typename DeviceAccessor::ScopedRef device_ref; in Compute()
735 class DeviceAccessor::ScopedRef device_ref; in Compute()
754 class DeviceAccessor::ScopedRef device_ref; in Compute()
Dxrt_execute_op.cc297 OpKernelContext* context, XRTGenericDeviceAccessor::ScopedRef* device_ref, in RunExecutable()
376 XRTGenericDeviceAccessor::ScopedRef* device_ref, in ExecuteComputation()
396 XRTGenericDeviceAccessor::ScopedRef* device_ref, in ExecuteComputation()
462 class XRTGenericDeviceAccessor::ScopedRef device_ref; in DoWork()
545 class XRTGenericDeviceAccessor::ScopedRef device_ref; in DoWork()
Dxrt_compile_ops.cc136 class XRTGenericDeviceAccessor::ScopedRef device_ref; in Compile()