- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 3,939 for functor (0.48 sec)
-
tensorflow/compiler/mlir/tensorflow/analysis/per_function_aggregate_analysis.h
// This template defines an aggregate analysis base class, which analyzes a // module but the analysis info is stored per function. template <typename InfoT> class PerFunctionAggregateAnalysis { public: using Info = InfoT; // Returns the analysis info for the given function. const Info& GetAnalysisForFunc(func::FuncOp func) const { auto it = info_map_.find(func); assert(it != info_map_.end()); return it->second; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 19 00:13:50 UTC 2022 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/analysis/tensor_array_side_effect_analysis.cc
mlir::func::FuncOp func_op) { for (mlir::Operation& op : func_op.front()) { if (!mlir::isMemoryEffectFree(&op) && !IsTensorArrayOp(&op)) return false; } return true; } TensorArraySideEffectAnalysis::TensorArraySideEffectAnalysis( mlir::ModuleOp module) { for (auto func_op : module.getOps<mlir::func::FuncOp>()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 16 01:49:07 UTC 2022 - 1.8K bytes - Viewed (0) -
src/syscall/js/func.go
nextFuncID uint32 = 1 ) // Func is a wrapped Go function to be called by JavaScript. type Func struct { Value // the JavaScript function that invokes the Go function id uint32 } // FuncOf returns a function to be used by JavaScript. // // The Go function fn is called with the value of JavaScript's "this" keyword and the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 22 17:47:47 UTC 2023 - 2.9K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/syms.go
sym := ir.Pkgs.Runtime.Lookup(d.name) typ := typs[d.typ] switch d.tag { case funcTag: importfunc(sym, typ) case varTag: importvar(sym, typ) default: base.Fatalf("unhandled declaration tag %v", d.tag) } } } // LookupRuntimeFunc looks up Go function name in package runtime. This function // must follow the internal calling convention. func LookupRuntimeFunc(name string) *obj.LSym {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 21:17:13 UTC 2023 - 3.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/unwrap_xla_call_module_op.cc
TF::kStablehloEntryFunctionAttrName) .getValue(); func::FuncOp func_op = symbol_table.lookup<func::FuncOp>(function_name); // We should not unwrap if the function is not from // ReplaceStablehloOpsInMainFunctionWithXlaCallModuleOpsPass. if (!func_op->hasAttr(TF::kFromXlaCallModuleAttrName)) { return; } MLIRContext* context = call_op.getContext();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_duplicate_resource_ops.cc
} // Gets the GraphOp from the function op. Returns an empty op iff it doesn't // exist. // TODO(b/284222084): Move executor dialect utilities to a new library. GraphOp GetGraphOpFromFuncOp(func::FuncOp func_op) { if (func_op->getNumRegions() == 0 || func_op.getBody().empty()) return {}; auto graph_op_range = func_op.front().without_terminator(); if (llvm::hasSingleElement(graph_op_range)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 26 04:26:16 UTC 2023 - 4.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/perception_ops_utils.h
func::FuncOp func_; mlir::TF::FuncAttr attr_; }; // Fuse DenseImageWarp ops annotated by tf.function to a TFLite custom op. class ConvertDenseImageWarpFunc { public: explicit ConvertDenseImageWarpFunc(func::FuncOp func) : func_(func) {} LogicalResult RewriteFunc(); LogicalResult VerifySignature(); private: func::FuncOp func_; }; } // end namespace TFL
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 07 17:42:55 UTC 2022 - 2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_inline_tpu_island.cc
Block &nested_block = nested_module->getRegion(0).front(); for (func::FuncOp func_op : llvm::make_early_inc_range(nested_block.getOps<func::FuncOp>())) { if (!symbol_table.lookupSymbolIn(getOperation(), func_op.getName())) { nested_block.getOperations().remove(func_op.getOperation()); symbol_table.insert(func_op.getOperation()); } } nested_module->erase(); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 08:06:04 UTC 2023 - 4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_device_copy_conversion.cc
}; // Folds tf.IdentityOp and tf.IdentityNOp if op device and the argument devices // from the defining ops match. void TensorDeviceCopyConversionPass::runOnOperation() { func::FuncOp func_op = getOperation(); auto should_fold_op_func = [&func_op](const Value &arg, const StringAttr &op_device) { // In TFRT TPU, tensor transfer is handled specifically by D2H and
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc
} } } }); } // Remove `kSkipIslandOutlining` attributes. for (func::FuncOp func_op : getOperation().getOps<func::FuncOp>()) { if (func_op->hasAttr(mlir::TF::kSkipIslandOutlining)) { func_op->removeAttr(mlir::TF::kSkipIslandOutlining); } } } } // namespace std::unique_ptr<OperationPass<ModuleOp>>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.7K bytes - Viewed (0)