Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 83 for getDefiningOp (0.37 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

                                        Value max_size, Operation* op,
                                        Type element_dtype, OpBuilder builder,
                                        Value* buffer) {
      auto max_count_op = max_size.getDefiningOp();
      if (!max_count_op) return op->emitOpError("unknown max element count");
      auto max_count_const_op = llvm::dyn_cast<TF::ConstOp>(max_count_op);
      if (!max_count_const_op) return op->emitOpError("unknown max element count");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_collective.cc

            all_reduce.getGroupSize()
                .getDefiningOp<TF::CollectiveAssignGroupV2Op>();
    
        if (assign_group) {
          // Found a group assignment. Use replica_groups to represent group
          // assignment.
    
          if (assign_group != all_reduce.getGroupKey()
                                  .getDefiningOp<TF::CollectiveAssignGroupV2Op>()) {
            return all_reduce->emitOpError()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc

        std::vector<std::vector<int>> supported_block_size;
        for (int operand : sparse_operands) {
          auto* op = sparse_op.getOperation();
          auto value = op->getOperand(operand);
    
          auto* inst = value.getDefiningOp();
          if (!inst) {
            continue;
          }
    
          // There could be a Dequantize op after the weight tensor in cases like
          // fp16 post-training quantization. We need to get the weight from the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

      WalkResult ready_to_schedule = op.walk([&](Operation* nested_op) {
        for (Value operand : nested_op->getOperands()) {
          Operation* defining_op = operand.getDefiningOp();
          if (!defining_op) continue;
          Operation* producer_in_block = block->findAncestorOpInBlock(*defining_op);
          if (producer_in_block && producer_in_block != &op &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc

      }
    
      for (int i = 0; i < original_launch_op->getNumResults(); i++) {
        Value operand = original_launch_op.GetBody().getTerminator()->getOperand(i);
        auto defining_op = operand.getDefiningOp();
        if (defining_op != nullptr &&
            defining_op->getParentOp() == reduced_launch_op.getOperation()) {
          auto iter = reduced_return_operand_map.find(operand);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_patterns.td

                                                   "$0.getDefiningOp())">;
    def : Pat<(MHLO_DotOp:$old_value StaticShapeTensorOf<[TF_ElementType]>:$lhs,
                   StaticShapeTensorOf<[TF_ElementType]>:$rhs, $precision_config),
              (ConvertDotOp $old_value)>;
    
    def ConvertDotGeneralOp : NativeCodeCall<"ConvertDotGeneralOp($_builder, "
                                                   "$0.getDefiningOp())">;
    def : Pat<(MHLO_DotGeneralOp:$old_value
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 03 08:58:22 UTC 2024
    - 34K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc

      // the `src_root` cluster.
      ValuesConstraintSet constraints = members[src_root].constraints;
      members[dst_root].constraints.Walk([&](Value v, ValueConstraint constraint) {
        Operation *op = v.getDefiningOp();
        if (op && filter(op)) constraints.Insert(v, constraint);
      });
    
      // Update `src_root` constraints only if we can propagate them.
      if (succeeded(PropagateValuesConstraints(worklist, filter, policies,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

            continue;
          }
          // Add constant at start of region.
          auto const_builder = OpBuilder::atBlockBegin(&region->front());
          auto const_value = const_builder.clone(*extern_value.getDefiningOp());
          replaceAllUsesInRegionWith(extern_value, const_value->getResult(0),
                                     *region);
        }
      }
    
      return llvm::to_vector<4>(extern_values);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc

        for (Value input : island.getControlInputs()) {
          Operation* def = input.getDefiningOp();
          DCHECK_EQ(def->getParentOp(), graph);
          try_update_current_candidate(def);
        }
    
        // Check island data operands.
        island.walk([&](Operation* op) {
          for (Value input : op->getOperands()) {
            Operation* def = input.getDefiningOp();
            if (!def || def->getParentOp() != graph) continue;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

        all_stats_ops.pop_back();
    
        if (Operation* def = stats_op.getArg().getDefiningOp()) {
          if (!IsSameScaleOp(def, op_quant_scale_spec_getter)) {
            continue;
          }
          for (Value input : def->getOperands()) {
            if (auto next_stats = dyn_cast_or_null<quantfork::StatisticsOp>(
                    input.getDefiningOp())) {
              redundant_stats_ops.insert(next_stats);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
Back to top