- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 271 for getOperation (0.66 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_xla_call_module_op_to_bfloat16.cc
explicit ConvertXlaCallModuleOpToBfloat16Pass() = default; private: void runOnOperation() override; }; void ConvertXlaCallModuleOpToBfloat16Pass::runOnOperation() { Operation* func_op = getOperation(); SymbolTableCollection symbol_table; OpBuilder builder(&getContext()); auto result = func_op->walk([&](TF::XlaCallModuleOp op) { // Converts the serialized StableHLO module to bfloat16.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 08:32:43 UTC 2024 - 5.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.cc
return success(); } }; void ConvertTpuModelToCpuPass::runOnOperation() { MLIRContext* ctx = &getContext(); RewritePatternSet patterns(ctx); ModuleOp module_op = getOperation(); patterns.add<ReplaceTpuPartitionedCallOpWithPartitionedCallOp, ReplaceBatchFunctionOpToPartitionedCallOp>(ctx); patterns.add<RemoveTpuOp>(ctx); patterns.add<RemoveIdentity>(ctx);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util_test.cc
setenv("TF_DUMP_GRAPH_PREFIX", testing::TmpDir().c_str(), 1); std::string expected_txt_module; { llvm::raw_string_ostream os(expected_txt_module); module_ref->getOperation()->print(os, mlir::OpPrintingFlags().useLocalScope()); os.flush(); } std::string filepath = DumpMlirOpToFile("module", module_ref.get());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 18 13:40:21 UTC 2024 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc
if (!body->findAncestorOpInBlock(*user)) use.set(new_ret); } } // Move ops that depend on something in the cluster behind the cluster. Operation* op_after_cluster = cluster.getOperation()->getNextNode(); for (Operation* op : cluster_successor_ops) op->moveBefore(op_after_cluster); return cluster; } // Returns an op of the given type that uses the result, along with
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/convert_custom_aggregation_op_to_quant_stats.cc
void ConvertCustomAggregationOpToQuantStatsPass::runOnOperation() { MLIRContext *ctx = &getContext(); RewritePatternSet patterns(ctx); func::FuncOp func = getOperation(); patterns.add<ConvertCustomAggregationOpToQuantStats>(ctx); if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) { func.emitError()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc
ConversionPatternRewriter &rewriter) const override { if (!IsIllegalType(op.getOutput().getType())) return failure(); TF::TensorProtoAttr tensor_proto_attr; if (!matchPattern(op.getOperation(), m_Constant(&tensor_proto_attr))) { return rewriter.notifyMatchFailure(op, "operand must be constant."); } auto dense_attr_or = GetDenseAttrFromTensorProtoAttr( tensor_proto_attr.getValue(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_op_order.cc
void runOnOperation() override; }; void OptimizeOpOrderPass::runOnOperation() { RewritePatternSet patterns(&getContext()); auto func = getOperation(); auto* ctx = func.getContext(); patterns.add<PushDownDequantize>(ctx); if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) { signalPassFailure(); } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow_to_stablehlo/tf_to_stablehlo.cc
} llvm::SourceMgr source_mgr; source_mgr.AddNewSourceBuffer(std::move(file), llvm::SMLoc()); auto module = parseSourceFile<ModuleOp>(source_mgr, context); if (module->getOperation() == nullptr) { return absl::AbortedError("Failed to parse input MLIR model."); } return quant::stablehlo::ImportedMlirModuleOp(std::move(module), nullptr); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 22:58:42 UTC 2024 - 5.5K bytes - Viewed (0) -
tests/integration/telemetry/api/customize_metrics_test.go
"source_workload": "a-v1", "source_workload_namespace": apps.Namespace.Name(), "custom_dimension": "test", } if protocol == httpProtocol { labels["request_operation"] = "getoperation" } if protocol == grpcProtocol { labels["grpc_response_status"] = "OK" labels["request_protocol"] = "grpc" } _, destinationQuery, _ = BuildQueryCommon(labels, apps.Namespace.Name())
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_jax_random.cc
} inline bool IsJaxRandomNormal(mlir::func::FuncOp func) { return func.getName().contains("tfl_wrapped_jax_random_normal"); } void LegalizeJaxRandomPass::runOnOperation() { auto func = getOperation(); if (!IsJaxRandomUniform(func) && !IsJaxRandomNormal(func)) return; auto result_tuple_ty = mlir::dyn_cast_or_null<TupleType>(func.getFunctionType().getResult(0)); if (!result_tuple_ty) return;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0)