Google I/O-তে টিউন করার জন্য ধন্যবাদ। চাহিদা অনুযায়ী সব সেশন দেখুন চাহিদা অনুযায়ী দেখুন

সেন্সরফ্লো :: অপস :: চামসাম

#include <math_ops.h>

axis সহ বরাবর টেনসর x এর সংযোজিত যোগফলকে গণনা করুন।

সারসংক্ষেপ

ডিফল্টরূপে, এই বিকল্পটি একটি অন্তর্ভুক্ত সিউসাম সম্পাদন করে যার অর্থ ইনপুটটির প্রথম উপাদান আউটপুটটির প্রথম উপাদানটির সাথে সমান:

tf.cumsum([a, b, c])  # => [a, a + b, a + b + c]

সেটিং দ্বারা exclusive করার kwarg True , একটি একচেটিয়া cumsum পরিবর্তে সঞ্চালিত হয়:

tf.cumsum([a, b, c], exclusive=True)  # => [0, a, a + b]

সেটিং দ্বারা reverse থেকে kwarg True , cumsum বিপরীত দিক সঞ্চালিত হয়:

tf.cumsum([a, b, c], reverse=True)  # => [a + b + c, b + c, c]

পৃথক tf.reverse অপ্স ব্যবহার করার চেয়ে এটি আরও দক্ষ।

reverse এবং exclusive কাওয়ার্গগুলিও একত্রিত হতে পারে:

tf.cumsum([a, b, c], exclusive=True, reverse=True)  # => [b + c, c, 0]

যুক্তি:

  • সুযোগ: একটি স্কোপ অবজেক্ট
  • x: একটি Tensor । নিম্নলিখিত float32 একটি হতে হবে: float32 float64 , int64 int32 , uint8 uint16 , int16 int8 , complex64 , complex128 qint8 , quint8 qint8 , quint8 , qint32 quint8 , qint32 quint8 , qint32 quint8 , qint32 quint8 , qint32 , half
  • অক্ষ: টাইপ int32 এর একটি Tensor (ডিফল্ট: 0)। অবশ্যই [-rank(x), rank(x))

Attrs বৈশিষ্ট্য ( Attrs ):

  • একচেটিয়া: যদি True এক্সক্লুসিভ চামসাম সম্পাদন করুন।
  • বিপরীত: একটি bool (ডিফল্ট: মিথ্যা)।

রিটার্নস:

  • Output : আউট টেনসর।

নির্মাণকারী এবং ধ্বংসকারী

Cumsum (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input axis)
Cumsum (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input axis, const Cumsum::Attrs & attrs)

জনসাধারণের গুণাবলী

operation
out

পাবলিক ফাংশন

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

পাবলিক স্ট্যাটিক ফাংশন

Exclusive (bool x)
Reverse (bool x)

স্ট্রাক্টস

টেনসরফ্লো :: অপ্স :: সিউসাম :: অ্যাটার্স

চামসামের জন্যptionচ্ছিক বৈশিষ্ট্যনির্ধারক set

জনসাধারণের গুণাবলী

অপারেশন

Operation operation

আউট

::tensorflow::Output out

পাবলিক ফাংশন

চামসাম

 Cumsum(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input axis
)

চামসাম

 Cumsum(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input axis,
  const Cumsum::Attrs & attrs
)

নোড

::tensorflow::Node * node() const 

অপারেটর :: টেনসরফ্লো :: ইনপুট

 operator::tensorflow::Input() const 

অপারেটর :: টেনসরফ্লো :: আউটপুট

 operator::tensorflow::Output() const 

পাবলিক স্ট্যাটিক ফাংশন

এক্সক্লুসিভ

Attrs Exclusive(
  bool x
)

বিপরীত

Attrs Reverse(
  bool x
)