Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 27 of 27 for FailureOr (0.45 sec)

  1. tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc

          return %0 : tensor<1x1x4xf32>
        }
      )mlir";
    
      const OwningOpRef<ModuleOp> module_op =
          ParseModuleOpString(kXlaCallModuleOpWithQuantizationMethodAttr);
      ASSERT_TRUE(module_op);
    
      FailureOr<TF::XlaCallModuleOp> xla_call_module_op =
          FindFirstOpFromMainFunc<TF::XlaCallModuleOp>(*module_op);
      ASSERT_TRUE(succeeded(xla_call_module_op));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export.cc

          /*add_passes_func=*/
          [dup_constants = export_opts.duplicate_shape_determining_constants](
              PassManager& pm) { AddExportPasses(pm, dup_constants); },
          ctx, module_op));
    
      FailureOr<SmallVector<AssetFileDef>> asset_file_defs =
          quant::ConvertAssetArgs(module_op);
      if (failed(asset_file_defs)) {
        return absl::InternalError("Failed to convert asset args.");
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:11:25 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints_test.cc

    TEST_F(AttrsAndConstraintsTest, I64ArrayInI32RangeAreCastedCorrectly) {
      const SmallVector<int64_t> array_i64 = {llvm::minIntN(32), -2, -1, 0, 1, 2,
                                              llvm::maxIntN(32)};
    
      FailureOr<SmallVector<int32_t>> array_i32 = CastI64ArrayToI32(array_i64);
      EXPECT_TRUE(succeeded(array_i32));
      EXPECT_THAT(
          *array_i32,
          ElementsAreArray({static_cast<int32_t>(llvm::minIntN(32)), -2, -1, 0, 1,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc

    class UniformQuantizeFunctionCallPattern {
     public:
      // Returns Failure if it doesn't match. Returns the "wrapper" for the uniform
      // dequantization function call pattern when matched.
      static FailureOr<UniformQuantizeFunctionCallPattern> Match(
          func::CallOp call_op) {
        if (!call_op.getCallee().contains(kUniformQuantizeFunctionNameSubstring)) {
          LLVM_DEBUG(llvm::dbgs()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

            }
          }
        }
        return WalkResult::advance();
      });
      return other_op;
    }
    
    // Collects ops that need to be moved behind the cluster due to data or control
    // dependencies.
    mlir::FailureOr<llvm::SmallSetVector<Operation*, 8>> CollectClusterSuccessorOps(
        Block* block, const OpSetVector& cluster_ops,
        const mlir::TF::SideEffectAnalysis::Info& side_effect_analysis,
        bool strict_clusters) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

      struct OpCountItem {
        int32_t num_quant = 0;
        int32_t num_float = 0;
      };
    
      // Get the representative name attribute value of a composite function.
      FailureOr<StringRef> GetRepresentativeName(StringRef func_name) {
        std::string quantized_func_name = GetQuantizedFunctionName(
            func_name, /*merged_with_dequantize=*/false, /*is_hybrid=*/false);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

    // TableGen'd op method definitions
    //===----------------------------------------------------------------------===//
    
    #include "tensorflow/compiler/mlir/lite/ir/tfl_ops_interface.cc.inc"
    
    static FailureOr<SmallVector<int32_t>> parseI32Array(AsmParser& parser) {
      SmallVector<int32_t> elements;
      auto elementParser = [&]() {
        int32_t element;
        if (failed(parser.parseInteger(element))) return failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
Back to top