How fast is TensorFlow compared to self written neural nets?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I made my first neural net in C++ without any libraries. It was a net to recognize numbers from the MNIST dataset. In a 784 - 784 - 10 net with sigmoid function and 5 epochs with each 60000 samples, it took about 2 hours to train. It was probably slow anyways, because I trained it on a laptop and I used classes for Neurons and Layers.



To be honest, I've never used Tensor Flow, so I wanted to know how the performance of my net would be compared to the same in Tensor Flow. Not to specific but just a rough aproximation.










share|improve this question

























    up vote
    1
    down vote

    favorite












    I made my first neural net in C++ without any libraries. It was a net to recognize numbers from the MNIST dataset. In a 784 - 784 - 10 net with sigmoid function and 5 epochs with each 60000 samples, it took about 2 hours to train. It was probably slow anyways, because I trained it on a laptop and I used classes for Neurons and Layers.



    To be honest, I've never used Tensor Flow, so I wanted to know how the performance of my net would be compared to the same in Tensor Flow. Not to specific but just a rough aproximation.










    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I made my first neural net in C++ without any libraries. It was a net to recognize numbers from the MNIST dataset. In a 784 - 784 - 10 net with sigmoid function and 5 epochs with each 60000 samples, it took about 2 hours to train. It was probably slow anyways, because I trained it on a laptop and I used classes for Neurons and Layers.



      To be honest, I've never used Tensor Flow, so I wanted to know how the performance of my net would be compared to the same in Tensor Flow. Not to specific but just a rough aproximation.










      share|improve this question













      I made my first neural net in C++ without any libraries. It was a net to recognize numbers from the MNIST dataset. In a 784 - 784 - 10 net with sigmoid function and 5 epochs with each 60000 samples, it took about 2 hours to train. It was probably slow anyways, because I trained it on a laptop and I used classes for Neurons and Layers.



      To be honest, I've never used Tensor Flow, so I wanted to know how the performance of my net would be compared to the same in Tensor Flow. Not to specific but just a rough aproximation.







      neural-networks tensorflow






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      Evator

      283




      283




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          A lot. There are all these optimizations that we might not have thought of like combining layers, functions, etc. I am a pytorch guy though, its clean and doesn't get in your way like tensorflow does.






          share|improve this answer








          New contributor




          user18646 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.

















          • Alright because that was the main reason i code them myself.I thought tensorflow took too much of my freedom. Is pytorch better in that perspective?
            – Evator
            43 mins ago










          • Yes, you will love python way of doing things with PyTorch. Just take the example of guys at Fast.Ai, they started using pytorch when they realised tenaorflow was limiting their creativity for doing things in Deep Learning.
            – user18646
            35 mins ago










          Your Answer




          StackExchange.ifUsing("editor", function ()
          return StackExchange.using("mathjaxEditing", function ()
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          );
          );
          , "mathjax-editing");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "658"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fai.stackexchange.com%2fquestions%2f8188%2fhow-fast-is-tensorflow-compared-to-self-written-neural-nets%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote













          A lot. There are all these optimizations that we might not have thought of like combining layers, functions, etc. I am a pytorch guy though, its clean and doesn't get in your way like tensorflow does.






          share|improve this answer








          New contributor




          user18646 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.

















          • Alright because that was the main reason i code them myself.I thought tensorflow took too much of my freedom. Is pytorch better in that perspective?
            – Evator
            43 mins ago










          • Yes, you will love python way of doing things with PyTorch. Just take the example of guys at Fast.Ai, they started using pytorch when they realised tenaorflow was limiting their creativity for doing things in Deep Learning.
            – user18646
            35 mins ago














          up vote
          2
          down vote













          A lot. There are all these optimizations that we might not have thought of like combining layers, functions, etc. I am a pytorch guy though, its clean and doesn't get in your way like tensorflow does.






          share|improve this answer








          New contributor




          user18646 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.

















          • Alright because that was the main reason i code them myself.I thought tensorflow took too much of my freedom. Is pytorch better in that perspective?
            – Evator
            43 mins ago










          • Yes, you will love python way of doing things with PyTorch. Just take the example of guys at Fast.Ai, they started using pytorch when they realised tenaorflow was limiting their creativity for doing things in Deep Learning.
            – user18646
            35 mins ago












          up vote
          2
          down vote










          up vote
          2
          down vote









          A lot. There are all these optimizations that we might not have thought of like combining layers, functions, etc. I am a pytorch guy though, its clean and doesn't get in your way like tensorflow does.






          share|improve this answer








          New contributor




          user18646 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          A lot. There are all these optimizations that we might not have thought of like combining layers, functions, etc. I am a pytorch guy though, its clean and doesn't get in your way like tensorflow does.







          share|improve this answer








          New contributor




          user18646 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          user18646 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered 1 hour ago









          user18646

          211




          211




          New contributor




          user18646 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          user18646 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          user18646 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.











          • Alright because that was the main reason i code them myself.I thought tensorflow took too much of my freedom. Is pytorch better in that perspective?
            – Evator
            43 mins ago










          • Yes, you will love python way of doing things with PyTorch. Just take the example of guys at Fast.Ai, they started using pytorch when they realised tenaorflow was limiting their creativity for doing things in Deep Learning.
            – user18646
            35 mins ago
















          • Alright because that was the main reason i code them myself.I thought tensorflow took too much of my freedom. Is pytorch better in that perspective?
            – Evator
            43 mins ago










          • Yes, you will love python way of doing things with PyTorch. Just take the example of guys at Fast.Ai, they started using pytorch when they realised tenaorflow was limiting their creativity for doing things in Deep Learning.
            – user18646
            35 mins ago















          Alright because that was the main reason i code them myself.I thought tensorflow took too much of my freedom. Is pytorch better in that perspective?
          – Evator
          43 mins ago




          Alright because that was the main reason i code them myself.I thought tensorflow took too much of my freedom. Is pytorch better in that perspective?
          – Evator
          43 mins ago












          Yes, you will love python way of doing things with PyTorch. Just take the example of guys at Fast.Ai, they started using pytorch when they realised tenaorflow was limiting their creativity for doing things in Deep Learning.
          – user18646
          35 mins ago




          Yes, you will love python way of doing things with PyTorch. Just take the example of guys at Fast.Ai, they started using pytorch when they realised tenaorflow was limiting their creativity for doing things in Deep Learning.
          – user18646
          35 mins ago

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fai.stackexchange.com%2fquestions%2f8188%2fhow-fast-is-tensorflow-compared-to-self-written-neural-nets%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          Long meetings (6-7 hours a day): Being “babysat” by supervisor

          Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

          Confectionery