- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for res_value (0.21 sec)
-
tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc
auto device_name = GetDeviceName(&inst); if (device_name.has_value()) { // Add per device costs if present. auto per_device_cost = GetPerDeviceCosts(hardware_map, &inst); flatbuffers::Offset<flatbuffers::Vector<float>> per_device_cost_offset; if (per_device_cost.has_value()) { per_device_cost_offset = builder->CreateVector(*per_device_cost); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 06:11:34 UTC 2024 - 7.5K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/models/ProjectStateStore.kt
/** * Create or load value, with load-after-store semantics */ fun loadOrCreateValue(key: K, creator: () -> V): V { val address = loadOrCreateAddress(key, creator) return readValue(key, address) } /** * If value has to be created, the original value is returned without (de)serialization *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/decompose_optionals.mlir
func.func @from_value(%arg0: tensor<f32>) { // CHECK-NOT: Optional %0 = "tf.OptionalFromValue"(%arg0) : (tensor<f32>) -> tensor<!tf_type.variant<tensor<f32>>> return } // ----- // CHECK-LABEL: @get_value func.func @get_value(%arg0: tensor<!tf_type.variant<tensor<f32>>>) { // CHECK-NOT: Optional %1 = "tf.OptionalGetValue"(%arg0) : (tensor<!tf_type.variant<tensor<f32>>>) -> tensor<f32> return } // -----
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/quantize_model.cc
LOG(ERROR) << "Couldn't import flatbuffer to MLIR."; return kTfLiteError; } // Apply quantization passes. PassManager pm((*module)->getName(), OpPassManager::Nesting::Implicit); if (debug_options.has_value()) { // Add debugging instrumentation tensorflow::InitPassManager(pm, debug_options.value()); } quant::QuantizationSpecs quant_specs; quant_specs.inference_type = tflite::TflTypeToTfType(inference_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc
// // func.func @f(...) -> ... { // yield %x : foo // } // ... // func.call f(...) -> foo auto symbol_uses = f.getSymbolUses(f->getParentOp()); if (!symbol_uses.has_value()) { return failure(); } for (auto use : *symbol_uses) { Operation* caller = use.getUser(); bool changed = false; rewriter.startOpModification(caller);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 9.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tf_tfl_passes.cc
pass_manager.addNestedPass<mlir::func::FuncOp>( mlir::TFL::CreatePrepareQuantizePass(quant_specs)); if (quant_specs.default_ranges.first.has_value() || quant_specs.default_ranges.second.has_value()) { pass_manager.addNestedPass<mlir::func::FuncOp>( mlir::TFL::CreateDefaultQuantParamsPass( quant_specs.default_ranges.first.value_or(0.0),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 18:45:51 UTC 2024 - 25.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
std::string op_name = tflite::EnumNamesBuiltinOperator()[op_code]; std::string graph_name = op_name + std::to_string(subgraph_index); auto subgraph = BuildSubGraph(graph_name, region, subgraph_index); if (!subgraph.has_value()) { mlir::emitError(region->getLoc(), "failed to build subgraph"); return -1; } subgraphs_.push_back(subgraph.value()); subgraph_index_map_[graph_name] = subgraph_index;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (2) -
tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc
function, &temp_flib_def, visited_functions)); } } if (!configs.export_entry_func_to_flib) { if (!entry_func.has_value()) return errors::FailedPrecondition( "entry function `main` must be present"); // Updates the graph and the function library definition. TF_ASSIGN_OR_RETURN(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 23:04:51 UTC 2024 - 35.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
for (const auto &index_pair : llvm::enumerate(broadcast_dimensions)) { auto old_value = out_shape[index_pair.value()]; auto new_value = shape_small[index_pair.index()]; out_shape[index_pair.value()] = std::max(old_value, new_value); } return tensorflow::GetTypeFromTFTensorShape(out_shape, element_type); } // Deprecated: This is maintained to aid in porting old code that is not yet
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (1) -
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
if (variant_ty.getSubtypes().size() == 1) { return true; } // If subtype info is not available, check if the value is used by any of // the following TensorList operations. if (!value.has_value()) { return false; } for (const mlir::OpOperand &use : value.value().getUses()) { mlir::Operation *op = use.getOwner(); if (llvm::isa<TF::TensorListGetItemOp>(op) ||
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0)