Op

सार्वजनिक इंटरफ़ेस ऑप
ज्ञात अप्रत्यक्ष उपवर्ग

A logical unit of computation.

Op implementations provide a strongly typed API for building and executing operations without the use of literals and indexes, as required in internal classes like Operation .

Ops can be classified under two categories:

  • Raw ops target a single TensorFlow operation and are, in most cases, generated automatically from the OpDef proto definitions exposed by TensorFlow runtime library.
  • Composite ops execute a series of other ops to accomplish a task logically presented as a single unit of computation.

सार्वजनिक तरीके

सार निष्पादन वातावरण
एनवी ()
उस निष्पादन वातावरण को लौटाएँ जिसमें यह ऑप बनाया गया था।
सार संचालन
ऑप ()
गणना की इस इकाई को एकल Operation के रूप में लौटाएँ।

सार्वजनिक तरीके

public abstract ExecutionEnvironment env ()

उस निष्पादन वातावरण को लौटाएँ जिसमें यह ऑप बनाया गया था।

public abstract Operation op ()

गणना की इस इकाई को एकल Operation के रूप में लौटाएँ।

एक raw ऑप के लिए, लौटाया गया मान इस ऑप द्वारा लपेटे गए TensorFlow ऑपरेशन के अनुरूप है।

एक समग्र ऑप के लिए, लौटाया गया मान आम तौर पर एक श्रृंखला में शुरू किए गए अंतिम ऑपरेशन या गणना की एकल इकाई के रूप में एक या अधिक ऑपरेशनों को समूहीकृत करने वाले NoOp से मेल खाता है।

रिटर्न