- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 66 for hasAttr (0.1 sec)
-
tensorflow/compiler/mlir/lite/tests/debuginfo/concrete_function_error.py
"""Test file to display the error message and verify it with FileCheck.""" # RUN: %p/concrete_function_error | FileCheck %s import sys from absl import app import tensorflow.compat.v2 as tf if hasattr(tf, 'enable_v2_behavior'): tf.enable_v2_behavior() class TestGraphDebugInfo(object): """Test stack trace can be displayed.""" def testConcreteFunctionDebugInfo(self):
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Sep 28 21:37:05 UTC 2021 - 2.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/convert_to_legacy_compile_and_replicate_attributes.cc
LogicalResult ConvertToLegacyAttributes(func::FuncOp func_op) { auto result = func_op->walk([&](mlir::Operation* op) { if (failed(TF::HasValidCompilationAndReplicationAttributes(*op))) return WalkResult::interrupt(); if (op->hasAttr(TF::kReplicationInfoAttr)) { op->setAttr(TF::kTpuReplicateAttr, op->getAttr(TF::kReplicationInfoAttr)); op->removeAttr(TF::kReplicationInfoAttr); op->removeAttr(TF::kCompileDeviceTypeAttr); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/verify_clustering_pass.cc
op->getDialect()->getNamespace().str() + " not in tf functional dialect"; op->emitError() << error; return WalkResult::interrupt(); } if (op->hasAttr(mlir::TF::kXlaOutsideCompilationAttr)) { std::string error = "op has outside compilation attribute _xla_outside_compilation which " "is not allowed after clustering"; op->emitError() << error;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 08 20:33:37 UTC 2023 - 2.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.cc
return {"tf.entry_function", tf_saved_model::kTfSavedModelInitializerTypeAttr}; } bool IsEntryFunction(func::FuncOp func) { for (const auto &attr : GetEntryFunctionAttributeNames()) { if (func->hasAttr(attr)) { return true; } } return false; } llvm::SmallVector<func::FuncOp> GetEntryFunctions(ModuleOp module) { llvm::SmallVector<func::FuncOp> entry_funcs;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 2.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc
// Copy all referenced StableHLO functions to the new module. WalkResult result = WalkReachableFunctions( entry_func, [&](func::FuncOp f) -> WalkResult { if (!f->hasAttr(kFromXlaCallModuleAttrName)) { return WalkResult::advance(); } auto cloned = llvm::cast<func::FuncOp>(builder.clone(*f)); cloned->removeAttr(kFromXlaCallModuleAttrName);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/debuginfo/saved_model_error.py
"""Test file to display the error message and verify it with FileCheck.""" # RUN: %p/saved_model_error | FileCheck %s import sys from absl import app import tensorflow.compat.v2 as tf if hasattr(tf, 'enable_v2_behavior'): tf.enable_v2_behavior() class TestModule(tf.Module): """The test model has unsupported op.""" @tf.function(input_signature=[tf.TensorSpec(shape=[3, 3], dtype=tf.float32)])
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Sep 28 21:37:05 UTC 2021 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/restore_function_name.cc
void runOnOperation() override; }; void RestoreFunctionNameFromXlaCallModuleOp(TF::XlaCallModuleOp& call_op, SymbolTable& symbol_table) { if (!call_op->hasAttr(kOriginalStablehloEntryFunctionAttrName)) { return; } const auto original_function_name = call_op->getAttrOfType<StringAttr>( kOriginalStablehloEntryFunctionAttrName);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 08:32:43 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_patterns.td
// Marks the op as no fallback. def MarkNoFallback : NativeCodeCall<"SetNoFallbackAttr($_builder, $0)">; def NoFallbackAttrNotSet : Constraint<CPred< "!$0.getDefiningOp()->hasAttr(kNoFallbackAttr)">>; class FloatValueEquals<string val> : Constraint<CPred< "FloatValueEquals($0, " # val # ")">>; class RankEquals<string rank> : Constraint<CPred< "RankEquals($0, " # rank # ")">>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 29 21:02:21 UTC 2022 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/order_by_dialect.cc
: info->DirectControlSuccessors(op); }; // Some tests have recursive calls and other shenanigans, so allow // them to skip side effect analysis. if (!func->hasAttr("ignore_side_effects_for_testing")) { info = &getAnalysis<mlir::TF::SideEffectAnalysis>().GetAnalysisForFunc(func); } func->walk([&](Operation* function) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 08 17:01:11 UTC 2022 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/rename_entrypoint_to_main.cc
// 'tf.entry_function' attribute set. llvm::SmallVector<func::FuncOp, 4> candidate_funcs; for (auto& entrypoint : entrypoints) { if (entrypoint.second->hasAttr("tf.entry_function")) { candidate_funcs.push_back(entrypoint.second); } } if (candidate_funcs.empty()) { return fail(module, "No entrypoints found"); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.9K bytes - Viewed (0)