A
A
Andrei1penguin12021-01-23 00:52:31
Python
Andrei1penguin1, 2021-01-23 00:52:31

How to reduce keras tensor size?

Good day, there is a tensor of 1628670 elements, the task is to make it with dimensions (70, 20, 1) through reshape, that is, having 140 elements
Only 1628670 is not a multiple of 140, the nearest multiple is 1628620 Can
you please tell me how to change the size of the tensor by several units?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Dugin, 2021-01-23
@adugin

Take a slice - just like with lists or numpy arrays.

S
Sergey Goryachev, 2017-06-09
@lemonlimelike

Because transition doesn't work with "block" elements.
By "block" I mean display none/block.
https://toster.ru/search?q=transition+display+none
There are answers and solutions already.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question