Introducing TensorFlow 2.0 and its high-level APIs (TF Dev Summit '19)

Sdílet
Vložit
  • čas přidán 28. 08. 2024

Komentáře • 170

  • @marcussky
    @marcussky Před 5 lety +50

    Won't lie. Been using PyTorch but now super tempted to go back to TF and Keras.

  • @JollyFuchsia
    @JollyFuchsia Před 5 lety +11

    Hey folks, small bit of advice - stop using seasons to talk about timeframes. It only applies to half the world at best. Q1, Q2, Q3, Q4 is a super easy substitute and is not ambiguous. Thanks very much for your work; mad respect.

  • @silakanveli
    @silakanveli Před 5 lety +18

    Google frameworks in general are always most complicated in market. Happy that keras was integrated.

  • @vladvladislav4335
    @vladvladislav4335 Před 5 lety +157

    No sess.run() anymore?
    Guyz, this is huge

    • @qawsed9260
      @qawsed9260 Před 5 lety +2

      finally

    • @mickelodiansurname9578
      @mickelodiansurname9578 Před 5 lety +4

      Yeah and they just mentioned it offhand too...like as if its just a 'meh'...

    • @asspsu0112
      @asspsu0112 Před 5 lety

      rofl hahahaha

    • @sourest_lem
      @sourest_lem Před 5 lety +1

      I genuinely don't know whether this is a sarcastic remark or a genuine one aha

    • @shamimhussain396
      @shamimhussain396 Před 5 lety +2

      Well, TF's eager mode has been around since 2017. It's just no one seemed to care for it much.

  • @0824kenchan
    @0824kenchan Před 5 lety +22

    Congrads. TensorFlow can finally work like PyTorch!

  • @kuldeeppilaji
    @kuldeeppilaji Před 5 lety +21

    And TF getting better n better !

  • @yeurisadolfolopezjaime5259
    @yeurisadolfolopezjaime5259 Před 5 lety +15

    Really interesting! But I have a question. Do you guys have a date for when TensorFlowi will be compatible with Python 3.7? Thanks in advance!

  • @alberjumper
    @alberjumper Před 5 lety +45

    This TF 2.0 seems amazing! Making things hard for Pytorch.
    But, what happens now to Keras library (not tf.keras, just keras)?

    • @zxcq
      @zxcq Před 5 lety +7

      Keras developer François Chollet got hired by Google to work on tensor flow and Keras. So nothing bad happens.

    • @aligajani
      @aligajani Před 5 lety +1

      Alberto Blanco Garcés separately maintained and merged to tensorflow

    • @sastavideoswala
      @sastavideoswala Před 4 lety +1

      Keras just got integrated into tf.keras and that tf.keras is pretty powerful than normal keras.

  • @SmileyPopulation
    @SmileyPopulation Před 5 lety +8

    Sounds good and all, but I don't really see a reason to change back from PyTorch

  • @PhilippRouast
    @PhilippRouast Před 5 lety +12

    Where can we find the video for "2.0 and Porting Models" workshop mentioned at 7:55 ?

  • @TylerKoz
    @TylerKoz Před 5 lety +5

    I like to watch this stuff because I figure someday I'll understand it.

  • @arkoraa
    @arkoraa Před 5 lety +28

    When I started ML, I really wanted to learn PyTorch because I thought it would be more intuitive. But I stuck with TF because good things happen when you have 10x the number of engineers working on one thing ...

  • @mccloud35
    @mccloud35 Před 5 lety +10

    In the past couple of years, I couldn't find any researcher who hasn't switched to pytorch. Not sure whether this will make a difference.

    • @ianzen
      @ianzen Před 5 lety +3

      Yeah, pytorch seems to do everything that's mentioned here already.

  • @govindnarasimman1536
    @govindnarasimman1536 Před 5 lety +6

    The major problem is yet to be touched in at least tf.keras. u can't retrain a slightly different model with ease. Easy reloading of model for slightly different graph is the need of the hour in research.

  • @dearheart2
    @dearheart2 Před 5 lety

    "No questions asked": An expression indicating that one will not be questioned or hassled about something, typically as an incentive for sharing some information or doing something that otherwise may be the subject of suspicion, further inquiry, or punishment.

  • @debianlinus768
    @debianlinus768 Před 5 lety +2

    3:13 this is amazing

  • @lionelarucy4735
    @lionelarucy4735 Před 5 lety

    Finally! TF 1.x was not easy to use, this seems like fun, can't wait to build with this.

  • @username42
    @username42 Před 5 lety +25

    where is the colab file for this presentation ?

  • @Ven4t0r
    @Ven4t0r Před 5 lety +7

    Perfect timing to start my journey =)

    • @JamBear
      @JamBear Před 5 lety +1

      Same here, good luck!

  • @thegoodbetdotcom3069
    @thegoodbetdotcom3069 Před 5 lety +128

    I'm not a computer science person but I love watching videos where I understand the language spoken and still have no idea what is being said. A bit like listening to politicians talk I guess.

  • @perfectwebsolutions
    @perfectwebsolutions Před 5 lety +11

    Does it support python 3.7 now?

  • @hcgaron
    @hcgaron Před 5 lety

    This has been needed since... well, TF 1.x. Super excited.

  • @AbhishekKumar-mq1tt
    @AbhishekKumar-mq1tt Před 5 lety +1

    Thank u for this awesome video

  • @wohui.m4917
    @wohui.m4917 Před 5 lety +1

    I really hope TF2.0 get better. The previous version is very difficult for beginners to enter. I think it was really good to have developed it with the previous version. TF2.0 wants to include many features such as user error alerts.

  • @constantinen.mbufung1618
    @constantinen.mbufung1618 Před 5 lety +1

    this is great. this is amazing. great work guys. can't wait to get my hands dirty with tensorflow 2.0

  • @yolandyan
    @yolandyan Před 5 lety +2

    why does the script rename `tf.enable_eager_execution` to `tf.compat.v1.enable_eager..`? Doesn't v2 just enable eager by default? @7:30

  • @nomsamwayenga9303
    @nomsamwayenga9303 Před 4 lety

    Great presentation .Pytorch's getting all tensed up

  • @loremipsumproductivityengi7552

    I wish they use NumPy rather than their own as their data container

    • @TheZindarod
      @TheZindarod Před 5 lety +2

      Seriously! OpenCV already uses NumPy and this would make the experience so much better.

    • @timharris72
      @timharris72 Před 5 lety +3

      I heard that the reason why they don't use numpy is because numpy doesn't run on a gpu. I haven't confirmed this but it wouldn't surprise me if it was true.

    • @ankit007isback
      @ankit007isback Před 5 lety +1

      @@timharris72 you are right, numpy doesn't work with GPUs. PyCUDA is the closest option for this.

    • @raghavendrg3475
      @raghavendrg3475 Před 5 lety +2

      Pytorch tensors are pretty close to gpu numpys

    • @sastavideoswala
      @sastavideoswala Před 4 lety +1

      Numpy is slow so they go for C++ backend

  • @mikhailkin
    @mikhailkin Před 5 lety +2

    Any chance TF 2.0 will be able not to raise "Not enough memory" error, but calculate maximum number of samples in batch for us?

  • @hck1bloodday
    @hck1bloodday Před 5 lety +4

    i'm new to tensorflow, i have never touched machine learning code, but I have a question, why the activation functions are defined as strings? would it be easier if they where strongly typed?

    • @timogden9681
      @timogden9681 Před 5 lety

      You can do either

    • @sciencemanguy
      @sciencemanguy Před 5 lety

      They are. You can write them as strings or as something like tf.python.keras.activations.sigmoid
      The strings happen to be a bit better for documentation especially when you repeat that stuff over and over again. There are some times. Where
      From -- import --
      Just doesnt cut it because of the overlaps to different functions

    • @iliakorvigo7341
      @iliakorvigo7341 Před 5 lety

      The argument you are talking about is strongly typed, because Python is strongly typed. The type is `Union[str, Callable[[Tensor, Tensor], Tensor]]`. The string dispatch refers to built-in loss functions, otherwise you have to pass a propper Callable.

  • @mikenotangel
    @mikenotangel Před 5 lety +4

    Does someone has a tutorial of how to set in profuction the models that you train ?

  • @m.ahsan3803
    @m.ahsan3803 Před 5 lety +3

    It's amazing, but these updates are somewhat panic for those who are already working in such a big project/research. As today I faced many problems in Keras 2, I installed Keras 1.1.0 then it worked 😁

  • @aitorjara100
    @aitorjara100 Před 5 lety +4

    Video ends at 10:10

  • @TheVitalishe
    @TheVitalishe Před 5 lety +3

    I may not be getting something, but saying that the goal is user-friendly interface and then using pip instead of (or not providing) conda version isn't that making half-steps?

  • @chandlersupple3553
    @chandlersupple3553 Před 5 lety

    I'm thankful that the syntax didn't change too much.

  • @NicolasSchmidMusic
    @NicolasSchmidMusic Před 5 lety +6

    Is it compatible with all the python 3 version ? because that was a big disadvantage of the previous version

  • @shinmccold
    @shinmccold Před 5 lety +1

    Simply Amazing !! I am in love with 2.0

  • @gregs_on_tracks
    @gregs_on_tracks Před 5 lety +10

    Why is the guy not in the teaser pic?

  • @yummychen6540
    @yummychen6540 Před 5 lety +7

    so, will tf2.0 support python3.7?

    • @andrewselle3256
      @andrewselle3256 Před 5 lety +1

      Yes, as of 1.13
      github.com/tensorflow/tensorflow/issues/17022

  • @klgraham
    @klgraham Před 5 lety +3

    2.0 looks amazing! And the presentation is excellent.

  • @Eddie-rf4tp
    @Eddie-rf4tp Před 5 lety

    I need to learn so much more

  • @alan6506305
    @alan6506305 Před 5 lety

    This is the peak.

  • @masteronepiece6559
    @masteronepiece6559 Před 4 lety +1

    TensorFlow [ Keras + Pytorch ]

  • @shaheenalhirmizy9648
    @shaheenalhirmizy9648 Před 5 lety

    Wow fantastic that's the right way for developing

  • @demokraken
    @demokraken Před 5 lety +3

    Meanwhile Stanford CS224N switched to PyTorch this year

  • @luis96xd
    @luis96xd Před 5 lety

    How do I replace the function tf.contrib.seq2seq.prepare_attention method in TensorFlow 2.0?
    I want to make a Recurrent Neural Network and LSTM, with encoders and decoders, but this: "tf.contrib.seq2seq.prepare_attention" is deprecated

  • @PavanKumar-jc1qn
    @PavanKumar-jc1qn Před 5 lety

    Is google promoting keras and shelve estimator at some point in future? There was no session on enhancements in estimator(or I have missed?).

  • @FabriceNormandin95
    @FabriceNormandin95 Před 5 lety +1

    Fantastic!

  • @mingkunhuang8613
    @mingkunhuang8613 Před 5 lety +1

    without static graph, gpu memory managing will be a problem.

  • @hectorblackward
    @hectorblackward Před 5 lety +2

    Tensorflows new flexibility looks very pytorch. Am I wrong?

  • @skywalkerytx1325
    @skywalkerytx1325 Před 5 lety +1

    as a low level api user not a fan of keras, but happy to see the low level api change though.

  • @user-om6mb6ts8l
    @user-om6mb6ts8l Před 5 lety

    It's good for user?

  • @sc0tty319
    @sc0tty319 Před 5 lety

    TY!!

  • @pixel7038
    @pixel7038 Před 5 lety

    I’m a die hard PyTorch coder. Tensorflow 2.0 is practically Keras (user friendly and not practical for research) and PyTorch can use C++ inference more quickly compared to tensorflow. I recommend using wandb for hardware usage comparison. Tensorflow released 2.0 because they know they lost against PyTorch 1.0 to develop complex algorithms. Tensorflow 2.0 is recommend for people who wish to make production faster, and possibly unstable for lack in hardware control, which is okay but lacks intuition in machine learning. It’s like comparing angular 1.0 --> 2.0 to react js...we all know it this ends. The only thing Tensorflow won is marketing and the framework is already open sourced.

  • @michaelmaulick6841
    @michaelmaulick6841 Před 5 lety

    Very interested in getting TF 2 ported to the new architecture of Lucata(Semi-stealth) The new architecture should change the cost performance paradigm. Need folks that are interested in helping. Love this as it seems like all the attention is on DNN.

  • @drmosfet
    @drmosfet Před 5 lety

    Do still have to recompile, to run on older Intel CPU's?

  • @lez8624
    @lez8624 Před 5 lety

    That keras integration though

  • @Il_Dottore46
    @Il_Dottore46 Před 5 lety

    Great for prototyping but after that you need to get it in production which is really a pain in the a**, even with these new improvements, you should really start focusing a bit in that direction too.

  • @KrisKitchen
    @KrisKitchen Před 5 lety +3

    How do I install pip 😒

  • @aligajani
    @aligajani Před 5 lety

    This is cool

  • @filipgara3444
    @filipgara3444 Před 5 lety +1

    hope datasets are not still broken

  • @InfoTunnel
    @InfoTunnel Před 5 lety

    Brilliant

  • @xuancao8204
    @xuancao8204 Před 5 lety +1

    Tensorflow 2.0 = Tensorflow 1.0 + Keras?

  • @malipetek
    @malipetek Před 5 lety +3

    I love 60 fps

  • @yaminli2059
    @yaminli2059 Před 5 lety +15

    Just to prove how good pytorch is. All has been done by pytorch years ago

    • @jeffeDavid1
      @jeffeDavid1 Před 5 lety

      Ouch! that hurts. ( so true ). ps: We should use the 2, no hype is good.

    • @balavarikuti
      @balavarikuti Před 5 lety +1

      you mean chainer?

  • @piyushkatariya1040
    @piyushkatariya1040 Před 5 lety

    would love to see it working on pypy interpreter also

  • @dillonwang5673
    @dillonwang5673 Před 5 lety

    Can documents be shared?

  • @silberlinie
    @silberlinie Před 5 lety

    Can you name a concrete result, a
    product, which is created with TF
    and Keras and which can be viewed
    on your website?

    • @LorenKuich76
      @LorenKuich76 Před 5 lety

      We used it in a production app to do image recognition in Unity. Was super hard and we had to invent processes to get it deployed. Really glad they're focusing on usability now.

  • @kyleschlicht4800
    @kyleschlicht4800 Před 5 lety

    that ending tho

  • @onurkoyun2266
    @onurkoyun2266 Před 5 lety +1

    What if we want to use its low level features for research purposes? I did not like tf2. I dont like keras. I will migrate to pytorch.

  • @siarez
    @siarez Před 5 lety +2

    “If we can do it at Google, you can probably do it too, heh” lol

  • @martinschulze5399
    @martinschulze5399 Před 4 lety

    On one hand my codebase becomes much cleaner now and I highly appreciate the debugging capabilities; On the other hand: It feels like Google's Angular Framework (for web dev'): Easy things are easy to setup but if you go slightly apart from toy use cases you have to do hours of API research before you really understood the concepts that are not well explained in the docs. I started right now with TF 2 (did tf1 and pytorch + some spiking simulators before) and it feels exactly like this again. Remark on the presentation: I personally dont like this extreme branding (tf-shirts, tf-colors on the wall, a text that sounds like some advertising guys wrote it). Its better to let the devs speak in a way like the c++ gods on the c++-cons

  • @ProfessionalTycoons
    @ProfessionalTycoons Před 5 lety

    whoop whoop

  • @TanishqIsHere
    @TanishqIsHere Před 5 lety +5

    What _TF_

  • @longliangqu
    @longliangqu Před 5 lety

    How, Great Presentation. But I wonder how to present the code like yours, such as in 15:03, the code is looks pretty elegant.

    • @jamesbarker6373
      @jamesbarker6373 Před 5 lety

      Using python classes

    • @HeyMurshid
      @HeyMurshid Před 5 lety

      If you use Visual Studio Code, you can download themes for its GUI / Code highlighting. I personally use "One Dark Pro". If you copy and paste your code into Microsoft's Word/PowerPoint or Mac's Key Note, it reserves the styling and also looks amazing.

  • @takeru51
    @takeru51 Před 5 lety +1

    Where can I get a tensor shirt

  • @AayushSoni1196
    @AayushSoni1196 Před 5 lety

    I didn't get it, he says Distributed computation, Optimization on the graph aren't going anywhere with Eager execution. But afaik there's a tradeoff with those things if you don't use static graphs, the performance usually isn't as good on huge, complex models. Has Google managed to find the best of both worlds ?!

    • @julkiewicz
      @julkiewicz Před 5 lety

      It's a wild guess, but my understanding is that they do construct a graph under the hood, however also carry around a function to eagerly execute everything. So it's a bit of a hack that makes it work eagerly when you want to see it, and not eagerly when you're not trying to see it. Effectively there are two ways of evaluating everything implemented, however they do return the same results. One is fit for debugging and the other is well fit for optimization.

    • @RezaRob3
      @RezaRob3 Před 5 lety

      I was wondering about that too. A couple of points come to mind. First, some people might want a normal static graph, but the ability to step through it with a debugger. Then, after debugging, you could run it more optimized and in non-eager mode. Second, in certain RL setups for example, you might have multiple actors, each running on a single CPU core, where each actor has a (simple) batch size of one. Now, if the graph is dynamic in this case, it may do, for example, ABBA(x) or BBAA(x) or something else, where A and B are "blocks" of layers, and each of them is separately optimized on the CPU core.

  • @chientran7400
    @chientran7400 Před 5 lety

    If you want to use Keras, then pip install keras. I came here for tensorflow.

  • @Jone952
    @Jone952 Před 5 lety +1

    I'm surprised Google's using GitHub since its owned by Microsoft now

    • @m.ahsan3803
      @m.ahsan3803 Před 5 lety

      Haha It's no any problem, in these days everyone is dependent on others. On CZcams Microsoft official channel, in Play Store Microsoft apps. Collaboration is key thing in the companies

  • @viveksingh3426
    @viveksingh3426 Před 5 lety

    1:46 For installing TF 2.0.

  • @JamesWattMusic
    @JamesWattMusic Před 5 lety +1

    Does anyone actually have a real life example of a useful regression model or classifier? Most hard problems today need super high accuracy for long time periods of time, and other problems want to know "Why" a certain outcome was predicted, which usually is pretty difficult without domain expertise. Amazon store doesnt count, they can afford false positives.

    • @kaigolden3610
      @kaigolden3610 Před 5 lety

      XG Boost tells you what features are the most correlated

  • @viveksingh3426
    @viveksingh3426 Před 5 lety

    2:49 Using Keras in TF 2.0. tf.keras

  • @Deadbeatdad666
    @Deadbeatdad666 Před 5 lety

    Eager by default!!!

  • @zingg7203
    @zingg7203 Před 4 lety

    And break whatever is called Tensor flow 1

  • @liuqiqi4186
    @liuqiqi4186 Před 5 lety

    cool

  • @ruslanaltukhov6637
    @ruslanaltukhov6637 Před 5 lety

    Look, when i try this:
    print(tf.add(35, 2.5))
    python returns an error:
    TypeError: Cannot convert provided value to EagerTensor. Provided value: 2.5 Requested dtype: int32
    but if
    print(tf.add(2.5, 35))
    then all ok:
    tf.Tensor(37.5, shape=(), dtype=float32)
    what the heck?

    • @EduardoWurch
      @EduardoWurch Před 5 lety

      it's because tf.add takes two arguments, "x" and "y", such as:
      tf.math.add(
      x,
      y,
      name=None
      )
      and as exposed in the documentation "y" must have the same type as "x", so you can use a int in the "y" position if "x" is a float, but you can't do the opposite.

    • @ruslanaltukhov6637
      @ruslanaltukhov6637 Před 5 lety

      @@EduardoWurch Yeah, thanx.

    • @alefratat4018
      @alefratat4018 Před 5 lety

      Lol, apparently Google engineers seem to have no problem to violate the addition's commutative property.

  • @manjunathhegde7737
    @manjunathhegde7737 Před 5 lety

    Loads and loads of apis

  • @omarsharif4676
    @omarsharif4676 Před 5 lety

    When will the anaconda version be released ??

  • @lenli8136
    @lenli8136 Před 5 lety

    import keras as kerasflow

  • @radenmuaz7125
    @radenmuaz7125 Před 5 lety

    Tensorflow copied Pytorch.
    So what can Pytorch copy from Tensorflow now...

  • @Jasperdejongg
    @Jasperdejongg Před 5 lety

    "If we can do it at Google, then you can probably too."

  • @qwer-iq3ge
    @qwer-iq3ge Před 3 lety

    구글 사랑해요

  • @mickelodiansurname9578
    @mickelodiansurname9578 Před 5 lety +4

    Agreed pytorch is now running this race on one leg... But are we sure this is where we want ML to go? It didn't exactly pan out for three decades of MS ruling the OS market now did it? Stifling innovation is never a good thing. We are passengers again folks...just passengers ...

    • @KaustubhBadrike
      @KaustubhBadrike Před 5 lety

      If it's free, open source and without (ad) revenue, where's the market?

  • @robotarise5510
    @robotarise5510 Před 5 lety +1

    tf.keras==keras

  • @jonahhenriksson
    @jonahhenriksson Před 5 lety

    TF2 :O

  • @muhammadwaheed3166
    @muhammadwaheed3166 Před 2 lety

    ok

  • @jose3538
    @jose3538 Před 5 lety

    *with tf.Session() as sess:* arggg I hated that

  • @BurakBagdatli
    @BurakBagdatli Před 5 lety +3

    Did an AI design the new TF logo? It's horrible.

  • @josephturi
    @josephturi Před 5 lety +11

    16:32 we need more women in the industry

    • @elnurvl
      @elnurvl Před 5 lety +1

      Joseph T , why?

  • @thedeveloper4207
    @thedeveloper4207 Před 5 lety +1

    JavaScript devs in the house??