Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 256 for onStop (0.28 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

        auto begin = rewriter.create<TF::ConstOp>(slice_op.getLoc(),
                                                  slice_op.getStartIndices());
        auto end = rewriter.create<TF::ConstOp>(slice_op.getLoc(),
                                                slice_op.getLimitIndices());
        auto strides =
            rewriter.create<TF::ConstOp>(slice_op.getLoc(), slice_op.getStrides());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc

            }
            operand = 0;
          }
    
          ShapedType type;
          float ratio_threshold = kBlockOverRandomSparsityRatio;
          if (isa<ConstOp>(inst)) {
            supported_block_size = sparse_op.GetFloatBlockSize();
            type = mlir::cast<ShapedType>(dyn_cast<ConstOp>(inst).getType());
          } else if (isa<QConstOp>(inst)) {
            supported_block_size = sparse_op.GetQuantizedBlockSize();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_launch_util_test.cc

                       .Input(FakeInput(DT_INT32))
                       .Attr("T", DT_INT32)
                       .Device("/job:localhost/replica:0/task:0/device:XLA_CPU:0")
                       .Finalize(node_def()));
      TF_EXPECT_OK(InitOp());
    
      // Add inputs.
      Tensor* a = CreateDeviceTensor<int32>(TensorShape({1, 3}), {1, 2, 3});
      Tensor* b = CreateDeviceTensor<int32>(TensorShape({1, 3}), {4, 5, 6});
      inputs_.push_back({nullptr, a});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.td

      }];
    
      let arguments = (ins
        StrAttr:$node_def,
        I32Attr:$op_key
      );
    
      let assemblyFormat = "attr-dict";
    }
    
    def ConstOp: TensorflowMlrt_Op<"constop", []> {
      let summary = "The tf_mlrt ConstOp";
    
      let description = [{
        The ConstOp creates a constant tensorflow::Tensor from serialized proto.
      }];
    
      let arguments = (ins
        StrAttr:$tensor_proto
      );
    
      let results = (outs
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.cc

        return "";
      }
    
      auto assigned_value_operand = assign_var_op.getOperand(1);
      auto const_op =
          llvm::dyn_cast<mlir::TF::ConstOp>(assigned_value_operand.getDefiningOp());
      if (!const_op) {
        assign_var_op->emitRemark(
            "Operand idx 1 is not a tf.ConstOp. The initializing tensor is not "
            "saved to checkpoint.");
        return "";
      }
    
      Tensor const_tensor{};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:36:55 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc

      }
    
      void runOnOperation() override;
    };
    
    // Returns True iff the otuput value of `op` is either a compile time constant
    // or bounded from the XLA compiler's perspective, even if it is not a
    // `ConstOp`.
    bool IsOutputCompileTimeConstantOrBounded(Operation* op) {
      return llvm::isa_and_nonnull<TF::ShapeOp, TF::ShapeNOp, TF::RankOp,
                                   TF::SizeOp, TF::TensorArraySizeV3Op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

        if (func.getNumArguments() == 0) {
          return;
        }
    
        auto builder = OpBuilder::atBlockBegin(&func.front());
    
        llvm::SmallDenseMap<llvm::StringRef, TF::ConstOp> const_ops;
        llvm::BitVector arg_indexes_to_remove(func.getNumArguments());
    
        // Replace arguments with const ops.
        for (BlockArgument argument : func.getArguments()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

                                        pad_beg, pad_end, 0,       0};
      auto paddings = DenseIntElementsAttr::get(padding_type, values);
      // Update pad_op paddings.
      op.setOperand(1, builder.create<TF::ConstOp>(loc, paddings));
    
      // Set input type.
      auto input = op.getOperand(0);
      SmallVector<int64_t, 4> transform_shape = {
          pad_input_shape[0], pad_input_shape[1] / block_size,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

    Value CreateScalarConst(int32_t value, OpBuilder builder, Location loc) {
      auto attr = DenseIntElementsAttr::get(
          tensorflow::GetTypeFromTFTensorShape({}, builder.getI32Type()), value);
      return builder.create<TF::ConstOp>(loc, attr);
    }
    
    Value GetR1Const(ArrayRef<int64_t> r1, OpBuilder builder, Location loc,
                     int bitwidth) {
      llvm::SmallVector<APInt, 4> values;
      int64_t rank = r1.size();
      values.reserve(rank);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.h

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    
    namespace mlir {
    namespace quant {
    
    std::optional<TF::PartitionedCallOp> ApplyUniformQuantization(
        PatternRewriter& rewriter, TF::ConstOp op,
        tensorflow::quantization::QuantizationComponentSpec& weight_spec);
    
    }  // namespace quant
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 24 07:44:40 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top