Searched refs:holds_alternative (Results 1 – 7 of 7) sorted by relevance
25 static_assert(std::holds_alternative<int>(v), ""); in main()30 static_assert(std::holds_alternative<int>(v), ""); in main()31 static_assert(!std::holds_alternative<long>(v), ""); in main()36 ASSERT_NOEXCEPT(std::holds_alternative<int>(v)); in main()
70 REQUIRE( std::holds_alternative<inner>(value) );71 REQUIRE( std::holds_alternative<float>(std::get<inner>(value)) );76 REQUIRE( std::holds_alternative<inner>(value) );
351 if (absl::holds_alternative<xla::Shape>(shape)) { in operator ==()352 if (!absl::holds_alternative<xla::Shape>(other.shape)) { in operator ==()360 if (!absl::holds_alternative<TensorShape>(other.shape)) { in operator ==()407 if (absl::holds_alternative<TensorShape>(shape)) { in DimensionSizes()416 if (absl::holds_alternative<TensorShape>(shape)) { in ShapeHumanString()621 if (absl::holds_alternative<TensorShape>(arg.shape)) { in XLAShapeForArgument()630 if (absl::holds_alternative<xla::Shape>(arg.shape)) { in XLAShapeForArgument()644 TF_RET_CHECK(absl::holds_alternative<TensorShape>(arg.shape)); in XLAShapeForArgument()656 TF_RET_CHECK(absl::holds_alternative<TensorShape>(arg.shape)); in XLAShapeForArgument()674 TF_RET_CHECK(absl::holds_alternative<TensorShape>(arg.shape)); in XLAShapeForArgument()[all …]
29 return absl::holds_alternative<OwningDeviceMemory>(mem_); in HasOwnership()
104 constexpr bool holds_alternative(const variant<Types...>&) noexcept;1319 constexpr bool holds_alternative(const variant<_Types...>& __v) noexcept {
3290 void holds_alternative() {}3306 return holds_alternative<T>(value) && matcher_.Matches(get<T>(value));3309 if (!holds_alternative<T>(value)) {
6699 friend bool holds_alternative(const SampleVariantIntString& value) { in holds_alternative() function