WARNING:tensorflow:sample_weight modes were coerced from … to ['…']

前端 未结 4 1152
遥遥无期
遥遥无期 2021-02-01 00:29

Training an image classifier using .fit_generator() or .fit() and passing a dictionary to class_weight= as an argument.

I never go

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-01 01:12

    I have taken your Gist and installed Tensorflow 2.0, instead of TFA and it worked without any such Warning.

    Here is the Gist of the complete code. Code for installing the Tensorflow is shown below:

    !pip install tensorflow==2.0
    

    Screenshot of the successful execution is shown below:

    Update: This bug is fixed in Tensorflow Version 2.2.

提交回复
热议问题