Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for _tfr_control_flow_range_for (0.14 sec)

  1. tensorflow/compiler/mlir/tfr/python/tfr_gen_test.py

    def _tfr_control_flow_nested_if(x, y, z, select):
      if select == 'x':
        return x
      elif select == 'y':
        return y
      else:
        return z
    
    
    @composite.Composite('TestInputNOp')
    def _tfr_control_flow_range_for(x):
      # TODO(fengliuai): use len(x) instead
      n = 10
      x_sum = x[0]
      for i in range(1, n):
        x_sum = math_ops.Add(x_sum, x[i])
      return x_sum
    
    
    @composite.Composite('TestInputNOp')
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 13 16:33:28 UTC 2021
    - 28.8K bytes
    - Viewed (0)
Back to top