Post

Replies

Boosts

Views

Activity

Reply to Printing `MPSGraphTensor.dataType`
extension MPSDataType {     func description() -> String {         switch(self) {         case .float32:             return "f32"         case .int32:             return "i32"         // other...         default:             return "?"         }     } }
Nov ’21
Reply to How to create ML program from Swift?
Thank you, AncientCoder. I had a different use case in mind. You proposed using pre-made architectures that can be trained on the device (classifiers, regressors, etc.), but I meant something much lower-level than this. For example, I would like to be able to create *.mlmodel that takes 2 inputs and just adds them together. Or any architecture using available ops. I can write MIL definition, but there is no way of turning it to the mlmodel/mlpackage in Swift, only using coremltools in Python. It seems that MPSGraph is probably the best fit for my needs right now.
Aug ’21