Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 54 of 54 for ShapedType (0.14 sec)

  1. tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td

                             (TFL_TopKV2Op $input, $k)>;
    
    def ReductionDimensionIsLastDim : Constraint<CPred<"($0.cast<IntegerAttr>().getInt() == "
      "$1.getType().cast<ShapedType>().getRank() - 1 || $0.cast<IntegerAttr>().getInt() == -1)">>;
    
    // Legalizes TF_ApproxTopKOp to TFL_TopKV2Op with the following constraints:
    //    1. It computes max k
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

        // unified_api_test.cc.
        return Unimplemented("MlirTensor::Shape is not implemented yet.");
      }
    
      Value getValue() { return value_; }
      Type getElementType() {
        return mlir::cast<ShapedType>(value_.getType()).getElementType();
      }
    
      // For LLVM style RTTI.
      static bool classof(const AbstractTensorHandle* ptr) {
        return ptr->getKind() == kMlir;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

        // `stablehlo.dot_general` legalizable to `tfl.fully_connected` has a
        // filter rank of 2 with the last dimension as the channel dimension.
        const int64_t quantization_dimension =
            mlir::cast<ShapedType>(filter_type).getShape().size() - 1;
        accumulation_quantized_element_type =
            CreateI32F32UniformQuantizedPerAxisType(
                gemm_style_op->getLoc(), *rewriter.getContext(), result_scales,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

          ranked_ty.getEncoding());
      if (encoding && !encoding.getBounds().empty()) {
        for (int64_t dim = 0; dim < rank; ++dim) {
          if (dims[dim] == mlir::ShapedType::kDynamic) {
            dims[dim] = encoding.getBounds()[dim];
          }
        }
      }
      return GetTypeFromTFTensorShape(dims, ranked_ty.getElementType());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
Back to top