Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 54 for sliceok3 (0.15 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

            rewriter->create<TFL::ConstOp>(split_op->getLoc(), slice_begin_attr);
        auto slice_size_const =
            rewriter->create<TFL::ConstOp>(split_op->getLoc(), slice_size_attr);
    
        auto slice_op = rewriter->create<TFL::SliceOp>(
            split_op->getLoc(), current_output_type, input, slice_begin_const,
            slice_size_const);
    
        // Rewire output.
        slice_outputs.push_back(slice_op.getResult());
      }
      return slice_outputs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

        return rewriter.notifyMatchFailure(
            concat, "Concatenate op should have at least two operands");
    
      auto first = concat.getVal()[0].getDefiningOp<mhlo::SliceOp>();
      auto second = concat.getVal()[1].getDefiningOp<mhlo::SliceOp>();
      if (!first || !second)
        return rewriter.notifyMatchFailure(concat, "operands are not slice ops");
      if (first.getOperand() != second.getOperand())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc

            TypeID::get<TF::SelfAdjointEigV2Op>(),
            TypeID::get<TF::SeluGradOp>(),
            TypeID::get<TF::SeluOp>(),
            TypeID::get<TF::SigmoidGradOp>(),
            TypeID::get<TF::SinOp>(),
            TypeID::get<TF::SliceOp>(),
            TypeID::get<TF::SoftplusGradOp>(),
            TypeID::get<TF::SoftsignGradOp>(),
            TypeID::get<TF::SoftsignOp>(),
            TypeID::get<TF::SpaceToBatchNDOp>(),
            TypeID::get<TF::SpaceToBatchOp>(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  4. src/go/types/exprstring.go

    	case *ast.SliceExpr:
    		WriteExpr(buf, x.X)
    		buf.WriteByte('[')
    		if x.Low != nil {
    			WriteExpr(buf, x.Low)
    		}
    		buf.WriteByte(':')
    		if x.High != nil {
    			WriteExpr(buf, x.High)
    		}
    		if x.Slice3 {
    			buf.WriteByte(':')
    			if x.Max != nil {
    				WriteExpr(buf, x.Max)
    			}
    		}
    		buf.WriteByte(']')
    
    	case *ast.TypeAssertExpr:
    		WriteExpr(buf, x.X)
    		buf.WriteString(".(")
    		WriteExpr(buf, x.Type)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 19:31:44 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

               dnums.getKernelOutputFeatureDimension() == num_spatial_dims;
      }
    };
    
    class ConvertSliceOp : public OpConversionPattern<mhlo::SliceOp> {
     public:
      using OpConversionPattern::OpConversionPattern;
    
      LogicalResult matchAndRewrite(
          mhlo::SliceOp slice_op, OpAdaptor adaptor,
          ConversionPatternRewriter& rewriter) const final {
        auto begin = rewriter.create<TF::ConstOp>(slice_op.getLoc(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  6. tests/upsert_test.go

    		}
    	}
    }
    
    func TestUpsertSlice(t *testing.T) {
    	langs := []Language{
    		{Code: "upsert-slice1", Name: "Upsert-slice1"},
    		{Code: "upsert-slice2", Name: "Upsert-slice2"},
    		{Code: "upsert-slice3", Name: "Upsert-slice3"},
    	}
    	DB.Clauses(clause.OnConflict{DoNothing: true}).Create(&langs)
    
    	var langs2 []Language
    	if err := DB.Find(&langs2, "code LIKE ?", "upsert-slice%").Error; err != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Sep 05 07:39:19 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc

          loc, input, /*use32Bit=*/builder.getBoolAttr(false));
      Value input_batch_dims = builder.create<TF::SliceOp>(
          loc, RankedTensorType::get({num_input_batch_dim}, builder.getI64Type()),
          input_shape, zero, num_input_batch_dim_value);
      Value input_matmul_dims = builder.create<TF::SliceOp>(
          loc, RankedTensorType::get({num_matmul_dim}, builder.getI64Type()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  8. src/go/types/index.go

    	case nil:
    		check.errorf(x, NonSliceableOperand, invalidOp+"cannot slice %s: %s has no core type", x, x.typ)
    		x.mode = invalid
    		return
    
    	case *Basic:
    		if isString(u) {
    			if e.Slice3 {
    				at := e.Max
    				if at == nil {
    					at = e // e.Index[2] should be present but be careful
    				}
    				check.error(at, InvalidSliceExpr, invalidOp+"3-index slice of string")
    				x.mode = invalid
    				return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:05 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/optimize.cc

      std::optional<int32_t> ComputeSliceK(Value value) const {
        if (value.use_empty()) return 0;
        auto slice_op =
            llvm::dyn_cast_or_null<TFL::SliceOp>(value.getUses().begin().getUser());
        // We only match for the case where value is used by SliceOp.
        if (!slice_op) return std::nullopt;
        DenseElementsAttr begin;
        DenseElementsAttr size;
        if (!matchPattern(slice_op->getOperand(1), m_Constant(&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)
  10. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        TF::SliceOp slice1 =
            CreateSliceOpForTensorList(loc, /*input_list=*/input,
                                       /*start_index=*/scalar_zero,
                                       /*size=*/index,
                                       /*item_rank=*/item_position_shape,
                                       /*result_type=*/unranked_tensor, &rewriter);
        TF::SliceOp slice2 =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
Back to top