python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
how to pad sequences in a tensor slice dataset in TensorFlow?
I have a tensor slice dataset made from two ragged tensors.
tensor_a is like: <tf.RaggedTensor [[3, 3, 5], [3, 3, 14, 4, 17, 20], [3, 14, 22, 17]]>
tensor_b is like: <tf.RaggedTensor [[-1, 1,...
pieckannie
Votes: 0
Answers: 1
How to save ragged tensor as a file?
How can I save a ragged tensor as a file on my disk and then reuse it in calculations opening it from the disk? Tensor consists of a nested array of numbers with 4 signs after the point. (I'm working ...
Vvictory
Votes: 0
Answers: 1
Sample from ragged tensor
I have a raggedTensor of row_lens going from 1 to up to 10k. I would like to select elements randomly from it with an upper limit on the number per row in a scalable way. Like in this example:
vect = ...
Nodiz
Votes: 0
Answers: 1
IndexError: Dimension out of range (expected to be in range of [-2, 1], but got 3)
I created a random function with the line below
x = torch.randn(4, 3)
and used the transpose function as shown here
torch.transpose(x, 0, 1)
I got the error line below. Who can assist with a solutio...
Lamosh
Votes: 0
Answers: 1