Searched defs:can_cast (Results 1 – 6 of 6) sorted by relevance
233 let can_cast = CheckedBitPatternEnumWithValues::is_valid_bit_pattern(&5); in fails_cast_contiguous() localVariable246 let can_cast = CheckedBitPatternEnumNonContiguous::is_valid_bit_pattern(&4); in fails_cast_noncontiguous() localVariable261 let can_cast = CheckedBitPatternEnumByteLit::is_valid_bit_pattern(&b'a'); in fails_cast_bytelit() localVariable
178 bool can_cast(const at::ScalarType from_, const at::ScalarType to) { in can_cast() function
508 bool can_cast = c10::canCast(input.scalar_type(), result.scalar_type()); variable
574 def can_cast(from_, to, casting="safe"): function
651 struct can_cast : std::integral_constant< struct
6349 def can_cast(src_dtype, dst_dtype): function