Google I/O에 참여해 주셔서 감사합니다. 주문형 모든 세션 보기 주문형 시청

tensorflow :: ops :: AsString

#include <string_ops.h>

주어진 텐서의 각 항목을 문자열로 변환합니다.

요약

많은 숫자 유형과 부울을 지원합니다.

유니 코드의 경우 [ https://www.tensorflow.org/tutorials/representation/unicode ] (유니 코드 텍스트 작업) 자습서를 참조하세요.

인수 :

선택적 속성 ( Attrs 참조) :

  • precision : 부동 소수점 숫자에 사용할 십진 후 정밀도. 정밀도> -1 인 경우에만 사용됩니다.
  • 과학 : 부동 소수점 숫자에 과학적 표기법을 사용합니다.
  • shortest : 부동 소수점 숫자에 대해 가장 짧은 표현 (과학 또는 표준)을 사용합니다.
  • 폭 : 패드는 이 폭 숫자 - 진수 사전. 부동 소수점과 정수 모두에 적용됩니다. 너비> -1 인 경우에만 사용됩니다.
  • 채우기 : 너비> -1 인 경우 채울 값입니다. 비어 있으면 공백으로 채 웁니다. 또 다른 일반적인 값은 '0'입니다. 문자열은 1 자보다 길 수 없습니다.

보고:

생성자와 소멸자

AsString (const :: tensorflow::Scope & scope, :: tensorflow::Input input)
AsString (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const AsString::Attrs & attrs)

공용 속성

operation
output

공공 기능

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

공개 정적 함수

Fill (StringPiece x)
Precision (int64 x)
Scientific (bool x)
Shortest (bool x)
Width (int64 x)

구조체

tensorflow :: ops :: AsString :: Attrs

AsString에 대한 선택적 속성 설정자.

공용 속성

조작

Operation operation

산출

::tensorflow::Output output

공공 기능

AsString

 AsString(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

AsString

 AsString(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const AsString::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const 

공개 정적 함수

가득 따르다

Attrs Fill(
  StringPiece x
)

정도

Attrs Precision(
  int64 x
)

과학

Attrs Scientific(
  bool x
)

최단

Attrs Shortest(
  bool x
)

Attrs Width(
  int64 x
)