Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for ellipsis_mask (0.52 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        // When begin/end values are dynamic, the ellipsis mask, if set, must refer
        // to the last dimension.
        int ellipsis_mask = op.getEllipsisMask();
        if (!(ellipsis_mask == 0 || ellipsis_mask == (1 << last_dim)))
          return rewriter.notifyMatchFailure(
              op,
              "requires that ellipsis_mask, if set, refer to the last dimension of "
              "input (when begin/end values are dynamic)");
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

          builder->create<TF::ConstOp>(loc, builder->getI32TensorAttr({idx + 1})),
          /*strides=*/
          builder->create<TF::ConstOp>(loc, builder->getI32TensorAttr({1})),
          /*begin_mask=*/0, /*end_mask=*/0, /*ellipsis_mask=*/0,
          /*new_axis_mask=*/0, /*shrink_axis_mask=*/1);
    }
    
    // Return true if the passed quantized type is unsigned.
    bool QuantizedTypeIsUnsigned(Type type) {
      return TypeSwitch<Type, bool>(type)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/prepare-quantize.mlir

      %0 = "tfl.dequantize"(%arg0) : (tensor<12x2x2x5x!quant.uniform<u8:f32, 0.1>>) -> tensor<12x2x2x5xf32>
      %1 = "tfl.strided_slice"(%0, %arg1, %arg2, %arg3) {begin_mask = 0 : i32, ellipsis_mask = 0 : i32, end_mask = 0 : i32, new_axis_mask = 0 : i32, shrink_axis_mask = 0 : i32, offset = false} : (tensor<12x2x2x5xf32>, tensor<1xi32>, tensor<1xi32>, tensor<1xi32>) -> tensor<1x2x2x5xf32>
      func.return %1 : tensor<1x2x2x5xf32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 67.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      // The kernel will reshape the input tensor with new axis, it only supports
      // this reshaped tensor up to 5D.
      uint32_t ellipsis_mask = op.getEllipsisMask();
      uint32_t new_axis_mask = op.getNewAxisMask();
      int num_added_axis = 0;
      for (int i = 0; i < 8; ++i) {
        if (!((1 << i) & ellipsis_mask) && ((1 << i) & new_axis_mask)) {
          num_added_axis++;
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/shape_inference.mlir

        %one = "tf.Const"() {value = dense<1> : tensor<4xi32>} : () -> tensor<4xi32>
        %0 = "tf.StridedSlice"(%input, %zero, %one, %one) {begin_mask = 15 : i64, device = "", ellipsis_mask = 0 : i64, end_mask = 0 : i64, new_axis_mask = 0 : i64, shrink_axis_mask = 0 : i64} : (tensor<1024x1024x1024x1024xf32>, tensor<4xi32>, tensor<4xi32>, tensor<4xi32>) -> tensor<*xf32>
    
        // CHECK: tensor<1x1x1x1xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 17:24:10 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

        rewriter.replaceOpWithNewOp<TFL::StridedSliceOp>(
            op, output_type, op.getOperand(), start_idx, slice_size, stride,
            /*begin_mask=*/0, /*end_mask=*/0,
            /*ellipsis_mask=*/0, /*new_axis_mask=*/0, /*shrink_axis_mask=*/0,
            /*offset=*/false);
      }
    };
    
    // Rewrites quantized stablehlo.broadcast_in_dim to tfl.broadcast_to.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/schema/schema_generated.h

      auto _end_mask = _o->end_mask;
      auto _ellipsis_mask = _o->ellipsis_mask;
      auto _new_axis_mask = _o->new_axis_mask;
      auto _shrink_axis_mask = _o->shrink_axis_mask;
      auto _offset = _o->offset;
      return tflite::CreateStridedSliceOptions(
          _fbb,
          _begin_mask,
          _end_mask,
          _ellipsis_mask,
          _new_axis_mask,
          _shrink_axis_mask,
          _offset);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 1M bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

        TF_Tensor:$value,
    
        DefaultValuedOptionalAttr<I64Attr, "0">:$begin_mask,
        DefaultValuedOptionalAttr<I64Attr, "0">:$end_mask,
        DefaultValuedOptionalAttr<I64Attr, "0">:$ellipsis_mask,
        DefaultValuedOptionalAttr<I64Attr, "0">:$new_axis_mask,
        DefaultValuedOptionalAttr<I64Attr, "0">:$shrink_axis_mask
      );
    
      let results = (outs);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

      // expected-error @+1 {{cannot have multiple ellipses}}
      %0 = "tf.StridedSlice"(%input, %begin, %end, %strides) {ellipsis_mask = 3}: (tensor<4x8xf32>, tensor<2xi64>, tensor<2xi64>, tensor<2xi64>) -> tensor<?x?xf32>
      func.return %0 : tensor<?x?xf32>
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/tests/uniform-quantized-stablehlo-to-tfl.mlir

    // CHECK: %[[STRIDE:.+]] = arith.constant
    // CHECK{LITERAL}: dense<[2, 3]> : tensor<2xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 106.2K bytes
    - Viewed (0)
Back to top