pytorchbot
pytorchbot
Summary: `set_all_to_value(out_data, out_step_len, value)` loops over the padding and copies a row at a time. Add some checks to make sure we do not exceed the out tensor (out_data) size...
Summary: 1. Fix security bug; ensure index is within bounds (0 index < size check happens after potential tensor resize 2. Convert ET_CHECK_MSG --> ET_KERNEL_CHECK_MSG for error reporting --- The...
Summary: local scalar dense extracts a scalar from a tensor. Check that the tensor has at least one value Differential Revision: D86363818
Summary: Check that out.nbytes() is at least as large as src.nbytes() to prevent copying beyond the range of src. Also add a check on dtypes, make sure out and src...
Summary: Not sure why we are missing a check on the last dim, add it back in. Differential Revision: D86368348
Summary: Add safety checks to compute_slice, to ensure that we: 1. Do not read outside of the src tensor bounds 2. Do not write outside of the output tensor bounds...