Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for sliceok3 (0.2 sec)

  1. src/reflect/all_test.go

    	}
    	rv = ValueOf(&xa).Elem()
    	shouldPanic("Slice3", func() { rv.Slice3(1, 2, 1) })
    	shouldPanic("Slice3", func() { rv.Slice3(1, 1, 11) })
    	shouldPanic("Slice3", func() { rv.Slice3(2, 2, 1) })
    
    	s := "hello world"
    	rv = ValueOf(&s).Elem()
    	shouldPanic("Slice3", func() { rv.Slice3(1, 2, 3) })
    
    	rv = ValueOf(&xs).Elem()
    	rv = rv.Slice3(3, 5, 7)
    	ptr2 := rv.UnsafePointer()
    	rv = rv.Slice3(4, 4, 4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc

    }
    
    // Determines the output type of the `SliceOp` when it is being inserted in
    // place of a `XlaGatherOp`. When the dimensions of `xla_gather_op_output_type`
    // is known, the `collapsed_dims` are restored. `xla_gather_op_output_type` is
    // the result of collapsing the `collapsed_dims`, but the `SliceOp`'s output
    // should not have the dimensions collapsed already. Returns
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec.cc

                    mlir::stablehlo::ReshapeOp, mlir::stablehlo::SelectOp,
                    mlir::stablehlo::SliceOp, mlir::stablehlo::TransposeOp>(op)) {
        scale_spec->has_same_scale_requirement = true;
      }
      if (llvm::isa<mlir::stablehlo::DynamicSliceOp, mlir::stablehlo::GatherOp,
                    mlir::stablehlo::PadOp, mlir::stablehlo::SliceOp>(op)) {
        scale_spec->has_same_operand_and_result_type_requirement = true;
      }
      return scale_spec;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

      slice_size[0] = 1;
      auto size_const = GetR1Const(slice_size, builder, loc);
      auto slice_type = tensorflow::GetTypeFromTFTensorShape(
          slice_size, buffer_type.getElementType());
      auto slice = builder.create<TF::SliceOp>(
          loc, ArrayRef<Type>{slice_type},
          ArrayRef<Value>{buffer, GetIndicesForElement(index, buffer, builder, loc),
                          size_const});
      if (keep_slice_shape) return slice;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.cc

      Value packed_low_begin_value = CreateConstValue<int64_t>(
          builder, loc, {rank}, SmallVector<int64_t>(rank, 0));
      Value packed_low_value =
          builder.create<TF::SliceOp>(loc, packed_output_type, value,
                                      packed_low_begin_value, packed_shape_value);
      packed_low_value = builder.create<TF::BitwiseAndOp>(
          loc, packed_output_type, packed_low_value,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top