Google I/O में ट्यूनिंग के लिए धन्यवाद। मांग पर सभी सत्र देखें मांग पर देखें

टेंसरफ़्लो :: ऑप्स :: कम करें

#include <string_ops.h>

दिए गए आयामों में एक तार Tensor सम्मिलित करता है।

सारांश

स्ट्रिंग दिया स्ट्रिंग में आयामों के बीच में शामिल होने की गणना करता है टेन्सर आकार के [\\(d_0, d_1, ..., d_{n-1}\\)] । दिए गए विभाजक के साथ इनपुट स्ट्रिंग्स को जोड़कर बनाया गया एक नया टेंसर लौटाता है (डिफ़ॉल्ट: खाली स्ट्रिंग)। नकारात्मक सूचक अंत से पीछे की ओर गिने जाते हैं, -1 n - 1 समतुल्य होते हैं। यदि सूचकांक निर्दिष्ट नहीं हैं, तो 0 से n - 1 से शुरू होने वाले सभी आयामों में शामिल हो जाता है।

उदाहरण के लिए:

# tensor `a` is [["a", "b"], ["c", "d"]]
tf.reduce_join(a, 0) ==> ["ac", "bd"]
tf.reduce_join(a, 1) ==> ["ab", "cd"]
tf.reduce_join(a, -2) = tf.reduce_join(a, 0) ==> ["ac", "bd"]
tf.reduce_join(a, -1) = tf.reduce_join(a, 1) ==> ["ab", "cd"]
tf.reduce_join(a, 0, keep_dims=True) ==> [["ac", "bd"]]
tf.reduce_join(a, 1, keep_dims=True) ==> [["ab"], ["cd"]]
tf.reduce_join(a, 0, separator=".") ==> ["a.c", "b.d"]
tf.reduce_join(a, [0, 1]) ==> "acbd"
tf.reduce_join(a, [1, 0]) ==> "abcd"
tf.reduce_join(a, []) ==> [["a", "b"], ["c", "d"]]
tf.reduce_join(a) = tf.reduce_join(a, [1, 0]) ==> "abcd"

तर्क:

  • गुंजाइश: एक स्कोप ऑब्जेक्ट
  • आदानों: इनपुट शामिल होने के लिए। सभी कम किए गए सूचकांकों में गैर-शून्य आकार होना चाहिए।
  • कमी_ बिंदुएँ: आयाम कम करने के लिए। निर्दिष्ट क्रम में आयाम कम हो जाते हैं। reduction_indices को reduction_indices करना_सिद्धांत [n-1, n-2, ..., 0] पास करने के बराबर है। -n से -1 तक नकारात्मक सूचक समर्थित हैं।

वैकल्पिक विशेषताएँ ( Attrs देखें):

  • Keep_dims: यदि True , तो लंबाई 1 साथ कम आयाम बनाए रखें।
  • विभाजक: जुदाई का उपयोग करते समय।

रिटर्न:

  • Output : कम आयामों के साथ इनपुट के आकार के बराबर है या keep_dims आधार पर 1 पर सेट किया गया है।

कंस्ट्रक्टर और डिस्ट्रक्टर्स

ReduceJoin (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input reduction_indices)
ReduceJoin (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input reduction_indices, const ReduceJoin::Attrs & attrs)

सार्वजनिक विशेषताएँ

operation
output

सार्वजनिक कार्य

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

सार्वजनिक स्थैतिक कार्य

KeepDims (bool x)
Separator (StringPiece x)

संरचनाएं

टेंसोफ़्लो :: ऑप्स :: रिड्यूसइन :: एट्र्स

वैकल्पिक विशेषता ReduceJoin के लिए बसती है

सार्वजनिक विशेषताएँ

ऑपरेशन

Operation operation

उत्पादन

::tensorflow::Output output

सार्वजनिक कार्य

कम करें

 ReduceJoin(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input inputs,
  ::tensorflow::Input reduction_indices
)

कम करें

 ReduceJoin(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input inputs,
  ::tensorflow::Input reduction_indices,
  const ReduceJoin::Attrs & attrs
)

नोड

::tensorflow::Node * node() const 

ऑपरेटर :: टेंसरफ़्लो :: इनपुट

 operator::tensorflow::Input() const 
है

ऑपरेटर :: टेंसोफ़्लो :: आउटपुट

 operator::tensorflow::Output() const 

सार्वजनिक स्थैतिक कार्य

रखवाले

Attrs KeepDims(
  bool x
)

सेपरेटर

Attrs Separator(
  StringPiece x
)