TFETensorHandle

public class TFETensorHandle : _AnyTensorHandle
extension TFETensorHandle: Equatable

Classe che racchiude un puntatore C in un TensorHandle. Questa classe possiede TensorHandle ed è responsabile della sua distruzione.

  • Dichiarazione

    public init(_owning base: CTensorHandle)
  • Il numero di dimensioni del Tensor sottostante.

    Dichiarazione

    public var rank: Int { get }
  • La forma del Tensor sottostante.

    Dichiarazione

    public var shape: TensorShape { get }
  • Dichiarazione

    public var backend: Device.Backend { get }
  • Dichiarazione

    public var valueDescription: String { get }
  • Dichiarazione

    static func tfDataTypeAsString(_ cDataType: TF_DataType) -> String
  • Restituisce vero se i tensori sottostanti sono uguali.

    Dichiarazione

    func elementsEqual(_ other: TFETensorHandle) -> Bool