Tüm bölümlerinin tensörler olduğu tensorflow'da bir dönüş matrisi oluşturmak istiyorum.Tensorflow'da Döndürme Matrisi oluşturma
Ben Ne:
def rotate(tf, points, theta):
rotation_matrix = [[tf.cos(theta), -tf.sin(theta)],
[tf.sin(theta), tf.cos(theta)]]
return tf.matmul(points, rotation_matrix)
Ama bu rotation_matrix
yerine tensör kendisinin tensörlerinin bir liste olduğunu söylüyor. theta
ayrıca çalışma zamanında geçirilen bir tensör nesnesidir.
Bu iyi bir çözüm! –
Bunu düşündüm ama sonra unuttum. Bence bu şu anda yaptığım şeyden daha elverişli. – dtracers
'tf.pack',' tf.stack' olarak yeniden adlandırıldı, bkz. Https://github.com/tensorflow/tensorflow/issues/7550 – Hooked