C2_W3 AttributeError

When executing this cell:

import json
from pprint import pprint
definition = json.loads(pipeline.definition())
pprint(definition)

I get the error below, I can’t trace it back to where the issue might be
/opt/conda/lib/python3.7/site-packages/sagemaker/workflow/steps.py in arguments(self)
223 role=self.model.role,
224 container_defs=self.model.prepare_container_def(
→ 225 instance_type=self.inputs.instance_type,
226 accelerator_type=self.inputs.accelerator_type,
227 ),

AttributeError: ‘str’ object has no attribute ‘instance_type’

Thanks for the question Pejhan, could you please send us a couple of screenshots - it will help to investigate the problem.

thanks for follow up, I did run it again yesterday and the problem went away…

thanks again
pejhan

1 Like