Skip to content
Unverified Commit be2f17a3 authored by Daniel Falbel's avatar Daniel Falbel
Browse files

Handle optional tensors more consistently by adding a...

Handle optional tensors more consistently by adding a `XPtrTorchOptionalTensor` class that will convert NULL or lenght 0 R objects to `c10::nullopt`. When return OptionalTensors will be automatically converted to `NULL` if they don't have values.
parent af057fca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment