import_tensorflow

imagepypelines.import_tensorflow()[source]

Direct tensorflow imports are discouraged for imagepypelines developers because it is not automatically installed alongside imagepypelines, and therefore may cause confusing errors to users.

This function will check if tensorflow is installed and import it if possible. If tensorflow is not importable, it will print out installation instructions.

Returns:module reference to tensorflow
Return type:module