0
$\begingroup$

I would like to ask you if this:

Variable(torch.cuda.FloatTensor([x]), requires_grad=False)

in Torch is the equivalent to this:

tf.convert_to_tensor([x], dtype=tf.float16) 

in Tensorflow

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.