1. 07 3月, 2018 1 次提交
  2. 14 2月, 2018 1 次提交
  3. 16 1月, 2018 1 次提交
  4. 02 12月, 2017 1 次提交
  5. 15 11月, 2017 1 次提交
  6. 14 11月, 2017 1 次提交
  7. 02 11月, 2017 1 次提交
  8. 26 8月, 2017 1 次提交
  9. 22 8月, 2017 1 次提交
  10. 08 7月, 2017 1 次提交
  11. 22 6月, 2017 1 次提交
    • C
      Avoid DeprecationWarning from inspect.getargspec (rebased) (#7035) · 04a20177
      Chris 提交于
      * Utility function to check if a callable has a given keyword argument
      
      * Added unit tests for the has_arg function
      
      * Replace uses of getargspec with the new has_arg function
      
      Not changing keras.backend, because that gives ImportErrors due to
      a circular import (conv_utils uses the backend, and is imported
      before generic_utils in utils/__init__.py)
      
      Not changing keras.utils.test_utils, because that change exposes
      (what looks to me like) a latent bug
      
      * Replace incorrect use of getargspec in test_utils.py
      
      The previous code would always fail to detect the 'weights' argument.
      Simply replacing getargspec would cause the tests for some of the legacy
      layers to fail because the passed 'weights' argument is bad.
      
      Instead, I have added a check for whether the passed `weights` array
      is empty, this avoids tripping the bug.
      
      * Replacing getargspec with has_arg in the backend modules
      
      This requires reordering imports to avoid errors caused by
      conv_utils trying to import the backend, the backend wanting to
      import generic_utils, and utils/__init__.py listing conv_utils
      before generic_utils.
      
      * Removed getargspec from legacy wrapping function
      
      Instead save the wrapped function in an attribute and call
      getargspec on this attribute during documentation generation.
      04a20177
  12. 17 6月, 2017 2 次提交
    • F
      4135aeeb
    • C
      Avoid DeprecationWarning from inspect.getargspec (#6817) · ced84c4b
      Chris 提交于
      * Utility function to check if a callable has a given keyword argument
      
      * Replace uses of getargspec with the new has_arg function
      
      Not changing keras.backend, because that gives ImportErrors due to
      a circular import (conv_utils uses the backend, and is imported
      before generic_utils in utils/__init__.py)
      
      Not changing keras.utils.test_utils, because that change exposes
      (what looks to me like) a latent bug
      
      * Added unit tests for the has_arg function
      
      * Replace incorrect use of getargspec in test_utils.py
      
      The previous code would always fail to detect the 'weights' argument.
      Simply replacing getargspec would cause the tests for some of the legacy
      layers to fail because the passed 'weights' argument is bad.
      
      Instead, I have added a check for whether the passed `weights` array
      is empty, this avoids tripping the bug.
      
      * Replacing getargspec with has_arg in the backend modules
      
      This requires reordering imports to avoid errors caused by
      conv_utils trying to import the backend, the backend wanting to
      import generic_utils, and utils/__init__.py listing conv_utils
      before generic_utils.
      ced84c4b
  13. 13 6月, 2017 1 次提交
  14. 30 4月, 2017 1 次提交
  15. 20 4月, 2017 1 次提交
  16. 10 4月, 2017 1 次提交
  17. 21 3月, 2017 1 次提交
  18. 17 3月, 2017 1 次提交
  19. 06 3月, 2017 1 次提交
  20. 11 2月, 2017 2 次提交
  21. 10 2月, 2017 1 次提交
  22. 20 1月, 2017 1 次提交
  23. 19 1月, 2017 1 次提交
  24. 20 12月, 2016 1 次提交
  25. 26 11月, 2016 1 次提交
  26. 01 11月, 2016 1 次提交
  27. 20 9月, 2016 1 次提交
  28. 28 8月, 2016 1 次提交
  29. 09 8月, 2016 1 次提交
  30. 17 7月, 2016 1 次提交
  31. 28 6月, 2016 1 次提交
  32. 07 6月, 2016 1 次提交
  33. 16 5月, 2016 1 次提交
  34. 30 4月, 2016 1 次提交
  35. 27 4月, 2016 1 次提交
  36. 17 4月, 2016 1 次提交
  37. 04 4月, 2016 1 次提交
  38. 01 4月, 2016 1 次提交