Abs


tensorflow C++ API

tensorflow::ops::Abs

Computes the absolute value of a tensor.


Summary

Given a tensorx, this operation returns a tensor containing the absolute value of each element inx. For example, if x is an input element and y is an output element, this operation computes \(y = |x|\).

Arguments:

Returns:

Constructor

  • Abs(const ::tensorflow::Scope & scope, ::tensorflow::Input x).

Public attributes

  • tensorflow::Output y.

Abs block

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

Argument:

  • Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
  • Input x :connect Input node.

Return:

  • Output y : Output object of Abs class object.

Result:

  • std::vector(Tensor) product_result : Returned object of executed result by calling session.

Using Method

results matching ""

    No results matching ""