b = tf.constant(10, shape=(1,1), dtype=tf.float32) # As 1-D Vector with specified Data-type print(b) # Torch c = torch.tensor(10, ) # As Scalar print(c)
確定! 回上一頁