টেনসরফ্লো :: অপস:: সিরিয়ালাইজ ম্যানিস্পার্স
#include <sparse_ops.h> একটি N -মিনিব্যাচ SparseTensor একটি [N, 3] Tensor অবজেক্টে সিরিয়ালাইজ করুন।
সারাংশ
SparseTensor অবশ্যই R র্যাঙ্ক 1-এর বেশি হতে হবে এবং প্রথম মাত্রাটিকে মিনিব্যাচের মাত্রা হিসাবে বিবেচনা করা হয়। SparseTensor এর উপাদানগুলিকে এই প্রথম মাত্রার ক্রমবর্ধমান ক্রম অনুসারে সাজাতে হবে। সিরিয়ালাইজড SparseTensor অবজেক্টগুলি serialized_sparse প্রতিটি সারিতে যাচ্ছে তাদের র্যাঙ্ক R-1 হবে।
মিনিব্যাচের আকার N sparse_shape[0] থেকে বের করা হয়।
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
- sparse_index: 2-D. মিনিব্যাচ
SparseTensorindices। - sparse_values: 1-D. মিনিব্যাচ
SparseTensorvalues। - sparse_shape: 1-D. মিনিব্যাচ
SparseTensorshape।
ঐচ্ছিক বৈশিষ্ট্য (দেখুন Attrs ):
- out_type: সিরিয়ালাইজেশনের জন্য ব্যবহার করা
dtype; সমর্থিত প্রকারগুলি হলstring(ডিফল্ট) এবংvariant।
রিটার্ন:
-
Output: সিরিয়ালাইজড_স্পার্স টেনসর।
কনস্ট্রাক্টর এবং ডেস্ট্রাক্টর | |
|---|---|
SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape) | |
SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape, const SerializeManySparse::Attrs & attrs) |
পাবলিক বৈশিষ্ট্য | |
|---|---|
operation | |
serialized_sparse | |
পাবলিক ফাংশন | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
পাবলিক স্ট্যাটিক ফাংশন | |
|---|---|
OutType (DataType x) | |
কাঠামো | |
|---|---|
| tensorflow:: ops:: SerializeManySparse:: Attrs | SerializeManySparse- এর জন্য ঐচ্ছিক বৈশিষ্ট্য নির্ধারণকারী। |
পাবলিক বৈশিষ্ট্য
অপারেশন
Operation operation
serialized_sparse
::tensorflow::Output serialized_sparse
পাবলিক ফাংশন
সিরিয়ালাইজ ম্যানিস্পার্স
SerializeManySparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape )
সিরিয়ালাইজ ম্যানিস্পার্স
SerializeManySparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape, const SerializeManySparse::Attrs & attrs )
নোড
::tensorflow::Node * node() const
অপারেটর::টেনসরফ্লো::ইনপুট
operator::tensorflow::Input() const
অপারেটর::টেনসরফ্লো::আউটপুট
operator::tensorflow::Output() const
পাবলিক স্ট্যাটিক ফাংশন
আউটটাইপ
Attrs OutType( DataType x )