Skip to main content

has_tensor_sugar

Function has_tensor_sugar 

Source
pub fn has_tensor_sugar(source: &str) -> bool
Expand description

Whether source declares a tensor — Let X be a R by C tensor of …, the tensor sugar’s own opening (the parser’s try_parse_tensor_new), read off the text so the lane is known before any op is recognized.