Searched refs:IsCompatible (Results 1 – 7 of 7) sorted by relevance
125 ASSERT_TRUE(DataType(DataType::DE_BOOL).IsCompatible<bool>()); in TEST_F()126 ASSERT_TRUE(DataType(DataType::DE_UINT8).IsCompatible<uint8_t>()); in TEST_F()127 ASSERT_TRUE(DataType(DataType::DE_INT8).IsCompatible<int8_t>()); in TEST_F()128 ASSERT_TRUE(DataType(DataType::DE_UINT16).IsCompatible<uint16_t>()); in TEST_F()129 ASSERT_TRUE(DataType(DataType::DE_INT16).IsCompatible<int16_t>()); in TEST_F()130 ASSERT_TRUE(DataType(DataType::DE_UINT32).IsCompatible<uint32_t>()); in TEST_F()131 ASSERT_TRUE(DataType(DataType::DE_INT32).IsCompatible<int32_t>()); in TEST_F()132 ASSERT_TRUE(DataType(DataType::DE_UINT64).IsCompatible<uint64_t>()); in TEST_F()133 ASSERT_TRUE(DataType(DataType::DE_INT64).IsCompatible<int64_t>()); in TEST_F()134 ASSERT_TRUE(DataType(DataType::DE_FLOAT32).IsCompatible<float>()); in TEST_F()[all …]
185 template <bool IsCompatible>
176 bool IsCompatible() const { in IsCompatible() function
296 if ((data_ != nullptr) && type_.IsCompatible<T>()) { in Fill()304 err += type_.IsCompatible<T>() ? "data type not compatible\t" : ""; in Fill()
504 if (type_.IsCompatible<T>()) { in GetItemPtr()
154 bool IsCompatible(const abstract::AbstractBasePtr &a1, const abstract::AbstractBasePtr &a2) { in IsCompatible() function173 if (!IsCompatible(a1_elements[i], a2_elements[i])) { in IsCompatible()275 return IsCompatible(abs, para_abs); in GetParameter()580 if (!IsCompatible(call_site->cnode->abstract(), callee->output()->abstract())) { in HandleCallReturn()
59 if (!type.IsCompatible<T>()) { in CreateTensorByVector()