53f1068a5dfa4fc271107955c304b81b7ddf1380,coremltools/converters/tensorflow/test/test_tf_2x.py,TestModelFormats,test_subclassed_keras_model,#TestModelFormats#,170
Before Change
model = coremltools.converters.tensorflow.convert(
self.saved_model_dir,
inputs={input_name: (4, 4)},
outputs=["Identity"],
target_ios="13"
)
assert isinstance(model, coremltools.models.MLModel)
After Change
keras_model._set_inputs(inputs)
keras_model.save(self.saved_model_dir, save_format="tf")
input_name = keras_model.inputs[0].name.split(":")[0]
output_name = keras_model.outputs[0].name.split(":")[0].split("/")[-1]
// convert and validate
model = coremltools.converters.tensorflow.convert(
self.saved_model_dir,
inputs={input_name: (4, 4)},
outputs=[output_name])
assert isinstance(model, coremltools.models.MLModel)
self._test_prediction(keras_model=keras_model, core_ml_model=model, inputs=inputs)
In pattern: SUPERPATTERN
Frequency: 17
Non-data size: 11
Instances
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestModelFormats
Method Name: test_subclassed_keras_model
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestKerasApplications
Method Name: test_resnet50
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestKerasApplications
Method Name: test_densenet121
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestKerasApplications
Method Name: test_mobilenet_v2
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestKerasApplications
Method Name: test_vgg16_keras_model
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestKerasApplications
Method Name: test_xception
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestKerasApplications
Method Name: test_nasnet_mobile
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestKerasApplications
Method Name: test_vgg19_saved_model
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestKerasFashionMnist
Method Name: test_sequential_builder_saved_model_format
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestKerasApplications
Method Name: test_resnet50_v2
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestKerasApplications
Method Name: test_nasnet_large
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestKerasFashionMnist
Method Name: test_functional_builder
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestKerasApplications
Method Name: test_inception_resnet_v2
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestCornerCases
Method Name: test_conv2d_with_activation
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestKerasApplications
Method Name: test_inception_v3
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestKerasApplications
Method Name: test_mobilenet
Project Name: apple/coremltools
Commit Name: 53f1068a5dfa4fc271107955c304b81b7ddf1380
Time: 2020-01-16
Author: yuduo@apple.com
File Name: coremltools/converters/tensorflow/test/test_tf_2x.py
Class Name: TestKerasFashionMnist
Method Name: test_sequential_builder_keras_model_format