partial_vec_to_tensor#
- ivy.partial_vec_to_tensor(x, /, shape, skip_begin=1, *, out=None)[source]#
Refolds a partially vectorised tensor into a full one.
- Parameters:
x (
Union[Array,NativeArray]) – a partially vectorised tensorshape (
Union[Shape,NativeShape,Sequence[int]]) – the shape of the original full tensor (including skipped dimensions)skip_begin (
int, default:1) – number of dimensions to leave untouched at the beginningout (
Optional[Array], default:None) – optional output array, for writing the result to.
- Return type:
- Returns:
ret – full tensor
- Array.partial_vec_to_tensor(self, /, shape, skip_begin=1, *, out=None)[source]#
ivy.Array instance method variant of ivy.partial_vec_to_tensor. This method simply wraps the function, and so the docstring for ivy.partial_vec_to_tensor also applies to this method with minimal changes.
- Parameters:
x – a partially vectorised tensor
shape (
Union[Shape,NativeShape,Sequence[int]]) – the shape of the original full tensor (including skipped dimensions)skip_begin (
Optional[int], default:1) – number of dimensions to leave untouched at the beginningout (
Optional[Array], default:None) – optional output array, for writing the result to.
- Return type:
Array- Returns:
ret – full tensor
- Container.partial_vec_to_tensor(self, /, shape, skip_begin=1, *, key_chains=None, to_apply=True, prune_unapplied=False, map_sequences=False, out=None)[source]#
ivy.Container instance method variant of ivy.partial_vec_to_tensor.
This method simply wraps the function, and so the docstring for ivy.partial_vec_to_tensor also applies to this method with minimal changes.
- Parameters:
self (
Union[Array,NativeArray,Container]) – partially vectorized tensorshape (
Union[Shape,NativeShape,Sequence[int],Container]) – the shape of the original full tensor (including skipped dimensions)skip_begin (
Optional[Union[int,Container]], default:1) – number of dimensions to leave untouched at the beginningout (
Optional[Container], default:None) – optional output container, for writing the result to. It must have a shape that the inputs broadcast to.
- Return type:
Container- Returns:
ret – full tensor