tensor.shape() method:
tensor.dtype() method:
bool, (ii) int32, (iii) float32 (default), (iv) complex64, and (v) string.
When you create a tensor, you can specify the data type as the third parameter:
|
I have locked the door. They are as safe as houses (very safe). |