L2Loss


tensorflow C++ API

tensorflow::ops::L2Loss

L2 Loss.


Summary

Computes half the L2 norm of a tensor without thesqrt:

output = sum(t **2)/2

Arguments:

  • scope: A Scope object
  • t: Typically 2-D, but may have any dimensions.

Returns:


L2Loss block

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

Argument:

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

Return:

  • Output output: Output object of L2Loss class object.

Result:

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

Using Method

results matching ""

    No results matching ""