@frozen
public struct StringTensor

StringTensor is a multi-dimensional array whose elements are Strings.

  • Computes self == other element-wise.

    Note

    elementsEqual supports broadcasting.

    Declaration

    func elementsEqual(_ other: StringTensor) -> Tensor<Bool>
  • Declaration

    init(shape: TensorShape, scalars: [String])
  • Creates a 0-D StringTensor from a scalar value.

    Declaration

    init(_ value: String)
  • Creates a 1-D StringTensor in from contiguous scalars.

    Declaration

    init(_ scalars: [String])
  • Declaration

    public init(_owning tensorHandles: UnsafePointer<CTensorHandle>?)
  • Declaration

    public init<C: RandomAccessCollection>(
        _handles: C
    ) where C.Element: _AnyTensorHandle