Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for FailureOr (0.21 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/visitor.h

        mlir::SymbolTableCollection* symbol_table = nullptr);
    
    // Creates a new MLIR module that contains only the given functions and all
    // reachable functions from them.
    mlir::FailureOr<mlir::OwningOpRef<mlir::ModuleOp>> CreatePrunedModule(
        mlir::ModuleOp module, llvm::ArrayRef<llvm::StringRef> function_names);
    
    }  // namespace TF
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 03:46:51 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/stablehlo_custom_call.cc

      return op.getCallTargetName() == kTfTargetName;
    }
    
    DictionaryAttr GetTfBackendConfig(stablehlo::CustomCallOp op) {
      return op->getAttrOfType<DictionaryAttr>(kTfBackendConfigAttrName);
    }
    
    FailureOr<SymbolRefAttr> GetTfFuncCustomCallFuncName(
        stablehlo::CustomCallOp op) {
      if (!IsTfFuncCustomCall(op)) {
        return success(nullptr);
      }
    
      auto config = GetTfBackendConfig(op);
      if (config == nullptr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc

      std::unique_ptr<RE2> match_regex_;  // NOLINT
    };
    
    // Converts `Method` to a single-line textproto representation. Returns
    // `failure()` when converting to textproto failed.
    FailureOr<std::string> QuantizationMethodToTextProto(const Method& method) {
      TextFormat::Printer printer;
      printer.SetSingleLineMode(true);
    
      std::string method_txtpb;
      if (!printer.PrintToString(method, &method_txtpb)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/visitor.cc

            stack.push_back(called_func);
          }
    
          return WalkResult::advance();
        });
        if (result.wasInterrupted()) {
          return result;
        }
      }
    
      return WalkResult::advance();
    }
    
    FailureOr<OwningOpRef<ModuleOp>> CreatePrunedModule(
        ModuleOp module, llvm::ArrayRef<llvm::StringRef> function_names) {
      SymbolTableCollection symbol_table;
      OpBuilder builder(module.getContext());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 03:46:51 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/utils/tf_type_utils.cc

            return IntegerType::get(type.getContext(), 16,
                                    IntegerType::SignednessSemantics::Unsigned);
          })
          .Default([&type](Type) { return type; });
    }
    
    FailureOr<mlir::DenseElementsAttr> GetDenseAttrFromTensorProtoAttr(
        const llvm::StringRef mangled_tensor_proto, TensorType tensor_type) {
      ::tensorflow::TensorProto tensor_proto;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args.cc

      SmallVector<NamedAttribute> new_arg_attrs =
          ReplaceBoundInputAttrWithIndexPathAttr(arg_attrs, index_path, builder);
    
      main_func_op.setArgAttrs(arg_idx, new_arg_attrs);
    }
    
    }  // namespace
    
    FailureOr<SmallVector<AssetFileDef>> ConvertAssetArgs(ModuleOp module_op) {
      func::FuncOp main_func_op = FindMainFuncOp(module_op);
      if (!main_func_op) return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top