PlaceholderWithDefault


tensorflow C++ API

tensorflow::ops::PlaceholderWithDefault

A placeholder op that passes through input when its output is not fed.


Summary

Arguments:

  • scope: A Scope object
  • input: The default value to produce when output is not fed.
  • shape: The (possibly partial) shape of the tensor.

Returns:

  • Output: A placeholder tensor that defaults to input if it is not fed.

PlaceholderWithDefault block

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

Argument:

  • Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
  • Input input: The default value to produce when output is not fed.
  • PartialTensorShape shape: The (possibly partial) shape of the tensor.

Output:

  • Output output : Output object of PlaceholderWithDefault class object.

Result:

  • std::vector(Tensor) result_output: A placeholder tensor that defaults to input if it is not fed.

Using Method

※ placeholder에 input값을 넣어서 feedtype블럭을 사용하지 않고도 초기화를 할 수 있다. 다른 연산에서 나온 output값을 input에 연결하여 다른 블럭들에 사용 할 수 있다.

results matching ""

    No results matching ""