Android Developers Swift for TensorFlow Ecosystem API AccelerableByTensorFlow public protocol AccelerableByTensorFlow makeTensor(rank:) Convert to a tensor with the specified rank, with all dimensions equal to 1. Declaration func makeTensor(rank: Int32) -> Tensor<Self> init(_:) Declaration convenience init?(_ tensor: Tensor<Self>) Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License. For details, see our Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Last updated October 4, 2018.