- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 83 for getOpt (0.17 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc
mlir::IntegerAttr num_cores_per_replica_attr = cluster->getAttrOfType<mlir::IntegerAttr>(kNumCoresPerReplicaAttr); if (num_cores_per_replica_attr) { return num_cores_per_replica_attr.getInt(); } else { return 1; } } // Get the TPUDevicesAndHosts for a cluster that is not replicated. mlir::LogicalResult GetTPUDevicesAndHostsNotReplicated(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 10 20:10:40 UTC 2024 - 32.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc
return switchn.emitOpError() << "expects a `num_outs` integer attribute"; // Expect num_outs results + 1 control output. if (switchn.getNumResults() != num_outs.getInt() + 1) return switchn.emitOpError() << "expect `num_outs` (" << num_outs.getInt() << ") results but got " << (switchn.getNumResults() - 1); // Check that operand can be broadcasted to each output type.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 42.7K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-provider/src/testFixtures/groovy/org/gradle/internal/declarativedsl/settings/SoftwareTypeFixture.groovy
import org.gradle.declarative.dsl.model.annotations.Restricted; @Restricted public interface LibraryDependencies extends Dependencies { DependencyCollector getApi(); DependencyCollector getImplementation(); DependencyCollector getRuntimeOnly(); DependencyCollector getCompileOnly();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 03 16:02:26 UTC 2024 - 30.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc
assert(id_attr && "tf.resource_arg_unique_id attribute should exist on either " "none or all arguments."); auto emplace_res = attr_id_to_internal_id.try_emplace( id_attr.getInt(), next_unique_instance_id); AddValueUniqueIDMapping(arg, emplace_res.first->getSecond()); // Only increment ID if it has been used. if (emplace_res.second) ++next_unique_instance_id; } } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 28.2K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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)