@@ -25,15 +25,6 @@ export MPSMatrixDescriptor
2525
2626# @objcwrapper MPSMatrixDescriptor <: NSObject
2727
28- # @objcproperties MPSMatrixDescriptor begin
29- # @autoproperty rows::NSUInteger setter=setRows
30- # @autoproperty columns::NSUInteger setter=setColumns
31- # @autoproperty matrices::NSUInteger
32- # @autoproperty dataType::MPSDataType setter=setDataType
33- # @autoproperty rowBytes::NSUInteger setter=setRowBytes
34- # @autoproperty matrixBytes::NSUInteger
35- # end
36-
3728function MPSMatrixDescriptor (rows, columns, rowBytes, dataType)
3829 desc = @objc [MPSMatrixDescriptor matrixDescriptorWithRows: rows:: NSUInteger
3930 columns: columns:: NSUInteger
@@ -59,18 +50,6 @@ export MPSMatrix
5950
6051# @objcwrapper immutable=false MPSMatrix <: NSObject
6152
62- # @objcproperties MPSMatrix begin
63- # @autoproperty device::id{MTLDevice}
64- # @autoproperty rows::NSUInteger
65- # @autoproperty columns::NSUInteger
66- # @autoproperty matrices::NSUInteger
67- # @autoproperty dataType::MPSDataType
68- # @autoproperty rowBytes::NSUInteger
69- # @autoproperty matrixBytes::NSUInteger
70- # @autoproperty offset::NSUInteger
71- # @autoproperty data::id{MTLBuffer}
72- # end
73-
7453function MPSMatrix (buf, descriptor:: MPSMatrixDescriptor , offset:: Integer = 0 )
7554 mat = @objc [MPSMatrix alloc]:: id{MPSMatrix}
7655 obj = MPSMatrix (mat)
@@ -143,14 +122,6 @@ export MPSMatrixMultiplication, encode!, matmul!
143122
144123# @objcwrapper immutable=false MPSMatrixMultiplication <: MPSKernel
145124
146- # @objcproperties MPSMatrixMultiplication begin
147- # @autoproperty leftMatrixOrigin::MTLOrigin setter=setLeftMatrixOrigin
148- # @autoproperty rightMatrixOrigin::MTLOrigin setter=setRightMatrixOrigin
149- # @autoproperty resultMatrixOrigin::MTLOrigin setter=setResultMatrixOrigin
150- # @autoproperty batchSize::NSUInteger setter=setBatchSize
151- # @autoproperty batchStart::NSUInteger setter=setBatchStart
152- # end
153-
154125function MPSMatrixMultiplication (dev, transposeLeft, transposeRight, resultRows,
155126 resultColumns, interiorColumns, alpha, beta)
156127 kernel = @objc [MPSMatrixMultiplication alloc]:: id{MPSMatrixMultiplication}
@@ -218,13 +189,6 @@ export MPSMatrixFindTopK, encode!
218189
219190# @objcwrapper immutable=false MPSMatrixFindTopK <: MPSMatrixUnaryKernel
220191
221- # @objcproperties MPSMatrixFindTopK begin
222- # @autoproperty indexOffset::NSInteger setter=setIndexOffset
223- # @autoproperty numberOfTopKValues::NSInteger
224- # @autoproperty sourceColumns::NSInteger setter=setSourceColumns
225- # @autoproperty sourceRows::NSInteger setter=setSourceRows
226- # end
227-
228192function MPSMatrixFindTopK (dev, numberOfTopKValues)
229193 kernel = @objc [MPSMatrixFindTopK alloc]:: id{MPSMatrixFindTopK}
230194 obj = MPSMatrixFindTopK (kernel)
@@ -316,11 +280,6 @@ export MPSMatrixSoftMax, MPSMatrixLogSoftMax, encode!
316280# @objcwrapper immutable=false MPSMatrixSoftMax <: MPSMatrixUnaryKernel
317281# @objcwrapper immutable=false MPSMatrixLogSoftMax <: MPSMatrixSoftMax
318282
319- # @objcproperties MPSMatrixSoftMax begin
320- # @autoproperty sourceRows::NSInteger setter=setSourceRows
321- # @autoproperty sourceColumns::NSInteger setter=setSourceColumns
322- # end
323-
324283for f in (:MPSMatrixSoftMax , :MPSMatrixLogSoftMax )
325284 @eval begin
326285 function $ (f)(dev)
0 commit comments