GraphOperation
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Graph
düğüm olarak eklenen bir Operation
uygulanması.
GraphOperation örnekleri yalnızca parçası oldukları Graph
geçerli olduğu sürece geçerlidir. Dolayısıyla Graph.close()
çağrılmışsa GraphOperation örneğindeki yöntemler IllegalStateException
ile başarısız olabilir.
GraphOperation örnekleri değiştirilemez ve iş parçacığı açısından güvenlidir.
Genel Yöntemler
boolean | |
int | |
int | inputListLength (Dize adı) Bu işlem için verilen Tensör giriş listesinin boyutunu döndürür. |
Sicim | isim () İşlemin tam adını döndürür. |
int | sayıÇıkışlar () Bu işlem tarafından üretilen tensörlerin sayısını döndürür. |
<T> Çıkış <T> | çıktı (int idx) Bu işlem tarafından üretilen tensörlerden birine sembolik bir tutamaç döndürür. |
Çıkış[] <?> | çıktıListesi (int idx, int uzunluk) Bu işlem tarafından üretilen tensörlerin listesine ait sembolik tutamaçları döndürür. |
int | OutputListLength (Dize adı) Bu işlem tarafından üretilen Tensörler listesinin boyutunu döndürür. |
Sicim | |
Sicim | tip () İşlemin türünü, yani işlem tarafından gerçekleştirilen hesaplamanın adını döndürür. |
Kalıtsal Yöntemler
Java.lang.Object sınıfından boolean | eşittir (Nesne arg0) |
son Sınıf<?> | getClass () |
int | hash kodu () |
son boşluk | bildir () |
son boşluk | tümünü bildir () |
Sicim | toString () |
son boşluk | bekle (uzun arg0, int arg1) |
son boşluk | bekle (uzun arg0) |
son boşluk | Beklemek () |
org.tensorflow.Operation arayüzünden soyut int | inputListLength (Dize adı) Bu işlem için verilen Tensör giriş listesinin boyutunu döndürür. |
soyut Dize | isim () İşlemin tam adını döndürür. |
soyut int | sayıÇıkışlar () Bu işlem tarafından üretilen tensörlerin sayısını döndürür. |
özet <T> Çıkış <T> | çıktı (int idx) Bu işlem tarafından üretilen tensörlerden birine sembolik bir tutamaç döndürür. |
özet Çıktı[] <?> | çıktıListesi (int idx, int uzunluk) Bu işlem tarafından üretilen tensörlerin listesine ait sembolik tutamaçları döndürür. |
soyut int | OutputListLength (Dize adı) Bu işlem tarafından üretilen Tensörler listesinin boyutunu döndürür. |
soyut Dize | tip () İşlemin türünü, yani işlem tarafından gerçekleştirilen hesaplamanın adını döndürür. |
Genel Yöntemler
genel boole eşittir (Object o)
Bu işlem için verilen Tensör giriş listesinin boyutunu döndürür.
Bir Operasyonun, her biri tek bir tensör veya tensörlerin bir listesini içeren birden fazla adlandırılmış girişi vardır. Bu yöntem, işlemin belirli bir adlandırılmış girişi için tensör listesinin boyutunu döndürür.
Parametreler
isim | Bu işleme giriş yapan tensörlerin (çok sayıda olabilir) listesinin tanımlayıcısı. |
---|
İadeler
- bu adlandırılmış giriş tarafından üretilen Tensörler listesinin boyutu.
genel Dize adı ()
İşlemin tam adını döndürür.
public int numOutputs ()
Bu işlem tarafından üretilen tensörlerin sayısını döndürür.
genel Çıkış <T> çıkışı (int idx)
Bu işlem tarafından üretilen tensörlerden birine sembolik bir tutamaç döndürür.
Uyarı: Tensörün türünün T ile eşleşip eşleşmediğini kontrol etmez. Bu yöntemin, örneğin operation.<Integer>output(0)
Parametreler
kimlik | Bu işlemle üretilen çıktılar arasındaki çıktının endeksi. |
---|
public Output[] <?> çıktıListesi (int idx, int uzunluk)
Bu işlem tarafından üretilen tensörlerin listesine ait sembolik tutamaçları döndürür.
Parametreler
kimlik | listenin ilk tensörünün indeksi |
---|
uzunluk | listedeki tensör sayısı |
---|
public int çıktıListLength (Dize adı)
Bu işlem tarafından üretilen Tensörler listesinin boyutunu döndürür.
Bir İşlemin, her biri tek bir tensör veya bir tensör listesi üreten birden fazla adlandırılmış çıkışı vardır. Bu yöntem, işlemin belirli bir adlandırılmış çıktısı için tensör listesinin boyutunu döndürür.
Parametreler
isim | Bu işlem tarafından üretilen tensör listesinin tanımlayıcısı (bunlardan çok sayıda olabilir). |
---|
İadeler
- bu adlandırılmış çıktı tarafından üretilen Tensörler listesinin boyutu.
public String toString ()
genel Dize türü ()
İşlemin türünü, yani işlem tarafından gerçekleştirilen hesaplamanın adını döndürür.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır. İçeriklerin bir bölümü NumPy lisansı kapsamındadır.
Son güncelleme tarihi: 2025-07-27 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-27 UTC."],[],[],null,["# GraphOperation\n\npublic final class **GraphOperation** \nImplementation for an [Operation](/versions/r2.13/api_docs/java/org/tensorflow/Operation) added as a node to a [Graph](/versions/r2.13/api_docs/java/org/tensorflow/Graph).\n\nGraphOperation instances are valid only as long as the [Graph](/versions/r2.13/api_docs/java/org/tensorflow/Graph) they are a part of is\nvalid. Thus, if [Graph.close()](/versions/r2.13/api_docs/java/org/tensorflow/Graph#close()) has been invoked, then methods on the GraphOperation\ninstance may fail with an `IllegalStateException`.\n\nGraphOperation instances are immutable and thread-safe.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### Public Methods\n\n|--------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| boolean | [equals](/versions/r2.13/api_docs/java/org/tensorflow/GraphOperation#equals(java.lang.Object))(Object o) |\n| int | [hashCode](/versions/r2.13/api_docs/java/org/tensorflow/GraphOperation#hashCode())() |\n| int | [inputListLength](/versions/r2.13/api_docs/java/org/tensorflow/GraphOperation#inputListLength(java.lang.String))(String name) Returns the size of the given inputs list of Tensors for this operation. |\n| String | [name](/versions/r2.13/api_docs/java/org/tensorflow/GraphOperation#name())() Returns the full name of the Operation. |\n| int | [numOutputs](/versions/r2.13/api_docs/java/org/tensorflow/GraphOperation#numOutputs())() Returns the number of tensors produced by this operation. |\n| \\\u003cT\\\u003e [Output](/versions/r2.13/api_docs/java/org/tensorflow/Output)\\\u003cT\\\u003e | [output](/versions/r2.13/api_docs/java/org/tensorflow/GraphOperation#output(int))(int idx) Returns a symbolic handle to one of the tensors produced by this operation. |\n| [Output\\[\\]](/versions/r2.13/api_docs/java/org/tensorflow/Output)\\\u003c?\\\u003e | [outputList](/versions/r2.13/api_docs/java/org/tensorflow/GraphOperation#outputList(int,%20int))(int idx, int length) Returns symbolic handles to a list of tensors produced by this operation. |\n| int | [outputListLength](/versions/r2.13/api_docs/java/org/tensorflow/GraphOperation#outputListLength(java.lang.String))(String name) Returns the size of the list of Tensors produced by this operation. |\n| String | [toString](/versions/r2.13/api_docs/java/org/tensorflow/GraphOperation#toString())() |\n| String | [type](/versions/r2.13/api_docs/java/org/tensorflow/GraphOperation#type())() Returns the type of the operation, i.e., the name of the computation performed by the operation. |\n\n### Inherited Methods\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface [org.tensorflow.Operation](/versions/r2.13/api_docs/java/org/tensorflow/Operation) \n\n|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract int | [inputListLength](/versions/r2.13/api_docs/java/org/tensorflow/Operation#inputListLength(java.lang.String))(String name) Returns the size of the given inputs list of Tensors for this operation. |\n| abstract String | [name](/versions/r2.13/api_docs/java/org/tensorflow/Operation#name())() Returns the full name of the Operation. |\n| abstract int | [numOutputs](/versions/r2.13/api_docs/java/org/tensorflow/Operation#numOutputs())() Returns the number of tensors produced by this operation. |\n| abstract \\\u003cT\\\u003e [Output](/versions/r2.13/api_docs/java/org/tensorflow/Output)\\\u003cT\\\u003e | [output](/versions/r2.13/api_docs/java/org/tensorflow/Operation#output(int))(int idx) Returns a symbolic handle to one of the tensors produced by this operation. |\n| abstract [Output\\[\\]](/versions/r2.13/api_docs/java/org/tensorflow/Output)\\\u003c?\\\u003e | [outputList](/versions/r2.13/api_docs/java/org/tensorflow/Operation#outputList(int,%20int))(int idx, int length) Returns symbolic handles to a list of tensors produced by this operation. |\n| abstract int | [outputListLength](/versions/r2.13/api_docs/java/org/tensorflow/Operation#outputListLength(java.lang.String))(String name) Returns the size of the list of Tensors produced by this operation. |\n| abstract String | [type](/versions/r2.13/api_docs/java/org/tensorflow/Operation#type())() Returns the type of the operation, i.e., the name of the computation performed by the operation. |\n\nPublic Methods\n--------------\n\n#### public boolean\n**equals**\n(Object o)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| o | |\n|---|---|\n\n#### public int\n**hashCode**\n()\n\n\u003cbr /\u003e\n\n#### public int\n**inputListLength**\n(String name)\n\nReturns the size of the given inputs list of Tensors for this operation.\n\nAn Operation has multiple named inputs, each of which contains either a single tensor or a\nlist of tensors. This method returns the size of the list of tensors for a specific named input\nof the operation.\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| name | identifier of the list of tensors (of which there may be many) inputs to this operation. |\n|------|------------------------------------------------------------------------------------------|\n\n##### Returns\n\n- the size of the list of Tensors produced by this named input. \n\n#### public String\n**name**\n()\n\nReturns the full name of the Operation. \n\n#### public int\n**numOutputs**\n()\n\nReturns the number of tensors produced by this operation. \n\n#### public [Output](/versions/r2.13/api_docs/java/org/tensorflow/Output)\\\u003cT\\\u003e\n**output**\n(int idx)\n\nReturns a symbolic handle to one of the tensors produced by this operation.\n\nWarning: Does not check that the type of the tensor matches T. It is recommended to call\nthis method with an explicit type parameter rather than letting it be inferred, e.g. `operation.<Integer>output(0)`\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| idx | The index of the output among the outputs produced by this operation. |\n|-----|-----------------------------------------------------------------------|\n\n#### public [Output\\[\\]](/versions/r2.13/api_docs/java/org/tensorflow/Output)\\\u003c?\\\u003e\n**outputList**\n(int idx, int length)\n\nReturns symbolic handles to a list of tensors produced by this operation. \n\n##### Parameters\n\n| idx | index of the first tensor of the list |\n| length | number of tensors in the list |\n|--------|---------------------------------------|\n\n##### Returns\n\n- array of `Output` \n\n#### public int\n**outputListLength**\n(String name)\n\nReturns the size of the list of Tensors produced by this operation.\n\nAn Operation has multiple named outputs, each of which produces either a single tensor or a\nlist of tensors. This method returns the size of the list of tensors for a specific named\noutput of the operation.\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| name | identifier of the list of tensors (of which there may be many) produced by this operation. |\n|------|--------------------------------------------------------------------------------------------|\n\n##### Returns\n\n- the size of the list of Tensors produced by this named output. \n\n#### public String\n**toString**\n()\n\n\u003cbr /\u003e\n\n#### public String\n**type**\n()\n\nReturns the type of the operation, i.e., the name of the computation performed by the\noperation."]]