File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,17 @@ function MPSGraph()
99 MPSGraph (@objc [MPSGraph new]:: id{MPSGraph} )
1010end
1111
12- # @objcwrapper MPSGraphShapedType <: MPSGraphType
13- function MPSGraphShapedType (shape:: MPSShape , dataType)
14- tmp = @objc [MPSGraphShapedType alloc]:: id{MPSGraphShapedType}
15- obj = MPSGraphShapedType (tmp)
16- finalizer (release, obj)
17- @objc [obj:: id{MPSGraphShapedType} initWithShape: shape:: id{MPSShape}
18- dataType: dataType:: MPSDataType ]:: id{MPSGraphShapedType}
19- return obj
20- end
12+ # @objcwrapper immutable=true MPSGraphShapedType <: MPSGraphType
13+
14+ # XXX : Not used yet and needs fixing
15+ # function MPSGraphShapedType(shape::MPSShape, dataType)
16+ # tmp = @objc [MPSGraphShapedType alloc]::id{MPSGraphShapedType}
17+ # obj = MPSGraphShapedType(tmp)
18+ # finalizer(release, obj)
19+ # @objc [obj::id{MPSGraphShapedType} initWithShape:shape::id{MPSShape}
20+ # dataType:dataType::MPSDataType]::id{MPSGraphShapedType}
21+ # return obj
22+ # end
2123
2224# # MPSGraphDevice.h
2325# @objcwrapper MPSGraphDevice <: MPSGraphType
You can’t perform that action at this time.
0 commit comments