Home
last modified time | relevance | path

Searched refs:shapes_ (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dunbatch_dataset_op.cc56 shapes_.emplace_back(std::move(partial_dim_sizes)); in Dataset()
59 shapes_.emplace_back(); in Dataset()
76 return shapes_; in output_shapes()
119 shapes_(params.dataset->output_shapes().size()) {} in Iterator()
143 shapes_[i]); in GetNextInternal()
170 shapes_[i] = tensors_[i].shape(); in GetNextInternal()
171 shapes_[i].RemoveDim(0); in GetNextInternal()
236 shapes_[i] = tensors_[i].shape(); in RestoreInternal()
237 shapes_[i].RemoveDim(0); in RestoreInternal()
249 std::vector<TensorShape> shapes_ TF_GUARDED_BY(mu_);
[all …]
/external/tensorflow/tensorflow/core/tpu/kernels/
Doutfeed_ops.h89 OP_REQUIRES_OK(ctx, ctx->GetAttr("shapes", &shapes_)); in TpuOutfeedDequeueTupleOp()
92 ctx, shapes_.size() == dtypes_.size(), in TpuOutfeedDequeueTupleOp()
96 for (int i = 0; i < shapes_.size(); i++) { in TpuOutfeedDequeueTupleOp()
99 TensorShapeToXLAShape(dtypes_[i], shapes_[i], &xla_shape)); in TpuOutfeedDequeueTupleOp()
109 for (int i = 0; i < shapes_.size(); ++i) { in DoWork()
111 TF_RETURN_IF_ERROR(ctx->allocate_output(i, shapes_[i], &output)); in DoWork()
123 std::vector<TensorShape> shapes_;
Dinfeed_ops.cc297 OP_REQUIRES_OK(ctx, ctx->GetAttr("shapes", &shapes_)); in PrelinearizeTupleOp()
300 ctx, shapes_.size() == dtypes_.size(), in PrelinearizeTupleOp()
303 shapes_.size(), ", dtypes length = ", dtypes_.size())); in PrelinearizeTupleOp()
306 for (int i = 0; i < shapes_.size(); i++) { in PrelinearizeTupleOp()
309 TensorShapeToXLAShape(dtypes_[i], shapes_[i], &xla_shape)); in PrelinearizeTupleOp()
321 OP_REQUIRES(ctx, values.size() == shapes_.size(), in Compute()
335 OP_REQUIRES(ctx, input_tensor.shape() == shapes_[i], in Compute()
338 "; expected ", shapes_[i].DebugString(), ", got ", in Compute()
368 std::vector<TensorShape> shapes_; member in tensorflow::__anon820c6a2d0111::PrelinearizeTupleOp
472 OP_REQUIRES_OK(ctx, ctx->GetAttr("shapes", &shapes_)); in TpuInfeedEnqueueTupleOp()
[all …]
Dinfeed_ops.h58 std::vector<TensorShape> shapes_;
/external/tensorflow/tensorflow/core/tpu/kernels/xla/
Dinfeed_op.cc116 OP_REQUIRES_OK(ctx, ctx->GetAttr("shapes", &shapes_)); in InfeedDequeueTupleOp()
118 for (int i = 0; i < shapes_.size(); i++) { in InfeedDequeueTupleOp()
121 TensorShapeToXLAShape(dtypes_[i], shapes_[i], &xla_shape)); in InfeedDequeueTupleOp()
145 for (int i = 0; i < shapes_.size(); ++i) { in Compile()
151 std::vector<TensorShape> shapes_; member in tensorflow::__anoned9053ee0111::InfeedDequeueTupleOp
/external/tensorflow/tensorflow/core/kernels/data/
Dtensor_dataset_op.cc46 shapes_.reserve(tensors_.size()); in Dataset()
49 shapes_.emplace_back(t.shape().dim_sizes()); in Dataset()
68 return shapes_; in output_shapes()
184 std::vector<PartialTensorShape> shapes_; member in tensorflow::data::TensorDatasetOp::Dataset
Dsparse_tensor_slice_dataset_op.cc38 shapes_({{-1, sparse_tensor.dims() - 1},
50 return shapes_; in output_shapes()
223 const std::vector<PartialTensorShape> shapes_; member in tensorflow::data::__anon0985c5ac0111::Dataset
Dtensor_slice_dataset_op.cc60 shapes_.emplace_back(std::move(element_dim_sizes)); in Dataset()
207 std::vector<TensorShape> shapes_; member in tensorflow::data::TensorSliceDatasetOp::Dataset
/external/tensorflow/tensorflow/core/kernels/
Dscoped_allocator_ops.cc32 OP_REQUIRES_OK(context, context->GetAttr("shapes", &shapes_)); in ScopedAllocatorOp()
41 ScopedAllocatorMgr::PopulateFields(id_, shapes_, dtype_, &fields_); in ScopedAllocatorOp()
76 std::vector<TensorShape> shapes_; member in tensorflow::ScopedAllocatorOp
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_node.h788 shapes_.clear(); in SnapshotNodes()
815 shapes_.push_back(node->shape()); in SnapshotNodes()
856 const std::vector<std::vector<int64_t>>& shapes() const { return shapes_; } in shapes()
901 std::vector<std::vector<int64_t>> shapes_; variable
/external/tensorflow/tensorflow/core/data/
Dsnapshot_utils.cc383 shapes_(shapes), in Dataset()
389 return shapes_; in output_shapes()
525 const std::vector<PartialTensorShape> shapes_; member in tensorflow::data::snapshot_util::Reader::Dataset
/external/tensorflow/tensorflow/core/grappler/costs/
Dgraph_properties.cc2076 TF_RETURN_IF_ERROR(shapes_.Merge(s1, s2)); in Merge()
2096 ShapeHandle actual_shape = shapes_.GetMergedValue(shape); in AsTensorProperties()
2111 const auto& actual_shape = shapes_.GetMergedValue(s); in GetMergedShape()
2132 DisjointSet<shape_inference::ShapeHandle> shapes_; member in tensorflow::grappler::SymbolicShapeManager