Coder Social home page Coder Social logo

tensor-interfaces's Introduction

tensor-interfaces's People

Contributors

devinamatthews avatar springer13 avatar twindus avatar

Stargazers

David Williams-Young avatar Ajay Melekamburath avatar Andre Gomes avatar Patty Lin avatar Vitalii Kutsan avatar xingjinglu avatar Karnamohit Ranka avatar Ejaaz Merali avatar Lei Wang avatar Ying-Jer Kao avatar Miles avatar Shaden Smith avatar

Watchers

Fredrik Kjolstad avatar Grey Ballard avatar Shaden Smith avatar Anima avatar Jean Kossaifi avatar James Cloos avatar Miles avatar Jiajia Li avatar George Karypis avatar Eduard Valeyev avatar  avatar T. Daniel Crawford avatar  avatar Evgeny Epifanovsky avatar  avatar  avatar Ryan Richard avatar Ponnuswamy Sadayappan avatar Stan Tomov avatar  avatar  avatar Andre Gomes avatar Dmitry I. Lyakh avatar Bernd Doser avatar Paolo Bientinesi avatar Ammar Husain avatar  avatar  avatar

tensor-interfaces's Issues

Question: Should tensor elements be required to be distinct?

Using the general stride layout, it is often assumed that the strides are set such that no two elements share the same location. In some cases, strides are also assumed to be positive, so that stride[i+1] >= stride[i]*shape[i] e.g.

But, allowing more flexible representations may make sense in some circumstances, e.g. one can broadcast a lower-dimensional tensor into a higher-dimensional one by adding modes with 0 strides. Of course, it would be very difficult to support writing to such tensors.

Low-level Tensor Interface I

This issue collects the status of the various discussion topics for defining a tensor interface that is:

  • low-level
  • dense
  • shared-memory
  • synchronous
  • preferably CPU/GPU portable

As sub-issues are resolved, summaries will be added here.

Sub-issues:

  • Terminology (#1)
  • Tensor structure
    • Stride requirements/restrictions
    • Standard layouts
    • Alignment
    • Scalars as tensors
  • Naming
    • Arguments
    • Functions
  • Types
    • Integral arguments
    • Scalars
  • Operations
    • Classification
    • Definition
    • Naming
    • Batching
  • Threading
  • Algorithm selection

Tensor terminology

Let's discuss and decide on some terminology to use consistently for dense tensors:

  1. A tensor which is addressed by n indices is:

    • a: n-dimensional
    • b: n-mode
    • c: order-n
    • d: rank-n
    • e: n-way
    • f: n-adic
    • g: n-fold
    • h: n-index
  2. The tensor A[ijkl] has four:

    • a: dimensions
    • b: modes
    • c: ranks
    • d: indices
    • e: ways
    • f: subspaces
  3. The number of distinct values that i can have in A[ijkl] is the first:

    • a: length
    • b: extent
    • c: dimension
  4. The ordered set of extents (3.) (one for each mode (2.)) is the:

    • a: shape
    • b: size
    • c: structure
  5. i, j, k, and l in A[ijkl] are:

    • a: 0-based
    • b: 1-based
  6. i in A[ijkl] is a(n):

    • a: index
    • b: label
  7. The operation B[jkli] <- A[ijkl] is a:

    • a: tensor transpose
    • b: mode permutation
    • c: reshaping
    • d: shuffle
  8. The operation B[jkli] <- A[ijkl] can be denoted in shorthand as:

    • a: (1,2,3,0) "comes-from"
    • b: (3,0,1,2) "goes-to"
  9. In the operation C[ijkn] <- A[ijlmn] * B[lmkn], l and m are:

    • a: contracted
    • b: internal
    • c: bound
  10. ...and i, j, k, and n are:

    • a: uncontracted
    • b: external
    • c: free

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.