Skip to main content

padding_from_wire_str

Function padding_from_wire_str 

Source
pub fn padding_from_wire_str(s: &str) -> Result<Padding>
Expand description

Parse a symbolic padding mode from its wire spelling.

§Errors

Returns NirError::InvalidGraph for anything other than "same" or "valid" — the only two strings upstream Conv1d / Conv2d accept.