Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 102 for getOpt (0.11 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc

      llvm::SmallSet<int, 4> dynamic_arg_idx_set;
      if (dynamic_arg_idx) {
        for (auto idx : dynamic_arg_idx.getValue()) {
          dynamic_arg_idx_set.insert(mlir::dyn_cast<IntegerAttr>(idx).getInt());
        }
      }
    
      for (auto operand_type_and_idx : llvm::enumerate(op.getOperandTypes())) {
        Type operand_type = operand_type_and_idx.value();
        int index = operand_type_and_idx.index();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/check_control_dependencies.cc

      }
      TF::SideEffectAnalysis side_effect_analysis(module);
      // Use a global path index across functions to make it easier to follow one
      // path for debugging purposes.
      int path_idx = 0;
      for (auto func : module.getOps<func::FuncOp>()) {
        if (func.isExternal()) continue;
        const auto& analysis_for_func =
            side_effect_analysis.GetAnalysisForFunc(func);
        CheckControlDependenciesForFunc(func, analysis_for_func, path_idx);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 10.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_partitioning.cc

        const bool packed_input = partitioned_input.getIsPacked();
        int num_cores_per_replica = partitioned_input.getN();
        if (num_cores_per_replica_attr) {
          num_cores_per_replica = num_cores_per_replica_attr.getInt();
        } else if (packed_input) {
          return partitioned_input->emitOpError()
                 << "num cores per replica unavailable";
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/parallel_execute_to_islands.cc

      llvm::SmallVector<tf_executor::IslandOp, 4> parallel_execute_op_islands;
      getOperation().walk([&](tf_executor::GraphOp graph_op) {
        for (auto island_op : graph_op.getOps<tf_executor::IslandOp>()) {
          if (!island_op.WrapsSingleOp()) {
            island_op.emitError(
                "tf_executor.island must perfectly wrap a single op");
            signalPassFailure();
          }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 19 19:47:16 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/python/saved_model_to_tfl_flatbuffer.cc

    Status HandleInputOutputArraysWithModule(
        const toco::ModelFlags& model_flags,
        mlir::OwningOpRef<mlir::ModuleOp>* module) {
      mlir::func::FuncOp entry_function = nullptr;
      for (auto func : module->get().getOps<mlir::func::FuncOp>()) {
        if (auto tf_attrs =
                func->getAttrOfType<mlir::DictionaryAttr>("tf.entry_function")) {
          // TODO(b/184697652): There could be multiple entry functions. Let's
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc

      // Apply transformation on each function. For recursive call case, another
      // function can be modified at the same time so avoid running functions in
      // parallel.
      for (auto func : module_op.getOps<func::FuncOp>()) {
        if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) {
          func.emitError() << "quant-quantize-weights failed.";
          signalPassFailure();
        }
      }
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/stats/ApiAdminStatsAction.java

            final OsCpuObj osCpuObj = new OsCpuObj();
            osObj.cpu = osCpuObj;
            osCpuObj.percent = osProbe.getSystemCpuPercent();
            final OsStats osStats = osProbe.osStats();
            osObj.loadAverages = osStats.getCpu().getLoadAverage();
            return osObj;
        }
    
        private EngineObj getEngineObj() {
            final EngineObj engineObj = new EngineObj();
            try {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h

        ArrayRef<int64_t> int64_array);
    
    // Returns the first operation with the given type in the function.
    template <typename OpType>
    OpType FindOperationOfType(func::FuncOp function) {
      for (auto op : function.getBody().getOps<OpType>()) {
        return op;
      }
      return nullptr;
    }
    
    // Returns the first user of the given operation, optionally of the given
    // type if provided. If there is no user or user of type, return nullptr.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

                function.getArgAttrOfType<mlir::IntegerAttr>(
                    i, kResourceArgUniqueIdAttr)) {
          (*func_def.mutable_resource_arg_unique_id())[i] =
              resource_arg_unique_id_attr.getInt();
        }
      }
    
      return flib_def->AddFunctionDef(std::move(func_def));
    }
    
    Status Exporter::Convert(mlir::ModuleOp module,
                             const GraphExportConfig& configs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

                function.getArgAttrOfType<mlir::IntegerAttr>(
                    i, kResourceArgUniqueIdAttr)) {
          (*func_def.mutable_resource_arg_unique_id())[i] =
              resource_arg_unique_id_attr.getInt();
        }
      }
    
      return flib_def->AddFunctionDef(std::move(func_def));
    }
    
    Status Exporter::Convert(mlir::ModuleOp module,
                             const GraphExportConfig& configs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
Back to top