Home
last modified time | relevance | path

Searched refs:a_or_b (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dsparse_add_grad_op.cc88 #define COMPARE(a_or_b, idx) \ in Compute() argument
89 switch (sparse::DimComparator::cmp(a_or_b##_indices_mat, sum_indices_mat, \ in Compute()
92 a_or_b##_val_grad_flat[idx] = backprop_val_grad_flat[k]; \ in Compute()
97 a_or_b##_idx_geq = false; \ in Compute()
/external/rust/crates/nom/src/bytes/
Dmacros.rs485 named!(a_or_b, is_a!(&b"ab"[..])); in is_a()
488 assert_eq!(a_or_b(a), Ok((&b"cd"[..], &b"ab"[..]))); in is_a()
491 assert_eq!(a_or_b(b), Ok((&b"cde"[..], &b"b"[..]))); in is_a()
494 assert_eq!(a_or_b(c), Err(Err::Error(error_position!(c, ErrorKind::IsA)))); in is_a()
497 assert_eq!(a_or_b(d), Ok((&b"cdef"[..], &b"ba"[..]))); in is_a()
502 named!(a_or_b, is_not!(&b"ab"[..])); in is_not()
505 assert_eq!(a_or_b(a), Ok((&b"ab"[..], &b"cd"[..]))); in is_not()
508 assert_eq!(a_or_b(b), Ok((&b"bde"[..], &b"c"[..]))); in is_not()
511 assert_eq!(a_or_b(c), Err(Err::Error(error_position!(c, ErrorKind::IsNot)))); in is_not()
514 assert_eq!(a_or_b(d), Ok((&b"ba"[..], &b"cdef"[..]))); in is_not()
[all …]