Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 89 for getOperands (0.17 sec)

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

          ancestor[child] = &op;
          for (Operation* predecessor : ctrlPredecessors(child)) {
            if (predecessor->getBlock() == &block) {
              incoming_ctrl_edges++;
            }
          }
          for (Value v : child->getOperands()) {
            if (v.getParentBlock() == &block) {
              incoming_data_edges++;
            }
          }
        });
        remaining_incoming_data_edges[&op] = incoming_data_edges;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 08 17:01:11 UTC 2022
    - 5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

            updated_results.reserve(op_to_inline.getNumOperands());
            for (Value operand : op_to_inline.getOperands())
              updated_results.push_back(mapper.lookup(operand));
            break;
          }
    
          // Otherwise, clone the op here.
          rewriter.clone(op_to_inline, mapper);
        }
        rewriter.replaceOp(op, updated_results);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/gpu_fusion.cc

        // Build the newly fused operation to replace the batch norm
        OperationState state(batch_norm.getLoc(),
                             _FusedBatchNormExOp::getOperationName());
        state.addOperands(batch_norm.getOperands());
        if (side_input) state.operands.push_back(side_input);
        state.addTypes(batch_norm.getResultTypes());
        state.addAttributes(batch_norm->getAttrs());
        Operation *op = rewriter.create(state);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_read_for_write.cc

        }
    
        if (read_operands.empty()) continue;
    
        // Update caller and function types with new read operands.
        auto operands = llvm::to_vector<4>(cluster_func.getOperands());
        operands.append(read_operands.begin(), read_operands.end());
    
        auto loc = cluster_func.getLoc();
        auto new_cluster_func = builder.create<tf_device::ClusterFuncOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 16:54:40 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/group_by_dialect.cc

      // All operand values in our set not produced as result by some op in our set.
      llvm::DenseSet<Value> inputs_seen;
      for (Operation* outer : ops) {
        outer->walk([&](Operation* op) {
          for (Value operand : op->getOperands()) {
            if (!all_internal_results.contains(operand)) {
              if (!inputs_seen.contains(operand)) {
                inputs->push_back(operand);
                inputs_seen.insert(operand);
              }
            }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/translate/split_into_island_per_op_pass.cc

        Value operand = yield.getOperand(0);
        auto identity = builder.create<TF::IdentityOp>(island.getLoc(),
                                                       operand.getType(), operand);
        yield.setOperand(0, identity.getOutput());
      } else {
        auto identity_n = builder.create<TF::IdentityNOp>(
            island.getLoc(), yield.getOperandTypes(), yield.getOperands());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/partitioned_topological_sort.cc

          if (*this_partition == op_partition &&
              !unscheduled_op
                   .walk([&](Operation *op) {
                     return llvm::all_of(op->getOperands(),
                                         [&](Value operand) {
                                           return is_ready(operand,
                                                           &unscheduled_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/graph_pruning.cc

    void VisitOpOperands(GraphOp graph, Operation* op,
                         llvm::SmallPtrSetImpl<Operation*>* reachable_ops,
                         llvm::SmallVectorImpl<Operation*>* ops_to_visit) {
      for (Value operand : op->getOperands())
        VisitOpOperand(graph, operand, reachable_ops, ops_to_visit);
    }
    
    // Visits an op and it's associated operands. IslandOps are handled differently
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/util.h

      if (!return_op) return failure();
      if (return_op.getNumOperands() != 1) return failure();
    
      ReductionOp reduce_op = dyn_cast_or_null<ReductionOp>(
          return_op.getOperands().front().getDefiningOp());
      if (!reduce_op) return failure();
      if (reduce_op.getLhs() != body.getArgument(0) ||
          reduce_op.getRhs() != body.getArgument(1))
        return failure();
    
      return success();
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 08 11:35:25 UTC 2023
    - 6.4K bytes
    - Viewed (0)
Back to top