in reply to Re: RFC - Documentation Review
in thread Please review documentation of my AI::Embedding module

Use of the word "homogeneous" is odd

I've been doing some weekend reading on PyTorch - not because I want to use it but because I want a high-level understanding of what it does and what it is used for...

In the Wikipedia article, they too use the word "homogeneous" to describe the multi-dimensional arrays.

"PyTorch defines a class called Tensor (torch.Tensor) to store and operate on homogeneous multidimensional rectangular arrays of numbers."

  • Comment on Homogeneous (was: Re^2: RFC - Documentation Review)

Replies are listed 'Best First'.
Re: Homogeneous (was: Re^2: RFC - Documentation Review)
by kcott (Archbishop) on Jun 11, 2023 at 14:37 UTC

    I'm not familiar with PyTorch so this is purely a guess.

    In the examples, all of the array elements are floating point numbers: that's probably what homogeneous means in this context.

    By contrast, arrays with a mix of floats, integers, strings, objects, and so on, would be heterogeneous.

    — Ken