- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 263 for created (0.23 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc
if (sub_op) { sub_op->replaceAllUsesWith(island.getOutputs()); sub_op->moveBefore(block, block->begin()); island_builder.create<tf_executor::YieldOp>(loc, sub_op->getResults()); } else { island_builder.create<TF::NoOp>(island.getLoc(), TypeRange{}, ValueRange{}); island_builder.create<tf_executor::YieldOp>(loc, ValueRange{}); } return island; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 11 20:52:36 UTC 2023 - 16.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc
const Type expressed_type = value.getType(); // The value needs to be requantized. A Quantize op will be created to use // it as the operand and replace its uses. const Type new_type = state.params.castFromExpressedType(expressed_type); if (!new_type) return; auto requantize_op = builder_.create<quantfork::QuantizeCastOp>(loc, new_type, value); value.replaceAllUsesWith(requantize_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 38.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc
OpBuilder builder(merged_island.insert_point); auto new_island = builder.create<IslandOp>( merged_island.insert_point->getLoc(), result_types, operands); new_island.getBody().push_back(new Block); return new_island; } // Creates respective YieldOp for the new merged island. YieldOp CreateNewIslandYieldOp(IslandOp new_island,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc
// function, which might not exist in case of multi-signature graphs. In that // case, this pass will create a new main function, which calls signature // functions. // // An already existing @main function will be renamed by attaching a numeric // suffix like `@main_0` to avoid conflict with the newly created main function. class InsertMainFunctionPass : public PassWrapper<InsertMainFunctionPass, OperationPass<ModuleOp>> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc
auto new_launch_op = builder.create<tf_device::LaunchOp>( old_launch_op->getLoc(), old_launch_op->getDeviceAttr(), /*result_types=*/new_launch_op_results_types); new_launch_op.getBody().takeBody(old_launch_op->getBody()); new_launch_op.GetBody().getTerminator()->setOperands(new_launch_op_results); return new_launch_op; } // Create the new device launch op which wraps the copy op.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc
new_results))) return failure(); // Update the regions. The dialect conversion framework wants new regions to // be created and updated, rather than updating the old op. Thus we use an // OperationState so we can add regions to the new op. OperationState state(op->getLoc(), op->getName().getStringRef(), operands,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc
OpBuilder replacer(yield_op); island_op.getBody().push_back(new Block); replacer.create<mlir::func::ReturnOp>(yield_op.getLoc(), yield_op.getOperands()); yield_op.erase(); } // Remap the captured operands in the (former) island block with newly // created entry block arguments in the function body. {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_formation.cc
// Set insertion point to right after all operations in cluster. builder->setInsertionPoint(c.ops.back()->getNextNode()); // Create a stand-alone region to hold all instructions in the cluster. Region region; region.push_back(new Block); // Move all operations in cluster to newly created region, stripping their // "device" attribute since launch op already carries device information. Block* block = ®ion.front();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 05 13:30:21 UTC 2023 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args_test.cc
ConvertAssetArgsTest() { ctx_.loadDialect<func::FuncDialect, TF::TensorFlowDialect, tf_saved_model::TensorFlowSavedModelDialect>(); } // Parses `module_op_str` to create a `ModuleOp`. Checks whether the created // module op is valid. OwningOpRef<ModuleOp> ParseModuleOpString( const absl::string_view module_op_str) { auto module_op_ref = parseSourceString<ModuleOp>(module_op_str, &ctx_);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc
auto var_handle_op_in_init = var_handle_op->clone(); builder.insert(var_handle_op_in_init); auto const_op = builder.create<mlir::arith::ConstantOp>( session_init_func.getLoc(), tensor_attr.getType(), tensor_attr); builder.create<TF::AssignVariableOp>( session_init_func.getLoc(), llvm::ArrayRef<mlir::Type>{}, llvm::ArrayRef<mlir::Value>{var_handle_op_in_init->getResult(0),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7K bytes - Viewed (0)