ExecutionEnvironment
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
EagerSession |
An environment for executing TensorFlow operations eagerly. |
Graph |
A data flow graph representing a TensorFlow computation. |
|
Defines an environment for creating and executing TensorFlow Operation
s.
Public Methods
public
abstract
OperationBuilder
opBuilder
(String type, String name)
Parameters
type |
of the Operation (i.e., identifies the computation to be performed) |
name |
to refer to the created Operation in this environment scope. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-03-27 UTC.
[null,null,["Last updated 2023-03-27 UTC."],[],[],null,["# ExecutionEnvironment\n\npublic interface **ExecutionEnvironment** \n\n|---|---|---|\n| Known Indirect Subclasses [EagerSession](/versions/r2.12/api_docs/java/org/tensorflow/EagerSession), [Graph](/versions/r2.12/api_docs/java/org/tensorflow/Graph) |---------------------------------------------------------------------------|-------------------------------------------------------------| | [EagerSession](/versions/r2.12/api_docs/java/org/tensorflow/EagerSession) | An environment for executing TensorFlow operations eagerly. | | [Graph](/versions/r2.12/api_docs/java/org/tensorflow/Graph) | A data flow graph representing a TensorFlow computation. | |||\n\nDefines an environment for creating and executing TensorFlow [Operation](/versions/r2.12/api_docs/java/org/tensorflow/Operation)s. \n\n### Public Methods\n\n|--------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [OperationBuilder](/versions/r2.12/api_docs/java/org/tensorflow/OperationBuilder) | [opBuilder](/versions/r2.12/api_docs/java/org/tensorflow/ExecutionEnvironment#opBuilder(java.lang.String,%20java.lang.String))(String type, String name) Returns a builder to create a new [Operation](/versions/r2.12/api_docs/java/org/tensorflow/Operation). |\n\nPublic Methods\n--------------\n\n#### public abstract [OperationBuilder](/versions/r2.12/api_docs/java/org/tensorflow/OperationBuilder)\n**opBuilder**\n(String type, String name)\n\nReturns a builder to create a new [Operation](/versions/r2.12/api_docs/java/org/tensorflow/Operation). \n\n##### Parameters\n\n| type | of the Operation (i.e., identifies the computation to be performed) |\n| name | to refer to the created Operation in this environment scope. |\n|------|---------------------------------------------------------------------|\n\n##### Returns\n\n- an [OperationBuilder](/versions/r2.12/api_docs/java/org/tensorflow/OperationBuilder) to create an Operation when [OperationBuilder.build()](/versions/r2.12/api_docs/java/org/tensorflow/OperationBuilder#build()) is invoked. If [OperationBuilder.build()](/versions/r2.12/api_docs/java/org/tensorflow/OperationBuilder#build()) is not invoked, then some resources may leak."]]