Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 140 for Enumerated (0.33 sec)

  1. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.cc

    }
    
    SmallVector<Value> CloneOpWithReplacedOperands(
        OpBuilder& builder, Operation* op, const ArrayRef<Value> new_operands) {
      IRMapping mapping;
      for (const auto& arg : enumerate(new_operands)) {
        mapping.map(op->getOperand(arg.index()), arg.value());
      }
      return builder.clone(*op, mapping)->getResults();
    }
    
    FailureOr<int32_t> CastI64ToI32(const int64_t value) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc

          function.getNumArguments() - var_handle_shared_names.size();
      int new_argument_index = 0;
      llvm::SmallVector<int, 4> argument_indices_to_remove;
      for (auto resource_and_index : llvm::enumerate(resources)) {
        const auto& resource = resource_and_index.value();
        if (!resource.live_value) {
          // Ignore non resource arguments.
          ++new_argument_index;
          continue;
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/JavaPathType.java

     *
     * <h2>Relationship with Java compiler standard location</h2>
     * This enumeration is closely related to the {@link JavaFileManager.Location} enumerations.
     * A difference is that the latter enumerates input and output files, while {@code JavaPathType}
     * enumerates only input dependencies. Another difference is that {@code JavaPathType} contains
     * some enumeration values used only at runtime and therefore not available in {@code javax.tool},
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tf_graph_optimization_pass.cc

        return "runs passes registered as tensorflow::GraphOptimizationPass";
      }
    
     private:
      void runOnOperation() override {
        // Verify all passes requested were registered/found.
        for (auto pass_it : llvm::enumerate(passes_)) {
          if (pass_it.value() == nullptr) {
            mlir::emitError(mlir::UnknownLoc::get(&getContext()))
                << "could not find pass " << cl_pass_list[pass_it.index()];
            return signalPassFailure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

              contracting_dims.add(c)
          x_signature = [
              None if c not in contracting_dims else x_shape[cidx]
              for cidx, c in enumerate(x_labels)
          ]
          y_signature = [
              None if c not in contracting_dims else y_shape[cidx]
              for cidx, c in enumerate(y_labels)
          ]
        return x_shape, y_shape, bias_shape, x_signature, y_signature
    
      def _create_einsum_model(
          self,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/tac/transforms/tac_filter.cc

                  // filter.
                  return a_is_function_exclude > b_is_function_exclude;
                });
    
      for (const auto& tac_filter : llvm::enumerate(tac_filters_->tac_filters())) {
        SmallVector<Operation*> filtered_ops;
        ApplyTacFilter(module, tac_filter.value(), filtered_ops, builder);
        PrintTacFilterResult(module.getLoc(), tac_filter.value(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

          llvm::SmallDenseMap<Value, int> outputs_replaced;
          SmallVector<Type, 4> output_types;
          output_types.reserve(quantizing_op->getNumResults());
          for (const auto& enumerated_result :
               llvm::enumerate(quantizing_op->getResults())) {
            Value result = enumerated_result.value();
            Type result_type = result.getType();
            if (result_type.isa<NoneType>()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc

      tpu_devices.reserve(system_devices.size());
    
      auto lookup = [&devices](ParsedDevice device_spec) {
        device_spec.has_type = true;
        device_spec.type = kDeviceTPU;
        // Enumerate all the available TPUs.
        device_spec.has_id = false;
    
        llvm::SmallVector<ParsedDevice, 8> host_tpu_devices =
            FindMatchingDevices(devices, device_spec);
    
        // Sort devices by id.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:10:40 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc

      for (int i = 0; i < op->getNumRegions(); ++i) {
        state.addRegion();
      }
      Operation* new_op = builder.create(state);
      for (const auto& indexed_regions : llvm::enumerate(op->getRegions())) {
        Region& region = op->getRegion(indexed_regions.index());
        IRMapping mapping;
        indexed_regions.value().cloneInto(&region, mapping);
      }
      int new_position = 0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc

          case_op.getIsStateless(), case_op.getBranches().size());
      CopyDeviceAndUnderscoredAttributes(case_op, case_region);
    
      for (const auto& item : llvm::enumerate(case_region.getBranches())) {
        CreateCall(case_op, case_op.branch_function(item.index()),
                   /*caller_region=*/item.value(), case_op.getInput(),
                   /*use_region_args=*/false,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top