Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for max_iterations_ (0.27 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference_pass.cc

        }
    
        auto failure_or_converged = InferModuleShape(
            getOperation(), max_iterations_, /*ops_to_skip=*/{}, input_shapes_);
        if (failed(failure_or_converged)) return signalPassFailure();
        if (!failure_or_converged.value()) {
          getOperation().emitError()
              << "shape inference pass did not reach convergence after "
              << max_iterations_;
          return signalPassFailure();
        }
      }
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

                                              int64_t max_iterations);
    
      // Shape propagation for call/control flow ops.
      // Returns a failure() on error, otherwise returns true to indicate that it
      // reached convergence, false otherwise.
      FailureOr<bool> PropagateShapeIntoAttachedFunctions(Operation* op,
                                                          int64_t max_iterations);
    
      // Shape propagation for region based control flow.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

        are only kept in the context rather than the ops folded/IR mutated.
      }];
    
      let constructor = "TF::CreateTFShapeInferencePass()";
    
      let options = [
        Option<"max_iterations_", "max-iterations", "int64_t", /*default=*/"10",
               "Maximum shape inference iterations">,
        Option<"input_arg_shapes_", "input-arg-shapes", "std::string", /*default=*/"",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/tests/mlrt/async_while.mlir

    // CHECK-LABEL: func.func private @"map/while_cond"
    func.func private @"map/while_cond"(%loop_count: tensor<i32>, %max_iterations: tensor<i32>, %handle: tensor<?x!tf_type.resource>, %flow_in: tensor<*xf32>, %matrix: tensor<3x3xf32>) -> tensor<i1> {
      %0 = "tf.Less"(%loop_count, %max_iterations) : (tensor<i32>, tensor<i32>) -> tensor<i1>
      return %0 : tensor<i1>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops_pass.cc

    // `max_iterations` are reached. Returns failure if resource ops decomposition
    // does not converge after `max_iterations`.
    // TODO(prakalps): This can be useful to a lot of other passes in bridge.
    // Extract out as a separate utility.
    LogicalResult ApplyPatternsLocallyUntilConverged(
        Operation* op_with_regions, FrozenRewritePatternSet& patterns,
        int max_iterations) {
      bool changed = true;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:01:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_ops.td

        The Pmap executes body function in parallel for all ranges up to $max_iterations.
    
        The pseudo code:
          for(int i = 0; i < $max_iterations; i++) {
            body_fn(MlrtFture($tensor_list_or_flow_in[i]),
                    MlrtPromise($tensor_list_or_flow_in[i+1]),
                    i, i, $invariant_args);
          }
    
          return $tensor_list_or_flow_in[$max_iterations]
      }];
    
      let arguments = (ins
        TF_Tensor:$max_iterations,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:35:32 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.td

        The Pmap executes body function in parallel for all ranges up to $max_iterations.
    
        The pseudo code:
          for(int i = 0; i < $max_iterations; i++) {
            body_fn(MlrtFture($tensor_list_or_flow_in[i]),
                    MlrtPromise($tensor_list_or_flow_in[i+1]),
                    i, i, $invariant_args);
          }
    
          return $tensor_list_or_flow_in[$max_iterations]
      }];
    
      let arguments = (ins
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.h

    // reached convergence, false otherwise.
    // If input shapes are provided, first refines the `main` function using
    // InferShapeForFunction.
    FailureOr<bool> InferModuleShape(ModuleOp module, int64_t max_iterations = 10,
                                     ArrayRef<TypeID> ops_to_skip = {},
                                     ArrayRef<ArrayRef<int64_t>> input_shapes = {});
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/TopKSelector.java

        int minThresholdPosition = 0;
        // The leftmost position at which the greatest of the k lower elements
        // -- the new value of threshold -- might be found.
    
        int iterations = 0;
        int maxIterations = IntMath.log2(right - left, RoundingMode.CEILING) * 3;
        while (left < right) {
          int pivotIndex = (left + right + 1) >>> 1;
    
          int pivotNewIndex = partition(left, right, pivotIndex);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TopKSelector.java

        int minThresholdPosition = 0;
        // The leftmost position at which the greatest of the k lower elements
        // -- the new value of threshold -- might be found.
    
        int iterations = 0;
        int maxIterations = IntMath.log2(right - left, RoundingMode.CEILING) * 3;
        while (left < right) {
          int pivotIndex = (left + right + 1) >>> 1;
    
          int pivotNewIndex = partition(left, right, pivotIndex);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.2K bytes
    - Viewed (0)
Back to top