Home
last modified time | relevance | path

Searched refs:resource (Results 1 – 25 of 2785) sorted by relevance

12345678910>>...112

/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/
Dtpu_reorder_replicate_and_partitioned_inputs.mlir4resource<tensor<10x3xf32>>>, [[ARG1:%.*]]: tensor<!tf.resource<tensor<10x3xf32>>>, [[ARG2:%.*]]: t…
5resource<tensor<10x3xf32>>>, %arg1: tensor<!tf.resource<tensor<10x3xf32>>>, %arg2: tensor<!tf.reso…
9 …_dim = -1 : i64} : (tensor<!tf.resource<tensor<10x3xf32>>>, tensor<!tf.resource<tensor<10x3xf32>>>…
10 …_dim = -1 : i64} : (tensor<!tf.resource<tensor<10x3xf32>>>, tensor<!tf.resource<tensor<10x3xf32>>>…
11 …t"(%pi_0, %pi_1) : (tensor<!tf.resource<tensor<10x3xf32>>>, tensor<!tf.resource<tensor<10x3xf32>>>…
13 return %ri : tensor<!tf.resource<tensor<10x3xf32>>>
17resource<tensor<10x3xf32>>>, [[ARG1:%.*]]: tensor<!tf.resource<tensor<10x3xf32>>>, [[ARG2:%.*]]: t…
18resource<tensor<10x3xf32>>>, %arg1: tensor<!tf.resource<tensor<10x3xf32>>>, %arg2: tensor<!tf.reso…
22 …_dim = -1 : i64} : (tensor<!tf.resource<tensor<10x3xf32>>>, tensor<!tf.resource<tensor<10x3xf32>>>…
23 …_dim = -1 : i64} : (tensor<!tf.resource<tensor<10x3xf32>>>, tensor<!tf.resource<tensor<10x3xf32>>>…
[all …]
Dtpu_resource_partitioning.mlir1 // RUN: tf-opt %s -tf-tpu-resource-partition | FileCheck %s
6 // CHECK-SAME: ([[ARG0:%.+]]: tensor<!tf.resource<tensor<i32>>>, [[ARG1:%.+]]: tensor<!tf.resource<…
7 func @read_write_resource(%arg0: tensor<!tf.resource<tensor<i32>>>, %arg1: tensor<!tf.resource<tens…
13 …ition_dim = -1 : i64} : (tensor<!tf.resource<tensor<i32>>>, tensor<!tf.resource<tensor<i32>>>) -> …
14 %1 = "tf.ReadVariableOp"(%0) : (tensor<!tf.resource<tensor<i32>>>) -> tensor<i32>
22 "tf.AssignVariableOp"(%0, %2) : (tensor<!tf.resource<tensor<i32>>>, tensor<i32>) -> ()
27 // CHECK-SAME: ([[ARG0:%.+]]: tensor<!tf.resource<tensor<i32>>>, [[ARG1:%.+]]: tensor<!tf.resource<…
28 func @read_only_resource(%arg0: tensor<!tf.resource<tensor<i32>>>, %arg1: tensor<!tf.resource<tenso…
34 …ition_dim = -1 : i64} : (tensor<!tf.resource<tensor<i32>>>, tensor<!tf.resource<tensor<i32>>>) -> …
35 %1 = "tf.ReadVariableOp"(%0) : (tensor<!tf.resource<tensor<i32>>>) -> tensor<i32>
[all …]
Dstack_ops_decomposition.mlir13 // CHECK-NEXT: %[[BUFFER:.*]] = "tf.MlirLocalVarOp"() : () -> tensor<!tf.resource<tensor<10xf32>>>
14 // CHECK-NEXT: %[[SIZE:.*]] = "tf.MlirLocalVarOp"() : () -> tensor<!tf.resource<tensor<1xi32>>>
18 …"tf.StackV2"(%max_size) {elem_type = f32, stack_name = "s"} : (tensor<i32>) -> tensor<!tf.resource>
19 %id = "tf.Identity"(%stack) : (tensor<!tf.resource>) -> tensor<!tf.resource>
27 …// CHECK-NEXT: "tf.AssignVariableOp"(%[[BUFFER]], %[[UPDATE]]) : (tensor<!tf.resource<tensor<10xf3…
30 …// CHECK-NEXT: "tf.AssignVariableOp"(%[[SIZE]], %[[NEW_SIZE]]) : (tensor<!tf.resource<tensor<1xi32…
31 …%push = "tf.StackPushV2"(%id, %elem) {swap_memory = false} : (tensor<!tf.resource>, tensor<f32>) -…
32 %pop = "tf.StackPopV2"(%stack) : (tensor<!tf.resource>) -> tensor<f32>
41 …// CHECK-NEXT: "tf.AssignVariableOp"(%[[SIZE]], %[[SUB]]) : (tensor<!tf.resource<tensor<1xi32>>>, …
42 "tf.StackCloseV2"(%stack) : (tensor<!tf.resource>) -> ()
[all …]
Dresource_op_lifting.mlir1 // RUN: tf-opt %s -split-input-file -verify-diagnostics -tf-resource-op-lifting | FILECHECK_OPTS=""…
3 // Tests that resource load operations are hoisted.
9 …%0 = "tf.VarHandleOp"() {container = "c", shared_name = "v"} : () -> tensor<*x!tf.resource<tensor<…
19 …%2 = "tf.ReadVariableOp"(%0) {dtype = i32} : (tensor<*x!tf.resource<tensor<*xi32>>>) -> tensor<*xi…
29 // Tests that resource store operations are hoisted.
35 …%0 = "tf.VarHandleOp"() {container = "c", shared_name = "v"} : () -> tensor<*x!tf.resource<tensor<…
46 …"tf.AssignVariableOp"(%0, %2) {dtype = i32} : (tensor<*x!tf.resource<tensor<*xi32>>>, tensor<*xi32…
56 // Tests that a resource ops with both load and store are hoisted.
62 …%0 = "tf.VarHandleOp"() {container = "c", shared_name = "v"} : () -> tensor<*x!tf.resource<tensor<…
73 …%2 = "tf.ReadVariableOp"(%0) {dtype = i32} : (tensor<*x!tf.resource<tensor<*xi32>>>) -> tensor<*xi…
[all …]
Dtensor_array_ops_decomposition.mlir10 // CHECK: %[[VAR:.*]] = "tf.MlirLocalVarOp"() : () -> tensor<!tf.resource<tensor<5x3xf32>>>
12 …ent_shapes = true, tensor_array_name = "ta"} : (tensor<i32>) -> (tensor<!tf.resource>, tensor<f32>)
22 …%write = "tf.TensorArrayWriteV3"(%ta#0, %index, %value, %ta#1) : (tensor<!tf.resource>, tensor<i32…
27 …%read = "tf.TensorArrayReadV3"(%ta#0, %index, %write) : (tensor<!tf.resource>, tensor<i32>, tensor…
29 "tf.TensorArrayCloseV3"(%ta#0) : (tensor<!tf.resource>) -> ()
43 // CHECK: %[[VAR:.*]] = "tf.MlirLocalVarOp"() : () -> tensor<!tf.resource<tensor<5x3xf32>>>
45 …ent_shapes = true, tensor_array_name = "ta"} : (tensor<i32>) -> (tensor<!tf.resource>, tensor<f32>)
48 …%write = "tf.TensorArrayWriteV3"(%ta#0, %index, %value, %ta#1) : (tensor<!tf.resource>, tensor<i32…
50 …%size_out = "tf.TensorArraySizeV3"(%ta#0, %write) : (tensor<!tf.resource>, tensor<f32>) -> tensor<…
62 // CHECK: %[[VAR:.*]] = "tf.MlirLocalVarOp"() : () -> tensor<!tf.resource<tensor<5x3xf32>>>
[all …]
Dpromote_resources_to_args.mlir3 // One resource, one read. The initial value of the resource is read.
12 …%1 = "tf.VarHandleOp"() {container = "", shared_name = "x"} : () -> tensor<!tf.resource<tensor<f32…
13 %2 = "tf.ReadVariableOp"(%1) : (tensor<!tf.resource<tensor<f32>>>) -> tensor<f32>
21 // One resource, one write. The initial value of the resource is not read.
28 …) {container = "", shape = "tfshape$", shared_name = "x"} : () -> tensor<!tf.resource<tensor<f32>>>
29 "tf.AssignVariableOp"(%1, %0) : (tensor<!tf.resource<tensor<f32>>>, tensor<f32>) -> ()
35 // One resource, two reads using different resource handles.
46 …%1 = "tf.VarHandleOp"() {container = "", shared_name = "x"} : () -> tensor<!tf.resource<tensor<f32…
47 %2 = "tf.ReadVariableOp"(%1) : (tensor<!tf.resource<tensor<f32>>>) -> tensor<f32>
49 …%4 = "tf.VarHandleOp"() {container = "", shared_name = "x"} : () -> tensor<!tf.resource<tensor<f32…
[all …]
Dside-effect-analysis-test.mlir4 // resource.
9 %arg0: tensor<*x!tf.resource<tensor<32xf32>>>,
10 %arg1: tensor<*x!tf.resource<tensor<32xf32>>>,
19 … %read0 = "tf.ReadVariableOp"(%arg0) : (tensor<*x!tf.resource<tensor<32xf32>>>) -> tensor<32xf32>
22 …"tf.AssignVariableOp"(%arg0, %arg2) : (tensor<*x!tf.resource<tensor<32xf32>>>, tensor<32xf32>) -> …
26 … %read1 = "tf.ReadVariableOp"(%arg1) : (tensor<*x!tf.resource<tensor<32xf32>>>) -> tensor<32xf32>
29 …VarHandleOp"() {container = "c", shared_name = "v0"} : () -> tensor<*x!tf.resource<tensor<32xf32>>>
31 …%read2 = "tf.ReadVariableOp"(%var_handle) : (tensor<*x!tf.resource<tensor<32xf32>>>) -> tensor<32x…
34 …"tf.AssignVariableOp"(%arg1, %read0) : (tensor<*x!tf.resource<tensor<32xf32>>>, tensor<32xf32>) ->…
38 …"tf.AssignVariableOp"(%arg0, %read2) : (tensor<*x!tf.resource<tensor<32xf32>>>, tensor<32xf32>) ->…
[all …]
/external/python/cpython3/Lib/test/
Dtest_resource.py7 resource = support.import_module('resource') variable
14 self.assertRaises(TypeError, resource.getrlimit)
15 self.assertRaises(TypeError, resource.getrlimit, 42, 42)
16 self.assertRaises(TypeError, resource.setrlimit)
17 self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42)
23 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
32 self.assertEqual(resource.RLIM_INFINITY, max)
33 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max))
37 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
50 resource.setrlimit(resource.RLIMIT_FSIZE, (1024, max))
[all …]
/external/skqp/src/gpu/
DGrResourceCache.cpp108 void GrResourceCache::insertResource(GrGpuResource* resource) { in insertResource() argument
110 SkASSERT(resource); in insertResource()
111 SkASSERT(!this->isInCache(resource)); in insertResource()
112 SkASSERT(!resource->wasDestroyed()); in insertResource()
113 SkASSERT(!resource->resourcePriv().isPurgeable()); in insertResource()
117 resource->cacheAccess().setTimestamp(this->getNextTimestamp()); in insertResource()
119 this->addToNonpurgeableArray(resource); in insertResource()
121 size_t size = resource->gpuMemorySize(); in insertResource()
128 if (GrBudgetedType::kBudgeted == resource->resourcePriv().budgetedType()) { in insertResource()
138 if (resource->resourcePriv().getScratchKey().isValid() && in insertResource()
[all …]
DGrPendingIOResource.h23 explicit GrPendingIOResource(T* resource) { this->reset(resource); } in GrPendingIOResource() argument
24 GrPendingIOResource(sk_sp<T> resource) { *this = std::move(resource); } in GrPendingIOResource() argument
28 GrPendingIOResource& operator=(sk_sp<T> resource) {
29 this->reset(resource.get());
33 void reset(T* resource = nullptr) {
34 if (resource) {
37 resource->addPendingRead();
40 resource->addPendingWrite();
43 resource->addPendingRead();
44 resource->addPendingWrite();
[all …]
/external/skia/src/gpu/
DGrResourceCache.cpp133 void GrResourceCache::insertResource(GrGpuResource* resource) { in insertResource() argument
135 SkASSERT(resource); in insertResource()
136 SkASSERT(!this->isInCache(resource)); in insertResource()
137 SkASSERT(!resource->wasDestroyed()); in insertResource()
138 SkASSERT(!resource->resourcePriv().isPurgeable()); in insertResource()
142 resource->cacheAccess().setTimestamp(this->getNextTimestamp()); in insertResource()
144 this->addToNonpurgeableArray(resource); in insertResource()
146 size_t size = resource->gpuMemorySize(); in insertResource()
153 if (GrBudgetedType::kBudgeted == resource->resourcePriv().budgetedType()) { in insertResource()
163 SkASSERT(!resource->cacheAccess().isUsableAsScratch()); in insertResource()
[all …]
/external/python/cpython2/Lib/test/
Dtest_resource.py5 resource = test_support.import_module('resource') variable
12 self.assertRaises(TypeError, resource.getrlimit)
13 self.assertRaises(TypeError, resource.getrlimit, 42, 42)
14 self.assertRaises(TypeError, resource.setrlimit)
15 self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42)
19 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
27 self.assertEqual(resource.RLIM_INFINITY, max)
28 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max))
32 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
44 resource.setrlimit(resource.RLIMIT_FSIZE, (1024, max))
[all …]
/external/mesa3d/src/gallium/frontends/nine/
Dnine_buffer_upload.c47 struct pipe_resource *resource; member
56 struct pipe_resource *resource; /* The parent resource if apply */ member
76 struct pipe_resource resource; in nine_upload_create_buffer_group() local
80 memset(&resource, 0, sizeof(resource)); in nine_upload_create_buffer_group()
81 resource.target = PIPE_BUFFER; in nine_upload_create_buffer_group()
82 resource.format = PIPE_FORMAT_R8_UNORM; in nine_upload_create_buffer_group()
83 resource.bind = PIPE_BIND_VERTEX_BUFFER; in nine_upload_create_buffer_group()
84 resource.usage = PIPE_USAGE_STREAM; in nine_upload_create_buffer_group()
85 resource.width0 = upload->buffers_size; in nine_upload_create_buffer_group()
86 resource.height0 = 1; in nine_upload_create_buffer_group()
[all …]
/external/ltp/testcases/kernel/syscalls/getrlimit/
Dgetrlimit03.c62 static int getrlimit_u64(int resource, struct rlimit64 *rlim) in getrlimit_u64() argument
64 return tst_syscall(__NR_prlimit64, 0, resource, NULL, rlim); in getrlimit_u64()
78 static int getrlimit_ulong(int resource, struct rlimit_ulong *rlim) in getrlimit_ulong() argument
80 return syscall(__NR_getrlimit_ulong, resource, rlim); in getrlimit_ulong()
91 static int getrlimit_long(int resource, struct rlimit_long *rlim) in getrlimit_long() argument
93 return syscall(__NR_getrlimit, resource, rlim); in getrlimit_long()
97 static int compare_retval(int resource, int ret_u64, int errno_u64, in compare_retval() argument
103 resource, ret_u64, tst_strerrno(errno_u64), in compare_retval()
104 other_syscall, resource, ret_other, in compare_retval()
112 static int compare_u64_ulong(int resource, uint64_t val_u64, in compare_u64_ulong() argument
[all …]
/external/mesa3d/src/egl/wayland/wayland-drm/
Dwayland-drm.c43 destroy_buffer(struct wl_resource *resource) in destroy_buffer() argument
45 struct wl_drm_buffer *buffer = wl_resource_get_user_data(resource); in destroy_buffer()
53 buffer_destroy(struct wl_client *client, struct wl_resource *resource) in buffer_destroy() argument
55 wl_resource_destroy(resource); in buffer_destroy()
59 create_buffer(struct wl_client *client, struct wl_resource *resource, in create_buffer() argument
67 struct wl_drm *drm = wl_resource_get_user_data(resource); in create_buffer()
72 wl_resource_post_no_memory(resource); in create_buffer()
89 wl_resource_post_error(resource, in create_buffer()
95 buffer->resource = in create_buffer()
97 if (!buffer->resource) { in create_buffer()
[all …]
/external/wayland/src/
Dwayland-server.c145 log_closure(struct wl_resource *resource, in log_closure() argument
148 struct wl_object *object = &resource->object; in log_closure()
149 struct wl_display *display = resource->client->display; in log_closure()
157 message.resource = resource; in log_closure()
173 verify_objects(struct wl_resource *resource, uint32_t opcode, in verify_objects() argument
176 struct wl_object *object = &resource->object; in verify_objects()
189 if (res && res->client != resource->client) { in verify_objects()
203 handle_array(struct wl_resource *resource, uint32_t opcode, in handle_array() argument
208 struct wl_object *object = &resource->object; in handle_array()
210 if (resource->client->error) in handle_array()
[all …]
Dwayland-server-core.h342 struct wl_resource *resource,
481 typedef void (*wl_resource_destroy_func_t)(struct wl_resource *resource);
500 wl_resource_post_event(struct wl_resource *resource,
504 wl_resource_post_event_array(struct wl_resource *resource,
508 wl_resource_queue_event(struct wl_resource *resource,
512 wl_resource_queue_event_array(struct wl_resource *resource,
517 wl_resource_post_error(struct wl_resource *resource,
521 wl_resource_post_no_memory(struct wl_resource *resource);
532 wl_resource_set_implementation(struct wl_resource *resource,
538 wl_resource_set_dispatcher(struct wl_resource *resource,
[all …]
Dwayland-shm.c60 struct wl_resource *resource; member
70 struct wl_resource *resource; member
94 wl_resource_post_error(pool->resource, in shm_pool_finish_resize()
123 destroy_buffer(struct wl_resource *resource) in destroy_buffer() argument
125 struct wl_shm_buffer *buffer = wl_resource_get_user_data(resource); in destroy_buffer()
133 shm_buffer_destroy(struct wl_client *client, struct wl_resource *resource) in shm_buffer_destroy() argument
135 wl_resource_destroy(resource); in shm_buffer_destroy()
164 shm_pool_create_buffer(struct wl_client *client, struct wl_resource *resource, in shm_pool_create_buffer() argument
169 struct wl_shm_pool *pool = wl_resource_get_user_data(resource); in shm_pool_create_buffer()
173 wl_resource_post_error(resource, in shm_pool_create_buffer()
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/request/target/
DGlideDrawableImageViewTarget.java5 import com.bumptech.glide.load.resource.drawable.GlideDrawable;
15 private GlideDrawable resource; field in GlideDrawableImageViewTarget
51 …public void onResourceReady(GlideDrawable resource, GlideAnimation<? super GlideDrawable> animatio… in onResourceReady() argument
52 if (!resource.isAnimated()) { in onResourceReady()
60 … float drawableRatio = resource.getIntrinsicWidth() / (float) resource.getIntrinsicHeight(); in onResourceReady()
63 resource = new SquaringDrawable(resource, view.getWidth()); in onResourceReady()
66 super.onResourceReady(resource, animation); in onResourceReady()
67 this.resource = resource; in onResourceReady()
68 resource.setLoopCount(maxLoopCount); in onResourceReady()
69 resource.start(); in onResourceReady()
[all …]
/external/mesa3d/src/gallium/drivers/tegra/
Dtegra_screen.c168 struct tegra_resource *resource) in tegra_screen_import_resource() argument
178 status = screen->gpu->resource_get_handle(screen->gpu, NULL, resource->gpu, in tegra_screen_import_resource()
190 resource->modifier = handle.modifier; in tegra_screen_import_resource()
191 resource->stride = handle.stride; in tegra_screen_import_resource()
194 err = drmPrimeFDToHandle(screen->fd, fd, &resource->handle); in tegra_screen_import_resource()
209 struct tegra_resource *resource; in tegra_screen_resource_create() local
212 resource = calloc(1, sizeof(*resource)); in tegra_screen_resource_create()
213 if (!resource) in tegra_screen_resource_create()
230 resource->gpu = screen->gpu->resource_create_with_modifiers(screen->gpu, in tegra_screen_resource_create()
233 if (!resource->gpu) in tegra_screen_resource_create()
[all …]
/external/icu/icu4c/source/data/translit/
Droot.txt15 resource:process(transliterator){"Latin_ASCII.txt"}
21 resource:process(transliterator){"Any_Accents.txt"}
30 resource:process(transliterator){"Any_Accents.txt"}
36 resource:process(transliterator){"Any_Publishing.txt"}
42 resource:process(transliterator){"Arab_Latn.txt"}
60 resource:process(transliterator){"Latn_Armn.txt"}
72 resource:process(transliterator){"Beng_Arab.txt"}
78 resource:process(transliterator){"Beng_Deva.txt"}
84 resource:process(transliterator){"Beng_Gujr.txt"}
90 resource:process(transliterator){"Beng_Guru.txt"}
[all …]
/external/opencensus-java/contrib/monitored_resource_util/src/test/java/io/opencensus/contrib/monitoredresource/util/
DMonitoredResourceTest.java45 AwsEc2InstanceMonitoredResource resource = in testAwsEc2InstanceMonitoredResource() local
47 assertThat(resource.getResourceType()).isEqualTo(ResourceType.AWS_EC2_INSTANCE); in testAwsEc2InstanceMonitoredResource()
48 assertThat(resource.getAccount()).isEqualTo(AWS_ACCOUNT); in testAwsEc2InstanceMonitoredResource()
49 assertThat(resource.getInstanceId()).isEqualTo(AWS_INSTANCE); in testAwsEc2InstanceMonitoredResource()
50 assertThat(resource.getRegion()).isEqualTo(AWS_REGION); in testAwsEc2InstanceMonitoredResource()
55 GcpGceInstanceMonitoredResource resource = in testGcpGceInstanceMonitoredResource() local
57 assertThat(resource.getResourceType()).isEqualTo(ResourceType.GCP_GCE_INSTANCE); in testGcpGceInstanceMonitoredResource()
58 assertThat(resource.getAccount()).isEqualTo(GCP_PROJECT); in testGcpGceInstanceMonitoredResource()
59 assertThat(resource.getInstanceId()).isEqualTo(GCP_INSTANCE); in testGcpGceInstanceMonitoredResource()
60 assertThat(resource.getZone()).isEqualTo(GCP_ZONE); in testGcpGceInstanceMonitoredResource()
[all …]
/external/tensorflow/tensorflow/core/framework/
Dresource_op_kernel_test.cc57 StubResource* resource() TF_LOCKS_EXCLUDED(mu_) { in resource() function in tensorflow::__anon1ebbe4430111::StubResourceOpKernel
63 Status CreateResource(StubResource** resource) override { in CreateResource() argument
64 *resource = CHECK_NOTNULL(new StubResource); in CreateResource()
65 return GetNodeAttr(def(), "code", &(*resource)->code); in CreateResource()
68 Status VerifyResource(StubResource* resource) override { in VerifyResource() argument
71 if (code != resource->code) { in VerifyResource()
72 return errors::InvalidArgument("stub has code ", resource->code, in VerifyResource()
145 StubResource* resource; in TEST_F() local
147 mgr_.Lookup<StubResource>(mgr_.default_container(), key, &resource)); in TEST_F()
148 EXPECT_EQ(op->resource(), resource); // Check resource identity. in TEST_F()
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/
Dresource_loader.py12 from py_vulcanize import resource as resource_module
89 resource = self.FindResourceGivenRelativePath(filename)
91 return resource
92 if not resource:
94 return _read_file(resource.absolute_path)
116 resource = self.FindResource(module_filename)
117 if not resource:
120 module_name = resource.name
122 resource = None # Will be set if we end up needing to load.
128 if not resource: # happens when module_name was given
[all …]
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dtensor_array_ops.cc51 XlaResource* resource, DataType dtype, in MaybeInitializeTensorArray() argument
53 if (resource->kind() != XlaResource::kTensorArray) { in MaybeInitializeTensorArray()
57 if (resource->type() != dtype) { in MaybeInitializeTensorArray()
59 "TensorArray dtype is ", DataTypeString(resource->type()), in MaybeInitializeTensorArray()
63 TF_RET_CHECK(resource->max_array_size() >= 0) in MaybeInitializeTensorArray()
64 << resource->name() << " size " << resource->max_array_size(); in MaybeInitializeTensorArray()
66 if (!resource->initialized()) { in MaybeInitializeTensorArray()
67 TF_RETURN_IF_ERROR(resource->SetTypeAndShape(dtype, elem_shape)); in MaybeInitializeTensorArray()
68 TF_RETURN_IF_ERROR(resource->SetZeroValue(builder)); in MaybeInitializeTensorArray()
71 auto shape_or_status = builder->GetShape(resource->value()); in MaybeInitializeTensorArray()
[all …]

12345678910>>...112