Home
last modified time | relevance | path

Searched refs:ToInt (Results 1 – 25 of 39) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Druntime_conv2d_mkl.cc31 int ToInt(int64 input) { in ToInt() function
68 memory::dims conv1_src_dim = {ToInt(input_batch), ToInt(input_channels), in MKLConvImpl()
69 ToInt(input_rows), ToInt(input_cols)}; in MKLConvImpl()
70 memory::dims conv1_weights_dim = {ToInt(kernel_filters), in MKLConvImpl()
71 ToInt(kernel_channels), ToInt(kernel_rows), in MKLConvImpl()
72 ToInt(kernel_cols)}; in MKLConvImpl()
73 memory::dims conv1_dst_dim = {ToInt(input_batch), ToInt(kernel_filters), in MKLConvImpl()
74 ToInt(output_rows), ToInt(output_cols)}; in MKLConvImpl()
75 memory::dims conv1_strides = {ToInt(row_stride), ToInt(col_stride)}; in MKLConvImpl()
77 memory::dims conv1_dilates = {ToInt(rhs_row_dilation - 1), in MKLConvImpl()
[all …]
/external/angle/third_party/abseil-cpp/absl/strings/internal/str_format/
Darg_test.cc43 TEST_F(FormatArgImplTest, ToInt) { in TEST_F() argument
45 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(1), &out)); in TEST_F()
47 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(-1), &out)); in TEST_F()
50 FormatArgImplFriend::ToInt(FormatArgImpl(static_cast<char>(64)), &out)); in TEST_F()
52 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
55 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
61 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
67 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(false), &out)); in TEST_F()
69 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(true), &out)); in TEST_F()
71 EXPECT_FALSE(FormatArgImplFriend::ToInt(FormatArgImpl(2.2), &out)); in TEST_F()
[all …]
Darg.h284 static bool ToInt(Arg arg, int* out) {
446 static bool ToInt(Data arg, int* out, std::true_type /* is_integral */,
453 static bool ToInt(Data arg, int* out, std::false_type,
461 static bool ToInt(Data, int*, std::false_type, std::false_type) {
470 return ToInt<T>(arg, static_cast<int*>(out), std::is_integral<T>(),
Dbind.cc35 return FormatArgImplFriend::ToInt(pack[position - 1], value); in BindFromPosition()
/external/libtextclassifier/abseil-cpp/absl/strings/internal/str_format/
Darg_test.cc37 TEST_F(FormatArgImplTest, ToInt) { in TEST_F() argument
39 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(1), &out)); in TEST_F()
41 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(-1), &out)); in TEST_F()
44 FormatArgImplFriend::ToInt(FormatArgImpl(static_cast<char>(64)), &out)); in TEST_F()
46 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
49 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
55 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
61 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(false), &out)); in TEST_F()
63 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(true), &out)); in TEST_F()
65 EXPECT_FALSE(FormatArgImplFriend::ToInt(FormatArgImpl(2.2), &out)); in TEST_F()
[all …]
Darg.h262 static bool ToInt(Arg arg, int* out) {
424 static bool ToInt(Data arg, int* out, std::true_type /* is_integral */,
431 static bool ToInt(Data arg, int* out, std::false_type,
439 static bool ToInt(Data, int*, std::false_type, std::false_type) {
448 return ToInt<T>(arg, static_cast<int*>(out), std::is_integral<T>(),
Dbind.cc21 return FormatArgImplFriend::ToInt(pack[position - 1], value); in BindFromPosition()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/
Darg_test.cc37 TEST_F(FormatArgImplTest, ToInt) { in TEST_F() argument
39 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(1), &out)); in TEST_F()
41 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(-1), &out)); in TEST_F()
44 FormatArgImplFriend::ToInt(FormatArgImpl(static_cast<char>(64)), &out)); in TEST_F()
46 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
49 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
55 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
61 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(false), &out)); in TEST_F()
63 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(true), &out)); in TEST_F()
65 EXPECT_FALSE(FormatArgImplFriend::ToInt(FormatArgImpl(2.2), &out)); in TEST_F()
[all …]
Darg.h262 static bool ToInt(Arg arg, int* out) {
424 static bool ToInt(Data arg, int* out, std::true_type /* is_integral */,
431 static bool ToInt(Data arg, int* out, std::false_type,
439 static bool ToInt(Data, int*, std::false_type, std::false_type) {
448 return ToInt<T>(arg, static_cast<int*>(out), std::is_integral<T>(),
Dbind.cc21 return FormatArgImplFriend::ToInt(pack[position - 1], value); in BindFromPosition()
/external/openscreen/third_party/abseil/src/absl/strings/internal/str_format/
Darg_test.cc43 TEST_F(FormatArgImplTest, ToInt) { in TEST_F() argument
45 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(1), &out)); in TEST_F()
47 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(-1), &out)); in TEST_F()
50 FormatArgImplFriend::ToInt(FormatArgImpl(static_cast<char>(64)), &out)); in TEST_F()
52 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
55 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
61 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
67 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(false), &out)); in TEST_F()
69 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(true), &out)); in TEST_F()
71 EXPECT_FALSE(FormatArgImplFriend::ToInt(FormatArgImpl(2.2), &out)); in TEST_F()
[all …]
Darg.h276 static bool ToInt(Arg arg, int* out) {
438 static bool ToInt(Data arg, int* out, std::true_type /* is_integral */,
445 static bool ToInt(Data arg, int* out, std::false_type,
453 static bool ToInt(Data, int*, std::false_type, std::false_type) {
462 return ToInt<T>(arg, static_cast<int*>(out), std::is_integral<T>(),
Dbind.cc35 return FormatArgImplFriend::ToInt(pack[position - 1], value); in BindFromPosition()
/external/abseil-cpp/absl/strings/internal/str_format/
Darg_test.cc28 TEST_F(FormatArgImplTest, ToInt) { in TEST_F() argument
30 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(1), &out)); in TEST_F()
32 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(-1), &out)); in TEST_F()
35 FormatArgImplFriend::ToInt(FormatArgImpl(static_cast<char>(64)), &out)); in TEST_F()
37 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
40 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
46 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
52 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(false), &out)); in TEST_F()
54 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(true), &out)); in TEST_F()
56 EXPECT_FALSE(FormatArgImplFriend::ToInt(FormatArgImpl(2.2), &out)); in TEST_F()
[all …]
Darg.h205 static bool ToInt(Arg arg, int* out) {
358 static bool ToInt(Data arg, int* out, std::true_type /* is_integral */,
365 static bool ToInt(Data arg, int* out, std::false_type,
373 static bool ToInt(Data, int*, std::false_type, std::false_type) {
381 return ToInt<T>(arg, static_cast<int*>(out), std::is_integral<T>(),
/external/webrtc/third_party/abseil-cpp/absl/strings/internal/str_format/
Darg_test.cc28 TEST_F(FormatArgImplTest, ToInt) { in TEST_F() argument
30 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(1), &out)); in TEST_F()
32 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(-1), &out)); in TEST_F()
35 FormatArgImplFriend::ToInt(FormatArgImpl(static_cast<char>(64)), &out)); in TEST_F()
37 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
40 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
46 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
52 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(false), &out)); in TEST_F()
54 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(true), &out)); in TEST_F()
56 EXPECT_FALSE(FormatArgImplFriend::ToInt(FormatArgImpl(2.2), &out)); in TEST_F()
[all …]
Darg.h205 static bool ToInt(Arg arg, int* out) {
358 static bool ToInt(Data arg, int* out, std::true_type /* is_integral */,
365 static bool ToInt(Data arg, int* out, std::false_type,
373 static bool ToInt(Data, int*, std::false_type, std::false_type) {
381 return ToInt<T>(arg, static_cast<int*>(out), std::is_integral<T>(),
Dbind.cc21 return FormatArgImplFriend::ToInt(pack[position - 1], value); in BindFromPosition()
/external/fastrpc/src/
Dsmath.c34 static int32 ToInt(int64 a) in ToInt() function
43 return ToInt((int64)a + (int64)b); in smath_Add()
48 return ToInt((int64)a - (int64)b); in smath_Sub()
53 return ToInt((int64)a * (int64)b); in smath_Mul()
/external/llvm-project/clang-tools-extra/clang-tidy/cert/
DStrToNumCheck.cpp40 ToInt, enumerator
53 .Cases("atoi", "atol", ConversionKind::ToInt) in ClassifyConversionFunc()
88 CK = ConversionKind::ToInt; in ClassifyFormatString()
137 case ConversionKind::ToInt: in ClassifyConversionType()
157 case ConversionKind::ToInt: in ClassifyReplacement()
/external/clang/lib/AST/
DASTDiagnostic.cpp619 void SetIntegerDiff(const llvm::APSInt &FromInt, const llvm::APSInt &ToInt, in SetIntegerDiff() argument
627 FlatTree[CurrentNode].ToArgInfo.Val = ToInt; in SetIntegerDiff()
656 Expr *FromExpr, const llvm::APSInt &ToInt, bool IsValidToInt, in SetFromDeclarationAndToIntegerDiff() argument
664 FlatTree[CurrentNode].ToArgInfo.Val = ToInt; in SetFromDeclarationAndToIntegerDiff()
775 void GetIntegerDiff(llvm::APSInt &FromInt, llvm::APSInt &ToInt, in GetIntegerDiff() argument
781 ToInt = FlatTree[ReadNode].ToArgInfo.Val; in GetIntegerDiff()
807 Expr *&FromExpr, llvm::APSInt &ToInt, bool &IsValidToInt, in GetFromDeclarationAndToIntegerDiff() argument
815 ToInt = FlatTree[ReadNode].ToArgInfo.Val; in GetFromDeclarationAndToIntegerDiff()
1207 llvm::APSInt FromInt, ToInt; in DiffNonTypes() local
1215 InitializeNonTypeDiffVariables(Context, ToIter, ToDefaultNonTypeDecl, ToInt, in DiffNonTypes()
[all …]
/external/llvm-project/clang/lib/AST/
DASTDiagnostic.cpp650 void SetIntegerDiff(const llvm::APSInt &FromInt, const llvm::APSInt &ToInt, in SetIntegerDiff() argument
658 FlatTree[CurrentNode].ToArgInfo.Val = ToInt; in SetIntegerDiff()
687 Expr *FromExpr, const llvm::APSInt &ToInt, bool IsValidToInt, in SetFromDeclarationAndToIntegerDiff() argument
695 FlatTree[CurrentNode].ToArgInfo.Val = ToInt; in SetFromDeclarationAndToIntegerDiff()
806 void GetIntegerDiff(llvm::APSInt &FromInt, llvm::APSInt &ToInt, in GetIntegerDiff() argument
812 ToInt = FlatTree[ReadNode].ToArgInfo.Val; in GetIntegerDiff()
838 Expr *&FromExpr, llvm::APSInt &ToInt, bool &IsValidToInt, in GetFromDeclarationAndToIntegerDiff() argument
846 ToInt = FlatTree[ReadNode].ToArgInfo.Val; in GetFromDeclarationAndToIntegerDiff()
1247 llvm::APSInt FromInt, ToInt; in DiffNonTypes() local
1255 InitializeNonTypeDiffVariables(Context, ToIter, ToDefaultNonTypeDecl, ToInt, in DiffNonTypes()
[all …]
/external/perfetto/src/traced/probes/ps/
Dprocess_stats_data_source.cc68 inline int ToInt(const std::string& str) { in ToInt() function
223 int tgid = ToInt(ReadProcStatusEntry(proc_status, "Tgid:")); in WriteProcessOrThread()
239 PERFETTO_DCHECK(ToInt(ReadProcStatusEntry(proc_status, "Tgid:")) == pid); in WriteProcess()
242 proc->set_ppid(ToInt(ReadProcStatusEntry(proc_status, "PPid:"))); in WriteProcess()
244 proc->set_uid(ToInt(ReadProcStatusEntry(proc_status, "Uid:"))); in WriteProcess()
424 auto counter = ToInt(oom_score_adj); in WriteAllProcessStats()
/external/tensorflow/tensorflow/compiler/xla/
Dexecutable_run_options.cc33 int64 RunId::ToInt() const { return data_; } in ToInt() function in xla::RunId
Dexecutable_run_options.h61 int64 ToInt() const;

12