Home > Net >  Why is there an additional "None" dimension in the tensor shape when uploading a dataset t
Why is there an additional "None" dimension in the tensor shape when uploading a dataset t

Time:03-26

I am trying to upload an image datset to Hub (dataset format with an API for creating, storing, & collaborating on AI datasets). I only uploaded part of the dataset, however upon inspecting the uploaded data I noticed that there was an additional None dimension in the tensor shape. Can someone explain why this occurred?

I am using the following tensor relationship:

ds 
-> images (htype = image)

CodePudding user response:

The none dimension is present because some of the images might have three channels and the others have four, so dynamic dimensions are shown as None.

  • Related