(value)
| 124 | |
| 125 | |
| 126 | def _migrate_image_value(value): |
| 127 | image_value = value.image |
| 128 | data = [ |
| 129 | str(image_value.width).encode("ascii"), |
| 130 | str(image_value.height).encode("ascii"), |
| 131 | image_value.encoded_image_string, |
| 132 | ] |
| 133 | |
| 134 | summary_metadata = image_metadata.create_summary_metadata( |
| 135 | display_name=value.metadata.display_name or value.tag, |
| 136 | description=value.metadata.summary_description, |
| 137 | converted_to_tensor=True, |
| 138 | ) |
| 139 | return make_summary(value.tag, summary_metadata, data) |
| 140 | |
| 141 | |
| 142 | def _migrate_audio_value(value): |
nothing calls this directly
no test coverage detected
searching dependent graphs…