Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 93 for getOpt (1.46 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

      DCHECK(group_size_attr != nullptr)
          << "module attribute " << kGroupSizeAttrName
          << " is required for CollectiveInfo but not found.";
      int32_t group_key = group_key_attr.getInt();
      int32_t group_size = group_size_attr.getInt();
      VLOG(2) << "Populating CollectiveInfo: group_key=" << group_key
              << " group_size=" << group_size;
      compilation_result->collective_info = {group_key, group_size, 0};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

    LogicalResult ConvertToI32Attr(IntegerAttr attr, IntegerAttr* attr_i32) {
      if (attr.getType().isInteger(/*width=*/32)) {
        *attr_i32 = attr;
        return success();
      }
    
      int64_t value = attr.getInt();
      if (value > std::numeric_limits<int>::max() ||
          value < std::numeric_limits<int>::min()) {
        return failure();
      }
    
      *attr_i32 = IntegerAttr::get(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/transforms/raise_target_subgraphs.cc

        }
      }
    }
    
    void RaiseTargetSubgraphsPass::runOnOperation() {
      ModuleOp module = getOperation();
      auto& side_effect_analysis = getAnalysis<TF::SideEffectAnalysis>();
      SmallVector<func::FuncOp> funcs(module.getOps<func::FuncOp>());
      int func_count = -1;
      for (auto func : funcs) {
        const auto& info = side_effect_analysis.GetAnalysisForFunc(func);
        for (auto& block : func) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top