Assert
tensorflow C++ API
Asserts that the given condition is true.
Summary
Ifcondition
evaluates to false, print the list of tensors indata
.summarize
determines how many entries of the tensors to print.
Arguments:
- scope: A Scope object
- condition: The condition to evaluate.
- data: The tensors to print out when condition is false.
Optional attributes (seeAttrs
):
- summarize: Print this many entries of each tensor.
Returns:
- the created
Operation
Assert block
Source link : https://github.com/EXPNUNI/enuSpace-Tensorflow/blob/master/enuSpaceTensorflow/tf_logging_ops.cpp
Argument:
- Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
- Input condition : connect condition node (true or false).
- InputList data : connect data node (InputList).
- Assert::Attrs attrs : Set attribute property.
Return:
- Operation operation : Operation object of Assert class object.
Result:
- std::vector<Tensor> result_operation : operation not update value.
Using Method
Condition 의 값이 FALSE인경우, 입력된 데이터의 메세지의 값을 출력하며, TRUE의 값인 경우에는 메세지를 출력하지 않음.