Sep-20-2020, 12:05 AM
It’s a two part question. I’ve figured out the first section but struggling with the second part.
Given 2 inputs, data and shape, construct a tensor(n-dimension matrix) using nested lists.
Data and shape inputs are lists of numbers. Data can be any number (float, int, etc.), but shape needs to be a list of positive integers.
I must do this without importing modules...
Any advice would be appreciated.
Given 2 inputs, data and shape, construct a tensor(n-dimension matrix) using nested lists.
Data and shape inputs are lists of numbers. Data can be any number (float, int, etc.), but shape needs to be a list of positive integers.
I must do this without importing modules...
Any advice would be appreciated.