- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 31 for FailureOr (0.25 sec)
-
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) -
tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec_test.cc
} )mlir"; const OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kXlaCallModuleOpWithPerTensorQuantizedConvolution); ASSERT_TRUE(module_op); const FailureOr<TF::XlaCallModuleOp> xla_call_module_op = FindFirstOpFromMainFunc<TF::XlaCallModuleOp>(*module_op); ASSERT_TRUE(succeeded(xla_call_module_op)); const std::unique_ptr<OpQuantSpec> op_quant_spec =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 04 07:19:09 UTC 2024 - 14.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc
// Returns initializer_type -> init_func_op mapping from the session_init_op's // initializers. The initializer functions are validated for whether it can be // moved to the main function. Returns failure() iff validation fails. FailureOr<absl::flat_hash_map<std::string, func::FuncOp>> GetInitFuncOps( ModuleOp module_op) { absl::flat_hash_map<std::string, func::FuncOp> init_func_ops;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun May 12 12:54:52 UTC 2024 - 15.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc
// naming conflicts. But we need to rename the function calls inside the // stablehlo functions as well. So we first do this renaming in the stablehlo // module itself without inserting into the tf module. FailureOr<StringAttr> RenameStablehloFunctions( MLIRContext *context, SymbolTableCollection &symbol_tables, ModuleOp tf_module, ModuleOp stablehlo_module) { SymbolTable &tf_symbol_table = symbol_tables.getSymbolTable(tf_module);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 11.1K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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)