1. 09 4月, 2014 5 次提交
    • Frederic's avatar
      Make opt faster by calling get_scalar_constant_value() only on constant. · 64d621b4
      Frederic 提交于
      This last commit finish to bring from 584s to 66s the slow scan test:
      theano/scan_module/tests/test_scan.py:T_Scan.test_hessian_bug_grad_grad_two_scans
      
      The changed optimization:
      
      local_abs_merge, local_mul_switch_sink,
      local_upcast_elemwise_constant_inputs,
      local_remove_switch_const_con
      
      are called on nodes that aren't yet part of the graph, during
      local_subtensor_merge optimization. They aren't supposed to work on
      node that are in the graph, but as they called
      get_scalar_constant_value() they traversed it very frequently!
      
      This pre_greedy_local_optimizer call is needed as it would introduce
      too much scrapt that will be optimized away. So we preoptimize the
      graph.
      
      As now we do the constant_folding in the phase
      (canonicalize/stabilize/specialize) where those changed opt are used,
      they can work directly on Constant. Other opt will make sure their
      inputs get constant if possible.
      64d621b4
    • Frederic's avatar
      Make get_scalar_constant_value() recurse less. · 231e51f0
      Frederic 提交于
      231e51f0
    • Frederic's avatar
      Move numpy_scalar outside of the function that use it. · e8d45dc8
      Frederic 提交于
      Indent what is inside. I'll use that in the next commit. This will make the change more visible.
      e8d45dc8
    • abergeron's avatar
      Merge pull request #1798 from HapeMask/py3k-fixes · 4a77221b
      abergeron 提交于
      Fixed python3 compat issue introduced in 80ebe9c3.
      4a77221b
    • Gabe Schwartz's avatar
      Fixed python3 compat issue introduced in 80ebe9c3. · 46b95d95
      Gabe Schwartz 提交于
      Bytes need to be decoded prior to performing any string operations, such
      as split/strip, on them.
      46b95d95
  2. 08 4月, 2014 4 次提交
  3. 07 4月, 2014 3 次提交
  4. 04 4月, 2014 7 次提交
  5. 03 4月, 2014 4 次提交
  6. 02 4月, 2014 5 次提交
  7. 01 4月, 2014 12 次提交