Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 303 for Cast (0.05 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/tests/replace_cast_hacks_with_tf_xla_ops.mlir

        %18 = "tf.Round"(%17) : (tensor<f32>) -> tensor<f32>
        %19 = "tf.Cast"(%18) : (tensor<f32>) -> tensor<i32>
        %20 = "tf.AddV2"(%19, %arg10) : (tensor<i32>, tensor<i32>) -> tensor<i32>
        %21 = "tf.Cast"(%20) : (tensor<i32>) -> tensor<i8>
        %22 = "tf.Cast"(%21) {Truncate = false} : (tensor<i8>) -> tensor<i8>
        %23 = "tf.Cast"(%22) {Truncate = false} : (tensor<i8>) -> tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 81K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc

          filter_i8_value_attr = mlir::cast<DenseIntElementsAttr>(
              cast<stablehlo::ConstantOp>(filter_op->getOperand(0).getDefiningOp())
                  .getValue());
        }
    
        // Create Uniform Quantized constant for the filter.
        auto subtract_op =
            cast<stablehlo::SubtractOp>(*op.getResult().user_begin());
        auto other_conv_op = cast<stablehlo::ConvolutionOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

      "$0.isa<DenseElementsAttr>() && "
      "$0.cast<DenseElementsAttr>().getNumElements() == 1 && "
      "(($0.cast<DenseElementsAttr>().getValues<APFloat>()[0].isLargest() && "
      "$0.cast<DenseElementsAttr>().getValues<APFloat>()[0].isNegative()) || "
      "$0.cast<DenseElementsAttr>().getValues<APFloat>()[0].isNegInfinity())">>;
    
    def L2NormValidReduceIndex : Constraint<CPred<
      "L2NormalizeReduceAxis($0, $1.cast<DenseElementsAttr>())">>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
  4. tensorflow/cc/gradients/math_grad.cc

        return errors::InvalidArgument("Cast requires 2 arguments");
      }
      if (grad_inputs.size() != 1) {
        return errors::InvalidArgument("Cast grad requires 1 grad input");
      }
    
      auto src_type = op.input_type(0);
      auto dst_type = grad_inputs[0].type();
      if (IsFloatingPointDtype(src_type) && IsFloatingPointDtype(dst_type)) {
        grad_outputs->push_back(Cast(scope, grad_inputs[0], src_type));
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 50.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        auto op = cast<ResizeNearestNeighborOp>(src_op);
        auto loc = op.getLoc();
        auto result_ty = mlir::cast<ShapedType>(op.getType());
    
        auto input = op.getImages();
        auto input_ty = mlir::cast<ShapedType>(input.getType());
        auto input_element_ty = input_ty.getElementType();
        auto out_size = op.getSize();
        auto out_size_ty = mlir::cast<ShapedType>(out_size.getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    //	                  ::= <substitution>
    //
    //	<decltype> ::= Dt <expression> E
    //	           ::= DT <expression> E
    func (st *state) prefix() AST {
    	var a AST
    
    	// The last name seen, for a constructor/destructor.
    	var last AST
    
    	var module AST
    
    	getLast := func(a AST) AST {
    		for {
    			if t, ok := a.(*Template); ok {
    				a = t.Name
    			} else if q, ok := a.(*Qualified); ok {
    				a = q.Name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

          ShapedType new_output_type = ConvertIntToQint(
              mlir::cast<ShapedType>(output_type), rewriter.getContext());
          if (!new_output_type) {
            dq_op->emitError(
                "Failed to convert the type to the corresponding qtype.");
            return failure();
          }
          output_type = mlir::cast<TensorType>(new_output_type);
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/resource_op_lifting.mlir

                // CHECK: %[[CAST:.+]] = "tf.Cast"(%[[CARG1]])
                // CHECK: "tf.Less"(%[[CARG0]], %[[CAST]])
                // CHECK: "tf.Yield"
                ^bb0(%carg0: tensor<i32>, %carg1: !tf_ref, %carg2: !tf_ref, %carg3: !tf_ref):
                   %read0 = "tf.ReadVariableOp"(%carg1) : (!tf_ref) -> tensor<f32>
                   %cast = "tf.Cast"(%read0) : (tensor<f32>) -> tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 74K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

        // * The 'strides' attribute must exist and is of the form [1, X, Y, 1].
        // * The 'dilations' attribute is optional, but it must be of the form
        //   [1, X, Y, 1] if exists.
    
        TFConvOpType tf_op = cast<TFConvOpType>(op);
        if (!TFTypeIsFloat32Tensor(tf_op.getInput()) &&
            !(allow_bf16_and_f16_type_legalization_ &&
              TFTypeIsBFloat16OrHalfTensor(tf_op.getInput())))
          return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfrt/tests/mlrt/while_to_map_fn.mlir

      %4 = "tf.GatherV2"(%cst_1, %arg1, %cst_0) {batch_dims = 0 : i64, device = "/job:localhost/replica:0/task:0/device:CPU:0"} : (tensor<3xi32>, tensor<i32>, tensor<i32>) -> tensor<i32>
      %5 = "tf.Cast"(%4) {Truncate = false, device = "/job:localhost/replica:0/task:0/device:CPU:0"} : (tensor<i32>) -> tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 06:40:22 UTC 2024
    - 68.6K bytes
    - Viewed (0)
Back to top