Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for hasOneUse (0.09 sec)

  1. tensorflow/compiler/mlir/lite/transforms/optimize.cc

        //  - gather_nd->transpose->gather_nd->transpose.
        if (!gather_nd_first->hasOneUse()) return failure();
        auto transpose_first =
            dyn_cast_or_null<TFL::TransposeOp>(*(gather_nd_first->user_begin()));
        if (!transpose_first || !transpose_first->hasOneUse()) return failure();
        auto gather_nd_second =
            dyn_cast_or_null<TFL::GatherNdOp>(*(transpose_first->user_begin()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

                                               fuse_bias_constant);
        }
        return output_type;
      }
    
      static bool HasOneUseByQuantizeOp(Operation* op) {
        return op->hasOneUse() &&
               (FindUserOfType<stablehlo::UniformQuantizeOp>(op) != nullptr ||
                FindUserOfType<TFL::QuantizeOp>(op) != nullptr);
      }
    };
    
    // Rewrites `stablehlo.convolution` into fused `tfl.conv_2d`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

        tensor_index_map_[subgraph_index][tensor_name] = tensors.size();
        std::optional<BufferOffset<tflite::QuantizationParameters>>
            quant_parameters;
        if (value.hasOneUse()) {
          auto stats_op =
              llvm::dyn_cast<mlir::quantfork::StatisticsOp>(*value.user_begin());
          if (stats_op) {
            quant_parameters = GetQuantizationForQuantStatsOpOutput(stats_op);
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      using OpRewritePattern<ReshapeOp>::OpRewritePattern;
    
      LogicalResult matchAndRewrite(ReshapeOp reshape,
                                    PatternRewriter& rewriter) const override {
        if (!reshape.getShape().hasOneUse()) return failure();
    
        DenseIntElementsAttr shape;
        if (!matchPattern(reshape.getShape(), m_Constant(&shape))) {
          return failure();
        }
        // It is already a 1-D constant, no change.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
Back to top