decthings

Reshape

Reshape the tensor to a new shape with the same number of elements, in the same order.

You can choose the output shape by clicking on the node and configuring it on the right panel. The total number of elements in the output shape must equal the total number of elements in the input. The total number of elements in a tensor can be calculated as the product of all its dimension sizes. For example, given a tensor of shape (A, B, C), the total number of elements is A * B * C.

You can enter a value of -1 in at most one position in the new shape. In this case, that dimension will be filled with as many elements it takes to consume the input. This is useful if you have inputs of unknown shape.

Product

  • Documentation
  • Pricing
  • API reference
  • Guides

Company

  • Support

Get going!

Sign up
  • Terms and conditions
  • Privacy policy
  • Cookie policy
  • GitHub
  • LinkedIn

This website uses cookies to enhance the experience.

Learn more