Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 83 for getDefiningOp (0.54 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h

      // which is cyclical.
      return success();
    }
    
    inline OpFoldResult foldIdempotent(Operation* op) {
      if (op->getNumOperands() == 1) {
        auto* argumentOp = op->getOperand(0).getDefiningOp();
        if (argumentOp && op->getName() == argumentOp->getName()) {
          // Replace the outer operation output with the inner operation.
          return op->getOperand(0);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

                  extern_value.getDefiningOp())) {
            extern_values.insert(extern_value);
            continue;
          }
          // Add constant at start of region.
          auto const_builder =
              OpBuilder(&it.value()->front(), it.value()->front().begin());
          auto const_value = const_builder.clone(*extern_value.getDefiningOp());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc

            if (!element_type.isF32()) {
              continue;
            }
    
            // Skip when there is any already existing CustomAggregatorOp found.
            Operation *defining_op = input.get().getDefiningOp();
            if (dyn_cast_or_null<TF::CustomAggregatorOp>(defining_op)) {
              continue;
            }
    
            // Skip calibration when the given operand comes from a constant.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

           llvm::zip(cluster_terminator->getOperands(), cluster.getResults())) {
        Value cluster_terminator_operand = std::get<0>(result);
        if (cluster_terminator_operand.getDefiningOp() &&
            cluster.getOperation()->isProperAncestor(
                cluster_terminator_operand.getDefiningOp())) {
          new_cluster_results.push_back(cluster_terminator_operand);
          new_cluster_result_types.push_back(cluster_terminator_operand.getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

      // We need to make sure both splits & split dim are constants.
      auto splits = splitv_op.getSizeSplits().getDefiningOp();
      mlir::DenseIntElementsAttr splits_attr;
      if (!splits || !matchPattern(splits, m_Constant(&splits_attr)))
        return failure();
    
      auto split_dim = splitv_op.getSplitDim().getDefiningOp();
      mlir::ElementsAttr split_dim_attr;
      if (!split_dim || !matchPattern(split_dim, m_Constant(&split_dim_attr)))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

      // Broadcast bias value if unmatched with output shape.
      auto bcast_op = TryCast<BroadcastInDimOp>(bias_op.getDefiningOp(),
                                                /*name=*/"broadcast_in_dim_op");
    
      if (failed(bcast_op)) {
        bcast_op = TryCast<DynamicBroadcastInDimOp>(
            bias_op.getDefiningOp(),
            /*name=*/"dynamic_broadcast_in_dim_op");
      }
      // Update the bias type for both static and dynamic broadcasts.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

    mlir::Operation* GetXlaShardingFromOperand(Value value) {
      Value value_to_visit = value;
      if (auto read_var = value_to_visit.getDefiningOp<mlir::TF::ReadVariableOp>())
        value_to_visit = read_var.getResource();
    
      if (auto partitioned_input =
              value_to_visit.getDefiningOp<mlir::TF::TPUPartitionedInputV2Op>()) {
        return NullUnlessSharded(partitioned_input);
      }
    
      return nullptr;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

        // Only values defined by IslandOp were inserted in the worklist.
        IslandOp current_island = cast<IslandOp>(control_barrier.getDefiningOp());
    
        for (auto control_input : current_island.getControlInputs()) {
          ops_connected_to_fetch->insert(control_input.getDefiningOp());
          if (IsNoOpControlBarrier(control_input))
            control_barrier_worklist.push(control_input);
        }
        current_island.erase();
    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/tensor_array_ops_decomposition.cc

              return write.getValue().getType();
            } else if (auto split =
                           llvm::dyn_cast<TF::TensorArraySplitV3Op>(user)) {
              if (!split.getLengths().getDefiningOp() ||
                  !llvm::isa<TF::ConstOp>(split.getLengths().getDefiningOp())) {
                return std::nullopt;
              }
              RankedTensorType t;
              int64_t count;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

          if (matchPattern(quantize_operand, m_Constant(&attr))) {
            // Const-> QuantizeOp pattern will be handled separately.
            return failure();
          }
          if (Operation* quantizing_op = quantize_operand.getDefiningOp()) {
            quantizing_ops.push_back(quantizing_op);
          }
        }
    
        tensorflow::DataType inference_type =
            quant_params_.quant_spec.inference_type;
        bool weight_only_quantization =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
Back to top