Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 38 for setInsertionPointToEnd (0.22 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

      }
    
      // Replace original terminator with new terminator for returning merged
      // execute results.
      Operation* old_terminator = execute_region->front().getTerminator();
      builder->setInsertionPointToEnd(&execute_region->front());
      builder->create<tf_device::ReturnOp>(old_terminator->getLoc(),
                                           merged_execute_launch.getResults());
      old_terminator->erase();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/parallel_execute_to_islands.cc

            island_op.getLoc(), llvm::ArrayRef<Type>{},
            island_op.getControl().getType(), island_operands);
        island_sink.getBody().push_back(new Block);
        builder.setInsertionPointToEnd(&island_sink.GetBody());
        builder.create<tf_executor::YieldOp>(island_op.getLoc(),
                                             llvm::ArrayRef<Value>{});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 19 19:47:16 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/merge_control_flow.cc

        for (auto i : return_indices[index_and_value.index()]) {
          merged_then_yield_values.push_back(
              if_op.getThenBranch().front().getTerminator()->getOperand(i));
        }
      }
      builder.setInsertionPointToEnd(&new_if_op.getThenBranch().front());
      builder.create<TF::YieldOp>(
          first_if.getThenBranch().front().getTerminator()->getLoc(),
          /*operands=*/merged_then_yield_values);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc

            island_op.getLoc(), llvm::ArrayRef<Type>{},
            tf_executor::ControlType::get(island_op.getContext()), island_operands);
        island_sink.getBody().push_back(new Block);
        builder.setInsertionPointToEnd(&island_sink.GetBody());
        builder.create<tf_executor::YieldOp>(island_op.getLoc(),
                                             llvm::ArrayRef<Value>{});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 24 21:01:40 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc

          loc, result_types, control_type, control_inputs);
      island.getBody().push_back(new Block);
      Block* block = &island.getBody().back();
      OpBuilder island_builder(original_island);
      island_builder.setInsertionPointToEnd(block);
      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 {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc

      auto launch = builder->create<tf_device::LaunchOp>(
          before_op->getLoc(), builder->getStringAttr(host_device),
          launch_result_types);
      launch.getBody().push_back(launch_block);
    
      builder->setInsertionPointToEnd(&launch.GetBody());
      builder->create<tf_device::ReturnOp>(before_op->getLoc(), launch_results);
    
      return launch;
    }
    
    // Creates a new_launch after `before_op` with `ops_to_move` from
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

            if (!tensorflow::IsTPUReplicatedCore(attr.getValue())) {
              inner_op->removeAttr(kDeviceAttr);
            }
          }
        });
      }
    
      // Add terminator.
      builder.setInsertionPointToEnd(body);
      builder.create<mlir::tf_device::ReturnOp>(last_cluster_op->getLoc(), results);
    
      // Replaces uses of cluster ops results outside of cluster with the associated
      // `tf_device.cluster` results.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

      // (operands) and 'outputs' (results).
      OpBuilder builder(module);
    
      std::vector<Type> input_types = GetValueTypes(inputs);
      std::vector<Type> output_types = GetValueTypes(outputs);
      builder.setInsertionPointToEnd(&module.getBodyRegion().back());
      func::FuncOp func_op = builder.create<func::FuncOp>(
          module.getLoc(), name,
          builder.getFunctionType(input_types, output_types));
      func_op.setPrivate();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

        return op->getResults();
      }
      mlir::Region region;
      region.push_back(new mlir::Block);
      auto saved_pos = op_builder.saveInsertionPoint();
      op_builder.setInsertionPointToEnd(&region.front());
      mlir::Operation* cloned_op = op_builder.clone(*op);
      // Add the yield operation.
      op_builder.create<mlir::TFL::YieldOp>(op_loc, cloned_op->getResults());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

      auto launch = builder->create<mlir::tf_device::LaunchOp>(
          op->getLoc(), builder->getStringAttr(host_device), launch_result_types);
      launch.getBody().push_back(launch_block);
    
      builder->setInsertionPointToEnd(&launch.GetBody());
      builder->create<mlir::tf_device::ReturnOp>(op->getLoc(), launch_results);
    
      return launch;
    }
    
    // Checks if an operation is a supported TPU embedding op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top