- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 266 for walkIf (0.77 sec)
-
tensorflow/compiler/mlir/lite/utils/fake_quant_utils.cc
// function. This is a no-op for the ops which are not wrapped. LogicalResult UnwrapTFCustomOps(func::FuncOp fn, OpBuilder& builder) { llvm::SmallVector<Operation*, 4> wrapped_ops; fn.walk([&](TFL::CustomTfOp custom_op) { auto* real_op = &custom_op.getBody().front().front(); wrapped_ops.push_back(real_op); }); for (auto* op : wrapped_ops) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 03 00:14:05 UTC 2023 - 4.3K bytes - Viewed (0) -
src/cmd/cgo/ast_go1.go
package main import ( "go/ast" "go/token" ) func (f *File) walkUnexpected(x interface{}, context astContext, visit func(*File, interface{}, astContext)) { error_(token.NoPos, "unexpected type %T in walk", x) panic("unexpected type") } func funcTypeTypeParams(n *ast.FuncType) *ast.FieldList { return nil } func typeSpecTypeParams(n *ast.TypeSpec) *ast.FieldList { return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 30 21:45:10 UTC 2022 - 578 bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_device_assignment.cc
default_device_ = std::string(default_device); } void runOnOperation() override { Builder builder(&getContext()); Dialect* tf = getContext().getLoadedDialect<TensorFlowDialect>(); getOperation().walk([&](Operation* op) { if (auto device_attr = op->getAttrOfType<StringAttr>(kDeviceAttr)) { // We assign default device to ops with device attribute that is empty. if (device_attr.getValue().empty()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/metrics/error_collector_inst.h
public: explicit ErrorCollectorInstrumentation(MLIRContext *context); private: // Instrumentation hooks. These hooks don't need to be thread-safe. The pass // manager runs each pass for the entire module, then it walks through // each op in the module and runs the pass on them, may be in async mode. void runBeforePass(Pass *pass, Operation *module) override; void runAfterPass(Pass *pass, Operation *module) override;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 25 01:48:36 UTC 2024 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc
llvm::DenseSet<Operation*> do_not_touch; // Funcs referenced by non-call ops // Find all users of functions that are not through a CallOp. Those // are functions we need to leave alone. module->walk([&](SymbolUserOpInterface op) { if (llvm::isa<CallOpInterface>(op.getOperation())) return; // SymbolUserOpInterface doesn't tell us which attributes contain // the symbols, so we have to scan through all of them.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
src/cmd/go/testdata/script/list_goroot_symlink.txt
# Most path lookups in GOROOT are not sensitive to symlinks. However, patterns # involving '...' wildcards must use Walk to check the GOROOT tree, which makes # them more sensitive to symlinks (because Walk doesn't follow them). # # So we check such a pattern to confirm that it works and reports a path relative # to $GOROOT/src (and not the symlink target).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 14 17:01:07 UTC 2023 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops_pass.cc
// we would still need to do a walk to find all clusters that do not // reference any function. for (func::FuncOp func : module.getOps<func::FuncOp>()) { // If we have already applied patterns to a function then we can skip // applying patterns to any device clusters it contains. if (reachable_functions.contains(func)) continue; auto walk_result = func.walk([&](tf_device::ClusterOp cluster) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Sep 08 20:01:13 UTC 2023 - 8K bytes - Viewed (0) -
analysis/analysis-api-standalone/analysis-api-standalone-native/tests/org/jetbrains/kotlin/analysis/api/standalone/konan/fir/test/cases/session/builder/testUtils.kt
return Paths.get("analysis/analysis-api-standalone/analysis-api-standalone-native/testData/nativeSessionBuilder").resolve(path) } internal fun compileToNativeKLib(kLibSourcesRoot: Path): Path { val ktFiles = Files.walk(kLibSourcesRoot).asSequence().filter { it.extension == "kt" }.toList() val testKlib = KtTestUtil.tmpDir("testLibrary").resolve("library.klib").toPath() val arguments = buildList {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Thu Nov 16 13:31:53 UTC 2023 - 1.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_reorder_replicate_and_partitioned_inputs.cc
replicated_input.replaceAllUsesWith(pi.getOutput()); return success(); } void TPUReorderReplicateAndPartitionedInputsPass::runOnOperation() { auto result = getOperation()->walk([](TF::TPUReplicatedInputOp replicated_input) { if (llvm::none_of(replicated_input.getInputs(), [](Value input) { return llvm::isa_and_nonnull<TF::TPUPartitionedInputV2Op>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 24 23:08:55 UTC 2023 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/saved_model/saved_model.cc
module.walk([&symbol_table, map_fn, &status](mlir::func::FuncOp func) { // Use the exported name as the function name, and skip non-exported // functions. auto func_names = mlir::tf_saved_model::GetExportedNames(func); if (func_names.empty()) return mlir::WalkResult::advance(); auto func_type = func.getFunctionType();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.9K bytes - Viewed (0)