Mod


tensorflow C++ API

tensorflow::ops::Mod

Returns element-wise remainder of division.

Summary

This emulates C semantics in that

the result here is consistent with a truncating divide. E.g.truncate(x / y) * y + truncate_mod(x, y) = x.

NOTE:Modsupports broadcasting. More about broadcasting here

Arguments:

Returns:

Constructor

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

Public attributes

  • tensorflow::Output z.

Mod 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.
  • Input y:connect Input node.

Return:

  • Output z: Output object of Mod class object.

Result:

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

Using Method

results matching ""

    No results matching ""