- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 293 for runOnOperation (0.17 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/mark_input_output_aliases.cc
#include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc" namespace { struct MarkInputOutputAliasesPass : public impl::MarkInputOutputAliasesPassBase<MarkInputOutputAliasesPass> { void runOnOperation() override; }; constexpr char kAliasingAttr[] = "tf.aliasing_output"; constexpr int kUnassigned = -1; struct AliasInfo { AliasInfo() : input_index(kUnassigned), output_index(kUnassigned) {}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 04:14:26 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_cluster_cleanup_attributes.cc
class TPUCleanupClusterAttributesPass : public impl::TPUCleanupClusterAttributesPassBase< TPUCleanupClusterAttributesPass> { public: void runOnOperation() override { auto traverse_op = [&](Operation* op, tf_device::ClusterOp tpu_cluster) { if (isa<tf_device::ClusterOp>(op)) return WalkResult::advance(); op->removeAttr(TF::kReplicationInfoAttr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize_layout.cc
#include "tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.h.inc" class TransposeCommuteOpsPass : public impl::TransposeCommuteOpsPassBase<TransposeCommuteOpsPass> { void runOnOperation() override; }; // Inversely permutate a given vector static SmallVector<int64_t> InvertPermutationToVector(ArrayRef<int64_t> vec, ArrayRef<int64_t> perm) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 21:59:06 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/fold_constant_transpose.cc
public: using impl::FoldConstantTransposePassBase< FoldConstantTransposePass>::FoldConstantTransposePassBase; private: void runOnOperation() override; }; void FoldConstantTransposePass::runOnOperation() { func::FuncOp func_op = getOperation(); MLIRContext& ctx = getContext(); RewritePatternSet patterns(&ctx); patterns.add<FoldTransposedConstantOp>(&ctx);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions_drq.cc
"module for post-training dynamic range case"; } void getDependentDialects(DialectRegistry& registry) const override { registry.insert<TF::TensorFlowDialect>(); } void runOnOperation() override; private: Option<OpSet> target_opset_{ *this, "target-opset", llvm::cl::init(OpSet::TF), llvm::cl::desc("Choose target opset."), llvm::cl::values(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replicate_invariant_op_hoisting.cc
#include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc" struct ReplicateInvariantOpHoistingPass : public impl::ReplicateInvariantOpHoistingPassBase< ReplicateInvariantOpHoistingPass> { void runOnOperation() override; }; // Check if op directly uses a key in `virtual_devices`. bool DirectUseOfVirtualDevice(const DictionaryAttr& virtual_devices, Operation* op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference_pass.cc
: public impl::TensorFlowShapeInferencePassBase<ShapeInference> { public: ShapeInference() = default; explicit ShapeInference(ArrayRef<ArrayRef<int64_t>> input_shapes) : input_shapes_(input_shapes) {} void runOnOperation() override { // Parse `input_arg_shapes_` if provided (test only) SmallVector<ArrayRef<int64_t>> input_shapes_vec; absl::StatusOr<SmallVector<SmallVector<int64_t>>> parsed_shapes;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 12:49:45 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_restore_op.cc
"`tf.AssignVariableOp(tf.VarHandleOp, restore_op_output#N)`, where " "`restore_op_output#N` is the Nth output of the newly created " "RestoreV2Op."; } void runOnOperation() override; }; // Finds `tf.AssignVariableOp(tf.VarHandleOp, tf.Const)` patterns and returns // the `tf.VarHandleOp`s that are initialized by these `tf.AssignVariableOp`s. std::vector<TF::VarHandleOp> CollectVariableOps(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Mar 12 06:02:20 UTC 2023 - 9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc
explicit FreezeGlobalTensorsPass(bool allow_mutable_tensors) { this->allow_mutable_tensors = allow_mutable_tensors; } void runOnOperation() override; }; void FreezeGlobalTensorsPass::runOnOperation() { auto module = getOperation(); if (!tf_saved_model::HasTfSavedModelSemantics(module)) return; DataFlowSolver solver; solver.load<dataflow::DeadCodeAnalysis>();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc
explicit LiftQuantizableSpotsAsFunctionsPass( QuantizationSpecs quantization_specs) : quantization_specs_(std::move(quantization_specs)) {} private: void runOnOperation() override; // No explicit quantization spec is specified by default. Implicitly this // means that all quantizable units will be identified and lifted. QuantizationSpecs quantization_specs_{}; };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 9.3K bytes - Viewed (0)