Torchvsion API documentation page update#6313
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
@greptileai please review |
|
| Filename | Overview |
|---|---|
| docs/examples/getting_started/torchvision_api.ipynb | Added two operator reference tables (OO and functional) and updated output cells; operator lists in tables match the actual all output cells exactly. |
Class Diagram
%%{init: {'theme': 'neutral'}}%%
classDiagram
direction LR
class OO_API["nvidia.dali.experimental.torchvision (OO)"] {
CenterCrop
ColorJitter
Compose
GaussianBlur
Grayscale
Normalize
Pad
PILToTensor
RandomApply
RandomCrop
RandomGrayscale
RandomHorizontalFlip
RandomResizedCrop
RandomVerticalFlip
Resize
ToPILImage
ToPureTensor
}
class Functional_API["nvidia.dali.experimental.torchvision.v2.functional"] {
center_crop
crop
gaussian_blur
get_dimensions
get_image_size
get_size
horizontal_flip
normalize
pad
pil_to_tensor
resize
resized_crop
rgb_to_grayscale
to_grayscale
to_pil_image
to_tensor
vertical_flip
}
class TV2["torchvision.transforms.v2 (upstream)"]
TV2 <|.. OO_API : mirrors
TV2 <|.. Functional_API : mirrors
Reviews (4): Last reviewed commit: "Available operators update" | Re-trigger Greptile
f2b4813 to
7cb4fc6
Compare
* Added tables with supported operators for both APIs * Updated cells that list supported operators Signed-off-by: Marek Dabek <mdabek@nvidia.com>
7cb4fc6 to
378f16c
Compare
|
View / edit / reply to this conversation on ReviewNB JanuszL commented on 2026-04-24T12:36:49Z I wonder if we remember ot update it, do you think we can have it generated outside of jupyter on a separated docs page? mdabek-nvidia commented on 2026-05-07T16:36:38Z I don't expect to have an influx of new operators, but I've created JIRA ticket to automatically generate this table: https://jirasw.nvidia.com/browse/DALI-4703 JanuszL commented on 2026-05-13T19:04:48Z 👍 |
|
View / edit / reply to this conversation on ReviewNB JanuszL commented on 2026-04-24T12:36:50Z Is it possible to make below go? /home/mdabek/.local/lib/python3.10/site-packages/matplotlib/projections/__init__.py:63: UserWarning: Unable to import Axes3D. This may be due to multiple versions of Matplotlib being installed (e.g. as a system package and as a pip package). As a result, the 3D projection is not available.
warnings.warn("Unable to import Axes3D. This may be due to multiple versions of "
mdabek-nvidia commented on 2026-05-07T16:36:53Z Fixed |
Signed-off-by: Marek Dabek <mdabek@nvidia.com>
|
I don't expect to have an influx of new operators, but I've created JIRA ticket to automatically generate this table: https://jirasw.nvidia.com/browse/DALI-4703 View entire conversation on ReviewNB |
|
Fixed View entire conversation on ReviewNB |
jantonguirao
left a comment
There was a problem hiding this comment.
Thanks for the fixes — all four prior comments are addressed.
One very minor leftover from comment #2 (the consistency suggestion): the ToPILImage row (~L108) still uses the original "Acts as a return-type hint for Compose" phrasing, while PILToTensor (~L104) and ToPureTensor (~L109) now both use the "Marker placed in a Compose op list — signals…" phrasing. Consider aligning ToPILImage for consistency, e.g.:
ToPILImage|v2.ToPILImage| Marker placed at the end of aComposeop list — signals the CHW pipeline to return aPIL.Imageinstead of atorch.Tensor. The conversion is performed byCompose; the operator does not modify the data. |
Not a blocker — feel free to address in a follow-up or leave as is.
|
👍 View entire conversation on ReviewNB |
|
CI MESSAGE: [51397152]: BUILD FAILED |
Signed-off-by: Marek Dabek <mdabek@nvidia.com>
|
!build |
|
CI MESSAGE: [53399787]: BUILD STARTED |
|
CI MESSAGE: [53399787]: BUILD PASSED |
Category:
Other (Documentation)
Description:
Update of the Torchvision API's documentation:
Added tables with supported operators for both APIs
Updated cells that list supported operators
Additional information:
Affected modules and functionalities:
Key points relevant for the review:
Tests:
Checklist
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: N/A