I converted a decoder model into CoreML using following way:
input_1 = ct.TensorType(name="input_1", shape=ct.Shape((1, ct.RangeDim(lower_bound=1, upper_bound=50), 512)), dtype=np.float32)
input_2 = ct.TensorType(name="input_2", shape=ct.Shape((1, ct.RangeDim(lower_bound=1, upper_bound=50), 512)), dtype=np.float32)
decoder_iOS2 = ct.convert(decoder_layer,
inputs=[input_1, input_2]
)
But if load the model in Xcode it gives me two errors:
Error1:
MLE5Engine is not currently supported for models with range shape inputs that try to utilize the Neural Engine.
Q1: As having a Flexible Input shape is nature of the Decoder, I can ignore this error message, right? This is the things that can't be fixed.?
Erro2:
doUnloadModel:options:qos:error:: model=_ANEModel: { modelURL=file:///var/containers/Bundle/Application/CB2207C5-B549-4868-AEB5-FFA7A3E24397/Photo2ASCII.app/Deocder_iOS_test2.mlmodelc/model.mil : sourceURL= (null) : key={"isegment":0,"inputs":{"input_1":{"shape":[512,1,1,1,1]},"input_2":{"shape":[512,1,1,1,1]}},"outputs":{"Identity":{"shape":[512,1,1,1,1]}}} : identifierSource=0 : cacheURLIdentifier=A93CE297F87F752D426002C8D1CE79094E614BEA1C0E96113228C8D3F06831FA_F055BF0F9A381C4C6DC99CE8FCF5C98E7E8B83EA5BF7CFD0EDC15EF776B29413 : string_id=0x00000000 : program=_ANEProgramForEvaluation: { programHandle=6885927629810 : intermediateBufferHandle=6885928772758 : queueDepth=127 } : state=3 : programHandle=6885927629810 : intermediateBufferHandle=6885928772758 : queueDepth=127 : attr={
ANEFModelDescription = {
ANEFModelInput16KAlignmentArray = (
);
ANEFModelOutput16KAlignmentArray = (
);
ANEFModelProcedures = (
{
ANEFModelInputSymbolIndexArray = (
0,
1
);
ANEFModelOutputSymbolIndexArray = (
0
);
ANEFModelProcedureID = 0;
}
);
kANEFModelInputSymbolsArrayKey = (
"input_1",
"input_2"
);
kANEFModelOutputSymbolsArrayKey = (
"Identity@output"
);
kANEFModelProcedureNameToIDMapKey = {
net = 0;
};
};
NetworkStatusList = (
{
LiveInputList = (
{
BatchStride = 1024;
Batches = 1;
Channels = 1;
Depth = 1;
DepthStride = 1024;
Height = 1;
Interleave = 1;
Name = "input_1";
PlaneCount = 1;
PlaneStride = 1024;
RowStride = 1024;
Symbol = "input_1";
Type = Float16;
Width = 512;
},
{
BatchStride = 1024;
Batches = 1;
Channels = 1;
Depth = 1;
DepthStride = 1024;
Height = 1;
Interleave = 1;
Name = "input_2";
PlaneCount = 1;
PlaneStride = 1024;
RowStride = 1024;
Symbol = "input_2";
Type = Float16;
Width = 512;
}
);
LiveOutputList = (
{
BatchStride = 1024;
Batches = 1;
Channels = 1;
Depth = 1;
DepthStride = 1024;
Height = 1;
Interleave = 1;
Name = "Identity@output";
PlaneCount = 1;
PlaneStride = 1024;
RowStride = 1024;
Symbol = "Identity@output";
Type = Float16;
Width = 512;
}
);
Name = net;
}
);
} : perfStatsMask=0} was not loaded by the client.
Q2: Is that I can ignore this error message, if I'm gonna use CPU/GPU when running the model?
Post
Replies
Boosts
Views
Activity
I want to create a macOS application that runs Python script locally. As now I found that using 'PythonKit' library and disabling Sandbox allow me to do that, but disabling sandbox makes the app can't be published.
Any idea how I can solve this problem?
Thanks
So I was watching the WWDC video [Add configuration and intelligence to you widget] (https://developer.apple.com/videos/play/wwdc2020/10194) and it seemed like there Xcode automatically generated the IntentHandler.swift file.
But I can't find the IntentHandler.swift file in my Xcode. Of course, I added Widget as target checking add intent configuration, and also added intent parameters too.
What I am doing wrong here? Or is that I Xcode doesn't automatically generate IntentHandler.swift file ?
Thanks
If user tap to update, after I released 3 new updates, will user have to tap update button 3 times or App Store will update users app with the latest version?
I added some code deleting some user defaults which have been slowing down my app launch time. As now my app check if the current version equals to a certain version(ex, 1.5).
If user update their app to 1.5, those user defaults will be deleted, but if user get updated to 1.7 directly, those user defaults won't be deleted.
If the latter assumption is right one, then should I work on making a func checking whether current version of the app is below a certain version?
Thanks
Hi, I'm new to macOS app development.
Problem: Uploading square shape PNG image with no rounder corner doesn't make my macOS app to have a rounded corner
At here - https://developer.apple.com/design/human-interface-guidelines/macos/icons-and-images/app-icon Apple says to upload an app icon image with no rounded corner.
In the case of ioS or iPadOS, if I just upload a square shape icon with no corner radius, Xcode automatically added a corner radius. But in the case of macOS, Xcode doesn't.
What should I do to fix this issue?
Xcode 12.5
macOS: 11.0.1 Beta
Native macOS app
Is it OK to use swiftUI in the playground when submitting the playground file for WWDC 20201 Scholarship?
So, Apple says they only accept the playground file, and it seems using SwiftUI makes me way easier to create a scene. But I'm not sure whether it is OK to do it or tester will grade me the lower score for using SwiftUI
Hi,
I would like to make people can download my macOS app directly from website.
How can I achieve this?
Thanks