Hi Abolfazl,
Sorry that I'm a bit confused over what's your workflow.
Did you create a CustomBinaryCrossEntropyLossLayer in Python, export it to ONNX file, and import in MATLAB.
or
create a CustomBinaryCrossEntropyLossLayer in MATLAB, export the model to ONNX file, and import in Python?
For either workflow, is there any warning or error message thrown from MATLAB side?
Best,
Jiangyin