Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for getTerminator (0.33 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/merge_fusion_with_dequantize.cc

        if (!func_op) return failure();
        // The quantized fusion should have requantize and return ops at the end.
        auto return_op = dyn_cast_or_null<func::ReturnOp>(
            func_op.getRegion().getBlocks().front().getTerminator());
        if (!return_op) return failure();
        auto req_op = llvm::dyn_cast_or_null<mlir::stablehlo::UniformQuantizeOp>(
            return_op.getOperands()[0].getDefiningOp());
        if (!req_op) return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc

                                                tf_device::LaunchOp launch) {
      // Forward launch inner op results to launch op results.
      launch.replaceAllUsesWith(launch.GetBody().getTerminator()->getOperands());
    
      // For all inner ops, assign the launch device as a `device` attribute.
      if (failed(AssignDevicesInRegion(tf_dialect, launch, launch.getBody())))
        return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

    // op operands' types.
    //
    // Requires the function has exactly one block.
    void UpdateFuncType(func::FuncOp func) {
      Operation* terminator = func.front().getTerminator();
      auto return_types = llvm::to_vector<4>(terminator->getOperandTypes());
    
      FunctionType func_type = func.getFunctionType();
      if (llvm::ArrayRef(return_types) == func_type.getResults()) return;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/cluster_outlining.cc

      // Replace `tf_device.return` terminator with `std.return` in function
      // body.
      auto return_op =
          cast<tf_device::ReturnOp>(outlined_func_block->getTerminator());
      builder->setInsertionPoint(return_op);
      ReplaceClusterReturnWithReturn(return_op, builder);
    
      symbol_table->insert(outlined_func);
      return outlined_func;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc

    }
    
    LogicalResult ModifyIONodesPass::ModifyOutputNodes(
        func::FuncOp func, llvm::SmallVectorImpl<Type>& new_output_types,
        OpBuilder builder) {
      Block& block = func.front();
      auto* terminator = block.getTerminator();
      builder.setInsertionPoint(terminator);
    
      if (mlir::isa<FloatType>(output_type)) {
        return success();
      }
    
      int num_return_operands = terminator->getNumOperands();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top