Skip to content

- Updated shape inference functions (SetShapeFn) to explicitly validate array#1511

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_914477174
Open

- Updated shape inference functions (SetShapeFn) to explicitly validate array#1511
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_914477174

Conversation

@copybara-service
Copy link
Copy Markdown
Contributor

  • Updated shape inference functions (SetShapeFn) to explicitly validate array
    lengths and return absl::InvalidArgumentError when input_splits size is 0.
    • Added OP_REQUIRES bounds checking ahead of size evaluations in C++ kernel
      Compute routines using modern absl::InvalidArgumentError status factories.
    • Added comprehensive unit test coverage verifying safe exception throwing
      across both Eager execution and Graph compilation paths.

…idate array

    lengths and return `absl::InvalidArgumentError` when input_splits size is 0.
  - Added `OP_REQUIRES` bounds checking ahead of size evaluations in C++ kernel
    `Compute` routines using modern `absl::InvalidArgumentError` status factories.
  - Added comprehensive unit test coverage verifying safe exception throwing
    across both Eager execution and Graph compilation paths.

PiperOrigin-RevId: 914477174
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant