Home
last modified time | relevance | path

Searched refs:ResourceHandle (Results 1 – 25 of 48) sorted by relevance

12

/external/tensorflow/tensorflow/core/framework/
Dresource_handle.cc22 ResourceHandle::ResourceHandle() {} in ResourceHandle() function in tensorflow::ResourceHandle
24 ResourceHandle::ResourceHandle(const ResourceHandleProto& proto) { in ResourceHandle() function in tensorflow::ResourceHandle
28 ResourceHandle::~ResourceHandle() {} in ~ResourceHandle()
30 void ResourceHandle::AsProto(ResourceHandleProto* proto) const { in AsProto()
38 void ResourceHandle::FromProto(const ResourceHandleProto& proto) { in FromProto()
46 string ResourceHandle::SerializeAsString() const { in SerializeAsString()
52 bool ResourceHandle::ParseFromString(const string& s) { in ParseFromString()
59 string ResourceHandle::DebugString() const { in DebugString()
65 string ProtoDebugString(const ResourceHandle& handle) { in ProtoDebugString()
69 void EncodeResourceHandleList(const ResourceHandle* p, int64 n, in EncodeResourceHandleList()
[all …]
Dresource_handle.h32 class ResourceHandle {
34 ResourceHandle();
35 ResourceHandle(const ResourceHandleProto& proto);
36 ~ResourceHandle();
84 string ProtoDebugString(const ResourceHandle& handle);
87 void EncodeResourceHandleList(const ResourceHandle* p, int64 n,
92 ResourceHandle* ps, int64 n);
Dresource_mgr.h170 Status Delete(const ResourceHandle& handle) TF_MUST_USE_RESULT;
236 ResourceHandle MakeResourceHandle(OpKernelContext* ctx, const string& container,
241 ResourceHandle MakeResourceHandle(OpKernelContext* ctx, const string& container, in MakeResourceHandle()
251 ResourceHandle MakePerStepResourceHandle(OpKernelContext* ctx,
255 const ResourceHandle& HandleFromInput(OpKernelContext* ctx, int input);
257 ResourceHandle* handle);
264 Status CreateResource(OpKernelContext* ctx, const ResourceHandle& p, T* value);
271 Status LookupResource(OpKernelContext* ctx, const ResourceHandle& p, T** value);
277 OpKernelContext* ctx, absl::Span<ResourceHandle const> p,
287 Status LookupOrCreateResource(OpKernelContext* ctx, const ResourceHandle& p,
[all …]
Dresource_mgr.cc35 ResourceHandle MakeResourceHandle(OpKernelContext* ctx, const string& container, in MakeResourceHandle()
38 ResourceHandle result; in MakeResourceHandle()
47 if (name == ResourceHandle::ANONYMOUS_NAME) { in MakeResourceHandle()
63 handle->scalar<ResourceHandle>()() = in MakeResourceHandleToOutput()
70 Status ValidateDevice(OpKernelContext* ctx, const ResourceHandle& p) { in ValidateDevice()
211 Status ResourceMgr::Delete(const ResourceHandle& handle) { in Delete()
291 const ResourceHandle& HandleFromInput(OpKernelContext* ctx, int input) { in HandleFromInput()
292 return ctx->input(input).flat<ResourceHandle>()(0); in HandleFromInput()
296 ResourceHandle* handle) { in HandleFromInput()
299 *handle = tensor->flat<ResourceHandle>()(0); in HandleFromInput()
[all …]
Dallocator.h235 virtual void RunResourceCtor(ResourceHandle* p, size_t n) { in RunResourceCtor()
236 for (size_t i = 0; i < n; ++p, ++i) new (p) ResourceHandle(); in RunResourceCtor()
240 virtual void RunResourceDtor(ResourceHandle* p, size_t n) { in RunResourceDtor()
241 for (size_t i = 0; i < n; ++p, ++i) p->~ResourceHandle(); in RunResourceDtor()
266 inline void Allocator::RunCtor(ResourceHandle* p, size_t n) { in RunCtor()
271 inline void Allocator::RunDtor(ResourceHandle* p, size_t n) { in RunDtor()
Dallocator.cc44 void RunResourceCtor(ResourceHandle* p, size_t n) { in RunResourceCtor()
45 for (size_t i = 0; i < n; ++p, ++i) new (p) ResourceHandle(); in RunResourceCtor()
48 void RunResourceDtor(ResourceHandle* p, size_t n) { in RunResourceDtor()
49 for (size_t i = 0; i < n; ++p, ++i) p->~ResourceHandle(); in RunResourceDtor()
Dresource_mgr_test.cc260 ResourceHandle p = in TEST()
290 ResourceHandle p = in TEST()
319 ResourceHandle p = in TEST()
335 ResourceHandle p = in TEST()
Dtensor.cc206 struct Helper<ResourceHandle> {
214 EncodeResourceHandleList(in->base<const ResourceHandle>(), n, in Encode()
223 auto* buf = new Buffer<ResourceHandle>(a, n); in Decode()
224 ResourceHandle* ps = buf->template base<ResourceHandle>(); in Decode()
236 return n * sizeof(ResourceHandle); in TotalBytes()
339 struct ProtoHelper<ResourceHandle> {
347 static void Fill(const ResourceHandle* data, size_t n, TensorProto* proto) { in Fill()
719 CASE(ResourceHandle, SINGLE_ARG(STMTS)) \
Dresource_handle.proto5 option java_outer_classname = "ResourceHandle";
/external/tensorflow/tensorflow/core/kernels/lookup_tables/
Dop_kernel_templates.h99 handle->scalar<ResourceHandle>()() = MakeResourceHandle<ResourceType>( in Compute()
186 ResourceHandle handle(table_handle.scalar<ResourceHandle>()()); in Compute()
234 handle->scalar<ResourceHandle>()() = MakeResourceHandle<ResourceType>( in Compute()
312 ResourceHandle handle(table_handle.scalar<ResourceHandle>()()); in Compute()
393 ResourceHandle handle(table_handle.scalar<ResourceHandle>()()); in Compute()
426 ResourceHandle handle(container_handle.scalar<ResourceHandle>()()); in Compute()
/external/tensorflow/tensorflow/core/kernels/
Dconcat_lib_cpu.cc39 struct MemCpyCopier<ResourceHandle> {
40 inline void Copy(ResourceHandle* dst, const ResourceHandle* src, in Copy()
Dcontrol_flow_ops.cc117 REGISTER_GPU_HOST_KERNEL(ResourceHandle);
319 REGISTER_GPU_HOST_KERNEL(ResourceHandle);
342 REGISTER_SYCL_HOST_KERNEL(ResourceHandle);
409 REGISTER_SYCL_HOST_KERNEL(ResourceHandle);
438 REGISTER_GPU_HOST_KERNEL(ResourceHandle);
520 REGISTER_GPU_HOST_KERNEL(ResourceHandle);
570 REGISTER_GPU_HOST_KERNEL(ResourceHandle);
Dqueue_ops.cc68 const ResourceHandle& ref = context->input(0).flat<ResourceHandle>()(0); in Compute()
Dstrided_slice_op.h63 struct InitOutput<ResourceHandle, NDIMS, Device> {
65 typename TTypes<ResourceHandle, NDIMS>::Tensor output) {
66 output.device(d) = output.constant(ResourceHandle());
Dsession_ops.cc52 ResourceHandle resource_handle = MakeResourceHandle<Tensor>( in Compute()
57 handle->scalar<ResourceHandle>()() = resource_handle; in Compute()
Dops_testutil.h147 ResourceHandle handle; in AddResourceInput()
154 input->scalar<ResourceHandle>()() = handle; in AddResourceInput()
Dpartitioned_function_ops.cc193 const ResourceHandle& handle = tensor.flat<ResourceHandle>()(0); in Instantiate()
Didentity_op.cc148 REGISTER_GPU_HOST_KERNEL(ResourceHandle);
/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_compilation_device.cc71 void RunResourceCtor(ResourceHandle* p, size_t n) override {} in RunResourceCtor()
72 void RunResourceDtor(ResourceHandle* p, size_t n) override {} in RunResourceDtor()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_device_ops.h109 .TypeConstraint<ResourceHandle>("T") \
215 .TypeConstraint<ResourceHandle>("T"), \
224 .TypeConstraint<ResourceHandle>("T") \
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_GetSessionHandleV2.pbtxt13 as a ResourceHandle object.
/external/tensorflow/tensorflow/core/kernels/data/
Dmulti_device_iterator_ops.cc417 if (name_ == ResourceHandle::ANONYMOUS_NAME) { in Compute()
595 resource_handle_t.scalar<ResourceHandle>()().SerializeAsString(); in Compute()
622 ResourceHandle resource_handle; in Compute()
653 resource_handle_t->scalar<ResourceHandle>()() = resource_handle; in Compute()
/external/tensorflow/tensorflow/core/kernels/boosted_trees/
Dquantile_ops.cc224 ResourceHandle handle; in Compute()
336 ResourceHandle handle; in Compute()
391 ResourceHandle handle; in Compute()
/external/tensorflow/tensorflow/core/common_runtime/eager/
Dtensor_handle.cc322 const ResourceHandle& resource_handle = t.flat<ResourceHandle>()(0); in GetResourceDevice()
/external/tensorflow/tensorflow/contrib/boosted_trees/kernels/
Dstats_accumulator_ops.cc451 const ResourceHandle& handle = in Compute()
453 .flat<ResourceHandle>()(0); in Compute()
516 const ResourceHandle& handle = in Compute()
518 .flat<ResourceHandle>()(0); in Compute()

12