Skip to content

I meet the problem with "the tensorflow model not found" when I use sagemaker api to train a model? #204

Closed

Description

@giggle0312

I have install sagemaker sdk packages by using "pip install sagemaker" commend . I also can use the built in algorithms to train and deploy model . But I meet a problem when I try "from sagemaker.tensorflow import Tensorflow",that produce a error "tensorflow module is note found". Then I check "Anaconda3-Lib-site_packages-sagemaker-tensorflow" directory of which structure is like following:

20180530-142402 espace

Then I set up tensorflow1.8 locally. When I run "from sagemaker.tensorflow import tensorflolw", it works. However ,this tensorflow is not Tensorflow api which sagemaker supports. So can you help me giving some advises about this question.

Activity

  1. winstonaws commented on May 30, 2018

    @winstonaws
    Contributor

    Hi,

    You need to separately install tensorflow in your environment to use the tensorflow modules from the SageMaker Python SDK.

    It sounds like you've done that - can you explain the next problem you ran into? Can you provide the code which caused the problem and a stacktrace?

  2. giggle0312 commented on May 31, 2018

    @giggle0312
    Author

    Thank you for your answer. The next problem I meet is that I try to excute commend from sagemaker.tensorflow import TensorFlow as said in 《Amazon Sagemaker Develop guide》.
    1
    It returns a error information as follows:
    1111
    So I want to know if the document is old version?

  3. winstonaws commented on May 31, 2018

    @winstonaws
    Contributor

    The problem is that you need to capitalize the "f" in "TensorFlow" in your code :)

  4. jesterhazy commented on Jun 7, 2018

    @jesterhazy
    Contributor

    This issue has been closed due to inactivity. If you still have questions, please re-open it.

  5. added a commit that references this issue on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions