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>
  • Creates a tensor from a scalar value.

    Declaration

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

    Declaration

    init(_ vector: [String])

    Parameters

    vector

    The scalar contents of the tensor.

  • Declaration

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