Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for input_list (0.15 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc

        mlir::tf_device::ClusterFuncOp cluster_func, mlir::OpBuilder* builder,
        llvm::SmallVectorImpl<llvm::SmallVector<mlir::Value, 4>>* input_list) {
      // Initialize the input list for each logical devices.
      input_list->reserve(num_cores_per_replica);
      for (int i = 0; i < num_cores_per_replica; ++i)
        input_list->emplace_back(llvm::SmallVector<mlir::Value, 4>());
    
      llvm::SmallVector<mlir::Value, 4> cluster_func_inputs(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:28:13 UTC 2024
    - 34K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

      // i-th logical core.
      llvm::SmallVector<llvm::SmallVector<mlir::Value, 4>, 4> input_list;
      builder->setInsertionPoint(*new_parallel_execute);
      auto result = tensorflow::ExtractInputsForLogicalDevices(
          num_cores_per_replica, cluster_func, builder, &input_list);
      if (failed(result)) return failure();
    
      const bool replicated = tpu_devices.size() != 1;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

    }
    
    // Creates a slice of the tensorlist `input_list`, starting from
    // [start_index, 0, ...0], with size [size, -1, ...-1].
    //
    // Requires that `start_index` and `size` are scalar tensors and
    // `item_position_shape` is a 1-D tensor with only one element equal to the rank
    // of an item in the tensorlist.
    TF::SliceOp CreateSliceOpForTensorList(Location loc, Value input_list,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  4. tensorflow/c/c_api.cc

                         int num_inputs) {
      std::vector<NodeBuilder::NodeOut> input_list;
      input_list.reserve(num_inputs);
      for (int i = 0; i < num_inputs; ++i) {
        input_list.emplace_back(&inputs[i].oper->node, inputs[i].index);
      }
      desc->node_builder.Input(input_list);
    }
    
    void TF_AddControlInput(TF_OperationDescription* desc, TF_Operation* input) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  5. tensorflow/cc/framework/ops.h

    class InputList {
     public:
      /// Implicitly convert a list of outputs to a list of inputs. This is useful
      /// to write code such as ops::Concat(ops::Split(x, 4)).
      InputList(const OutputList& out) {  // NOLINT(runtime/explicit)
        for (auto const& x : out) {
          inputs_.push_back(x);
        }
      }
    
      InputList(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/batchmatmul_to_einsum.cc

      LogicalResult matchAndRewrite(BatchMatMulOpType op,
                                    PatternRewriter& rewriter) const override {
        Value input_lhs = op.getX();
        Value input_rhs = op.getY();
    
        // LHS and RHS must be a ranked tensor type
        auto lhs_type = mlir::dyn_cast<RankedTensorType>(input_lhs.getType());
        auto rhs_type = mlir::dyn_cast<RankedTensorType>(input_rhs.getType());
    
        if (!lhs_type || !rhs_type) return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/unroll_batch_matmul.cc

    template <typename BatchMatMulOpType>
    LogicalResult ConvertTFBatchMatMulOp<BatchMatMulOpType>::matchAndRewrite(
        BatchMatMulOpType op, PatternRewriter& rewriter) const {
      Value input_lhs = op.getX();
      Value input_rhs = op.getY();
    
      if (!mlir::isa<RankedTensorType>(input_lhs.getType())) {
        // LHS must be a ranked tensor type
        return failure();
      }
      if (!mlir::isa<RankedTensorType>(input_rhs.getType())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.cc

              input, permutation_tensor_op.getResult());
        };
    
        Value input_lhs = bmm_op.getX();
        Value input_rhs = bmm_op.getY();
    
        Value output_lhs =
            bmm_op.getAdjX() ? create_z_x_transpose_op(input_lhs) : input_lhs;
    
        // The rhs need to be transposed if adj_y == false AND this matmul will be
        // legalized to tfl.fully_connected
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

      if (auto input_result = mlir::dyn_cast<mlir::OpResult>(src)) {
        auto* input_inst = GetIslandInnerOpOrSelf(input_result.getOwner());
        // Replaces the input node with NextIteration sink if it is a NextIteration
        // source.
        if (auto next_iter_source =
                llvm::dyn_cast<mlir::tf_executor::NextIterationSourceOp>(
                    input_inst))
          input_inst = next_iter_source.GetSink();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

      if (auto input_result = mlir::dyn_cast<mlir::OpResult>(src)) {
        auto* input_inst = GetIslandInnerOpOrSelf(input_result.getOwner());
        // Replaces the input node with NextIteration sink if it is a NextIteration
        // source.
        if (auto next_iter_source =
                llvm::dyn_cast<mlir::tf_executor::NextIterationSourceOp>(
                    input_inst))
          input_inst = next_iter_source.GetSink();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
Back to top