Cast


tensorflow C++ API

tensorflow::ops::Cast

Cast x of type SrcT to y of DstT.


Summary

Arguments:

Returns:

Constructor

  • Cast(const ::tensorflow::Scope & scope, ::tensorflow::Input x, DataType DstT).

Public attributes

  • tensorflow::Output y.

Cast 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.
  • DataType DstT:Input DatType in value. ex) DT_INT32, DT_INT64, DT_DOUBLE.

Return:

  • Output y : Output object of Cast class object.

Result:

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

Using Method

results matching ""

    No results matching ""