tensorflow:: ops:: AsString:: Attrs
#include <string_ops.h>AsStringのオプション属性セッター。
まとめ
公開属性 | |
|---|---|
fill_ = "" | StringPiece |
precision_ = -1 | int64 |
scientific_ = false | bool |
shortest_ = false | bool |
width_ = -1 | int64 |
公的機能 | |
|---|---|
Fill (StringPiece x) | TF_MUST_USE_RESULT Attrs幅が-1より大きい場合にパディングする値。 |
Precision (int64 x) | TF_MUST_USE_RESULT Attrs浮動小数点数に使用する小数点以下の精度。 |
Scientific (bool x) | TF_MUST_USE_RESULT Attrs浮動小数点数には科学的記数法を使用してください。 |
Shortest (bool x) | TF_MUST_USE_RESULT Attrs浮動小数点数には、最短表現(科学表記または標準表記のいずれか)を使用してください。 |
Width (int64 x) | TF_MUST_USE_RESULT Attrs小数点以下の桁数をこの幅に埋めてください。 |
公開属性
埋める_
StringPiece tensorflow::ops::AsString::Attrs::fill_ = ""
精度_
int64 tensorflow::ops::AsString::Attrs::precision_ = -1
科学的_
bool tensorflow::ops::AsString::Attrs::scientific_ = false
最短_
bool tensorflow::ops::AsString::Attrs::shortest_ = false
幅_
int64 tensorflow::ops::AsString::Attrs::width_ = -1
公的機能
埋める
TF_MUST_USE_RESULT Attrs tensorflow::ops::AsString::Attrs::Fill( StringPiece x )
幅が-1より大きい場合にパディングする値。
空欄の場合は、スペースで埋められます。その他の一般的な値は「0」です。文字列は1文字より長くすることはできません。
デフォルトは ""
精度
TF_MUST_USE_RESULT Attrs tensorflow::ops::AsString::Attrs::Precision( int64 x )
浮動小数点数に使用する小数点以下の精度。
精度が-1より大きい場合にのみ使用されます。
デフォルト値は-1です。
科学的
TF_MUST_USE_RESULT Attrs tensorflow::ops::AsString::Attrs::Scientific( bool x )
浮動小数点数には科学的記数法を使用してください。
デフォルトはfalse
最短
TF_MUST_USE_RESULT Attrs tensorflow::ops::AsString::Attrs::Shortest( bool x )
浮動小数点数には、最短表現(科学表記または標準表記のいずれか)を使用してください。
デフォルトはfalse