- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 380 for getLoc (0.11 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/pin_ops_with_side_effects.cc
llvm::SmallVector<Value, 1> control_tokens; for (auto *op : ops_with_side_effects) { // Wrap all side-effect producing/dependent operations in a ControlNodeOp. builder.setInsertionPoint(op); Location loc = op->getLoc(); auto outer_op = builder.create<ControlNodeOp>( loc, op->getResultTypes(), ControlType::get(op->getContext()), control_tokens); Region region; Block *new_block = new Block;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc
<< "references an unknown entry function " << entry_func_symbol; } OpBuilder builder(module.getContext()); OwningOpRef<ModuleOp> stablehlo_module = builder.create<ModuleOp>(op.getLoc()); builder.setInsertionPointToEnd(stablehlo_module->getBody()); // Copy all referenced StableHLO functions to the new module. WalkResult result = WalkReachableFunctions( entry_func,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_save_op.cc
for (auto var_handle_op : var_handle_ops) { tensor_names.emplace_back(var_handle_op.getSharedName().str()); auto read_var_op = builder.create<TF::ReadVariableOp>( var_handle_op.getLoc(), var_handle_op.resource_subtype(), var_handle_op); tensor_values.emplace_back(read_var_op.getResult()); } TF::ConstOp tensor_names_const = CreateTensorNamesConst(tensor_names, builder);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc
.AsMap(); auto attr = ReadAttr(flex_buffer_map, &builder, custom_op.getCustomCode().str()); OperationState op_state(custom_op.getLoc(), custom_op.getCustomCode().str()); op_state.addOperands(custom_op.getOperands()); llvm::SmallVector<mlir::Type, 4> output_tys; for (int i = 0; i < custom_op.getNumResults(); i++) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 24 06:08:43 UTC 2024 - 10.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_patterns.td
def DenseElementsAttr : ElementsAttrBase< CPred<"$_self.isa<DenseElementsAttr>()">, "non-opaque constant tensor">; def CreateGatherNdOp : NativeCodeCall< "$_builder.create<TF::GatherNdOp>($0.getLoc(), $0.getType(), $1, $2)">; def CreateTFCastOpI32 : NativeCodeCall< "CreateTFCastOpI32(&$_builder, $_loc, $0, $1)">; // Convert to std constant for statically shaped, non-opaque constants.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 10.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/scatter.h
permutation_array.push_back(i); } } auto permutation_and_shape = GetPermutationAndTransposedShape( permutation_array, operand_type, rewriter); Location loc = scatter_op.getLoc(); auto transposed_operand = rewriter.create<mhlo::TransposeOp>( loc, permutation_and_shape.shape, operands[0], permutation_and_shape.permutation); Value new_indices = indices;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc
void PropagateUsage(TF::ReadVariableOp read_variable_op, ElementsAttr value) { OpBuilder builder(read_variable_op); read_variable_op->getResult(0).replaceAllUsesWith( GetConstOpFromElementsAttr(value, builder, read_variable_op->getLoc())); } // Propagates a resource usage across the graph where // 'user_op' uses a resource and is passed to this op at 'argument_index'. // This resource should be replaced by 'value'. // Output params:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 09:56:53 UTC 2024 - 19.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/import_quant_stats_pass.cc
std::unique_ptr<OperationPass<func::FuncOp>> CreateImportQuantStatsPassForTFControlDialect(const std::string &stats_str) { auto get_name_func = [](Operation *op) { Location loc = tensorflow::GetLocationWithoutOpType(op->getLoc()); if (auto name = loc.dyn_cast<NameLoc>()) { return name.getName().strref(); } else if (auto fused_name = loc.dyn_cast<FusedLoc>()) { for (auto sub_loc : fused_name.getLocations()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 08 10:41:08 UTC 2024 - 9.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h
} else { return failure(); } } rewriter.setInsertionPointAfter(candidate_op); OperationState new_state(candidate_op->getLoc(), candidate_op->getName().getStringRef(), inputs, output_types, candidate_op->getAttrs()); for (int i = 0; i < candidate_op->getNumRegions(); ++i) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.9K bytes - Viewed (0)