সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
টেনসরফ্লো :: অপস:: স্পারসস্প্লিট
#include <sparse_ops.h>
একটি SparseTensor
একটি মাত্রা বরাবর num_split
টেনসরে বিভক্ত করুন।
সারাংশ
যদি shape[split_dim]
num_split
এর একটি পূর্ণসংখ্যা গুণ না হয়। স্লাইস [0 : shape[split_dim] % num_split]
একটি অতিরিক্ত মাত্রা পায়। উদাহরণস্বরূপ, যদি split_dim = 1
এবং num_split = 2
এবং ইনপুট হয়
input_tensor = shape = [2, 7]
[ a d e ]
[b c ]
গ্রাফিকভাবে আউটপুট টেনসরগুলি হল:
output_tensor[0] = shape = [2, 4]
[ a ]
[b c ]
output_tensor[1] = shape = [2, 3]
[ d e ]
[ ]
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
- split_dim: 0-D. যে মাত্রা বরাবর বিভক্ত করা হবে। পরিসরে হতে হবে
[0, rank(shape))
। - সূচক: 2-ডি টেনসর স্পার্স টেনসরের সূচকগুলিকে প্রতিনিধিত্ব করে।
- মান: 1-ডি টেনসর স্পার্স টেনসরের মানগুলিকে উপস্থাপন করে।
- আকৃতি: 1-ডি। টেনসর স্পার্স টেনসরের আকৃতির প্রতিনিধিত্ব করে। আউটপুট সূচক: 1-ডি টেনসরগুলির একটি তালিকা আউটপুট স্পার্স টেনসরগুলির সূচকগুলিকে উপস্থাপন করে।
- num_split: বিভক্ত করার উপায়গুলির সংখ্যা।
রিটার্ন:
-
OutputList
আউটপুট_সূচক -
OutputList
output_values: 1-D টেনসরের একটি তালিকা আউটপুট স্পারস টেনসরের মানগুলিকে উপস্থাপন করে। -
OutputList
আউটপুট_শেপ: 1-ডি টেনসরগুলির একটি তালিকা আউটপুট স্পার্স টেনসরগুলির আকৃতি উপস্থাপন করে।
পাবলিক বৈশিষ্ট্য
পাবলিক ফাংশন
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# tensorflow::ops::SparseSplit Class Reference\n\ntensorflow::ops::SparseSplit\n============================\n\n`#include \u003csparse_ops.h\u003e`\n\nSplit a `SparseTensor` into `num_split` tensors along one dimension.\n\nSummary\n-------\n\nIf the `shape[split_dim]` is not an integer multiple of `num_split`. Slices `[0 : shape[split_dim] % num_split]` gets one extra dimension. For example, if `split_dim = 1` and `num_split = 2` and the input is \n\n```objective-c\ninput_tensor = shape = [2, 7]\n[ a d e ]\n[b c ]\n```\n\n\u003cbr /\u003e\n\nGraphically the output tensors are: \n\n```objective-c\noutput_tensor[0] = shape = [2, 4]\n[ a ]\n[b c ]\n\noutput_tensor[1] = shape = [2, 3]\n[ d e ]\n[ ]\n```\n\n\u003cbr /\u003e\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- split_dim: 0-D. The dimension along which to split. Must be in the range `[0, rank(shape))`.\n- indices: 2-D tensor represents the indices of the sparse tensor.\n- values: 1-D tensor represents the values of the sparse tensor.\n- shape: 1-D. tensor represents the shape of the sparse tensor. output indices: A list of 1-D tensors represents the indices of the output sparse tensors.\n- num_split: The number of ways to split.\n\n\u003cbr /\u003e\n\nReturns:\n\n- `OutputList` output_indices\n- `OutputList` output_values: A list of 1-D tensors represents the values of the output sparse tensors.\n- `OutputList` output_shape: A list of 1-D tensors represents the shape of the output sparse tensors.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [SparseSplit](#classtensorflow_1_1ops_1_1_sparse_split_1a321e452a28531c13e1804a67073d0d86)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` split_dim, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` indices, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` values, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` shape, int64 num_split)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_sparse_split_1a2974c5fbf83913d7d9f9efaad3748136) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output_indices](#classtensorflow_1_1ops_1_1_sparse_split_1aa34695e1d3350589e31496300ce37439) | `::`[tensorflow::OutputList](/versions/r1.15/api_docs/cc/group/core#group__core_1gab449e6a3abd500c2f4ea93f9e89ba96c) |\n| [output_shape](#classtensorflow_1_1ops_1_1_sparse_split_1aaadf678ffb2ceae9b4a3a71e743c04e4) | `::`[tensorflow::OutputList](/versions/r1.15/api_docs/cc/group/core#group__core_1gab449e6a3abd500c2f4ea93f9e89ba96c) |\n| [output_values](#classtensorflow_1_1ops_1_1_sparse_split_1a16af03b2decbe6d8c2b506f3e48dca4a) | `::`[tensorflow::OutputList](/versions/r1.15/api_docs/cc/group/core#group__core_1gab449e6a3abd500c2f4ea93f9e89ba96c) |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output_indices\n\n```scdoc\n::tensorflow::OutputList output_indices\n``` \n\n### output_shape\n\n```scdoc\n::tensorflow::OutputList output_shape\n``` \n\n### output_values\n\n```scdoc\n::tensorflow::OutputList output_values\n``` \n\nPublic functions\n----------------\n\n### SparseSplit\n\n```gdscript\n SparseSplit(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input split_dim,\n ::tensorflow::Input indices,\n ::tensorflow::Input values,\n ::tensorflow::Input shape,\n int64 num_split\n)\n```"]]