TFETensorHandle

public class TFETensorHandle : _AnyTensorHandle
extension TFETensorHandle: Equatable

Classe encapsulant un pointeur C vers un TensorHandle. Cette classe possède le TensorHandle et est responsable de sa destruction.

  • Déclaration

    public init(_owning base: CTensorHandle)
  • Le nombre de dimensions du Tensor sous-jacent.

    Déclaration

    public var rank: Int { get }
  • La forme du Tensor sous-jacent.

    Déclaration

    public var shape: TensorShape { get }
  • Déclaration

    public var backend: Device.Backend { get }
  • Déclaration

    public var valueDescription: String { get }
  • Déclaration

    static func tfDataTypeAsString(_ cDataType: TF_DataType) -> String
  • Renvoie vrai si les tenseurs sous-jacents sont égaux.

    Déclaration

    func elementsEqual(_ other: TFETensorHandle) -> Bool