Top "Tensor" questions

A tensor is a multi-dimensional array.

How to convert Pytorch autograd.Variable to Numpy?

The title says it all. I want to convert a PyTorch autograd.Variable to its equivalent numpy array. In their …

numpy pytorch tensor
'tensorboard' is not recognized as an internal or external command,

Just started using Tensorflow, but I am not able to use tensorboard command on my cmd, it gives the error …

python tensorflow tensorboard tensor
Difference between tensor.permute and tensor.view in PyTorch?

What is the difference between tensor.permute() and tensor.view()? They seem to do the same thing.

python multidimensional-array deep-learning pytorch tensor
What does "relu" stand for in tf.nn.relu?

In its API documentation, it says "Computes rectified linear". Is it Re(ctified) L(inear)... what is U then?

tensorflow tensor
How to convert a pytorch tensor of ints to a tensor of booleans?

I would like to cast a tensor of ints to a tensor of booleans. Specifically I would like to be …

python casting boolean pytorch tensor
what's the difference between torch.Tensor() vs torch.empty() in pytorch?

I have tried it out as below. It seems to me they're the same. What's the difference between torch.Tensor() …

python pytorch torch tensor
PyTorch element-wise product of vectors / matrices / tensors

In PyTorch, how do I get the element-wise product of two vectors / matrices / tensors? For googlers, this is product is …

matrix vector pytorch tensor
Indexing a multi-dimensional tensor with a tensor in PyTorch

I have the following code: a = torch.randint(0,10,[3,3,3,3]) b = torch.LongTensor([1,1,1,1]) I have a multi-dimensional index b and want to …

pytorch tensor
pytorch: "multi-target not supported" error message

so I want to classify some (3,50,50) pictures. First I loaded the dataset from the file without a dataloader or batches, …

python machine-learning pytorch tensor
Debugging in Google Colab

I am running the following code snippet in google colab in a single cell: %debug # Create tensors of shape (10, 3) and (10, 2). …

python deep-learning pytorch tensor google-colaboratory