Operation


tensorflow C++ API

tensorflow::Operation

Represents a node in the computation graph.


Public functions

Operation

 Operation()

Operation

 Operation(
  Node *n
)

hash

uint64 hash(
  int32 index
) const

input

Output input(
  int32 i
) const

input_type

DataType input_type(
  int32 o
) const

node

Node * node() const

num_inputs

int32 num_inputs() const

num_outputs

int32 num_outputs() const

operator==

bool operator==(
  const Operation & other
) const

output

Output output(
  int32 i
) const

output_type

DataType output_type(
  int32 o
) const

Operation block

Source link :https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_core.cpp

Argument:

  • Operation operation: Create an operation by concatenating the output from the function.

Output:

  • Operation output: Returns the operation

UsingMethod

※ Add블럭의 결과물을 operation에 연결한뒤 다시 output 블럭에 연결하여 ClientSession에 연결하여 실행한 화면

※ 참고로 Operation은 ClientSession의 run(run_outputs) 핀에 연결할 수 있으나 결과값은 나오지 않는다.

results matching ""

    No results matching ""