Searched refs:is_variant (Results 1 – 4 of 4) sorted by relevance
263 auto is_variant = [](DataType dtype) { return dtype == DT_VARIANT; }; in OpProducesOrConsumesVariant()264 return absl::c_any_of(node.input_types(), is_variant) || in OpProducesOrConsumesVariant()265 absl::c_any_of(node.output_types(), is_variant); in OpProducesOrConsumesVariant()
1902 is_variant: bool, in deserialize_generated_identifier()1908 let (ignore_variant, fallthrough) = if !is_variant && cattrs.has_flatten() { in deserialize_generated_identifier()1916 } else if is_variant || cattrs.deny_unknown_fields() { in deserialize_generated_identifier()1927 is_variant, in deserialize_generated_identifier()1930 !is_variant && cattrs.has_flatten(), in deserialize_generated_identifier()1934 let lifetime = if !is_variant && cattrs.has_flatten() { in deserialize_generated_identifier()1974 let is_variant = match cattrs.identifier() { in deserialize_custom_identifier() localVariable2032 } else if is_variant { in deserialize_custom_identifier()2050 is_variant, in deserialize_custom_identifier()2082 is_variant: bool, in deserialize_identifier()[all …]
790 auto is_variant = [](DataType dtype) -> bool { return dtype == DT_VARIANT; }; in AddHostOnlyDataTypesConstraints() local798 if (absl::c_none_of(node->input_types(), is_variant)) continue; in AddHostOnlyDataTypesConstraints()
810 is_variant = inp.t.dtype == dtypes.variant813 if tile_variants and is_variant:816 elif not tile_variants and is_variant: