Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 67 for signalPassFailure (0.26 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

                            {producer, min_consumer, bad_consumers})));
        break;
      }
    
      if (failed(applyFullConversion(module.getOperation(), target, finalPatterns)))
        signalPassFailure();
    
      // The uses of arg control dependency has been dropped. We can safely remove
      // the block argument here.
      module.walk([&](tf_executor::GraphOp graph) {
        graph.getBody().front().eraseArguments(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

      addPatterns(context, stage1Patterns, this->preserve_assert_op_);
    
      FrozenRewritePatternSet stage1FrozenPatterns(std::move(stage1Patterns));
      if (!applyPatterns(func, target, stage1FrozenPatterns)) {
        return signalPassFailure();
      }
      // Explict BroadcastTo addition for left-over broadcast-able ops.
      // The following pattern matchings should be done after the other legalization
      // rules in order not to add unnecessary BroadcastTo ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

    void LegalizeTFCommunication::runOnOperation() {
      auto module = getOperation();
      llvm::SmallDenseMap<StringRef, FuncToRewrite> funcs_to_rewrite;
      if (failed(GetFunctionsToRewrite(module, funcs_to_rewrite)))
        return signalPassFailure();
    
      OpBuilder builder(&getContext());
      for (const auto& func_and_name : funcs_to_rewrite) {
        const auto& func_to_rewrite = func_and_name.getSecond();
        func::FuncOp func = func_to_rewrite.original;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tpu_validate_inputs.cc

        if (IsTpuRegularOp(op)) {
          success &= IsValidMAXIMALSharding(op, metadata_map);
          success &= IsValidShardingTupleForArity(op);
        }
        success &= !HasSingleCoreTpu(op);
        if (!success) {
          signalPassFailure();
        }
      });
    }
    
    }  // anonymous namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateTPUValidateInputsPass() {
      return std::make_unique<TPUValidateInputsPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 06:51:01 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

      RuntimeDevices devices;
      if (failed(::tensorflow::GetDevicesFromOp(func->getParentOfType<ModuleOp>(),
                                                &devices)))
        return signalPassFailure();
    
      // If there is no runtime device information and data format is not explicitly
      // forced, there is nothing to do.
      if (devices.NumDevices() == 0 && force_data_format_.empty()) return;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

      if (!shouldKeepUnusedQdqPattern()) {
        RewritePatternSet patterns_2(&getContext());
        patterns_2.add<RemoveUnusedQdqPattern>(ctx);
        if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns_2)))) {
          signalPassFailure();
        }
      }
    }
    }  // namespace
    
    // Creates an instance of the TensorFlow dialect Quantize pass.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass() {
      QuantizationSpecs quant_specs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

                  execute_launch, resource_analysis_info,
                  /*check_device=*/!parent_is_replicate,
                  /*check_same_region=*/parent_is_replicate, &builder))) {
            signalPassFailure();
            return;
          }
        }
      });
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateTPUMergeVariablesWithExecutePass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/merge_control_flow.cc

      auto result = module.walk([&](tf_device::ClusterOp cluster) {
        OptimizeIfRegions(&cluster.GetBody(), module);
        return WalkResult::advance();
      });
      if (result.wasInterrupted()) return signalPassFailure();
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateMergeControlFlowPass() {
      return std::make_unique<MergeControlFlowPass>();
    }
    
    }  // namespace TFDevice
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc

      auto module = getOperation();
      auto main = module.lookupSymbol<func::FuncOp>("main");
      if (!main) return;
      if (failed(DecomposeStackOps(&main.front(), module))) {
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    namespace TF {
    std::unique_ptr<OperationPass<ModuleOp>> CreateStackOpsDecompositionPass() {
      return std::make_unique<StackOpsDecompositionPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

        patterns.add(MergeConsecutivePad);
        if (failed(applyPatternsAndFoldGreedily(getOperation(),
                                                std::move(patterns)))) {
          return signalPassFailure();
        }
      }
    };
    
    std::unique_ptr<Pass> createOptimizePass() {
      return std::make_unique<OptimizePass>();
    }
    
    static PassRegistration<OptimizePass> pass;
    
    }  // namespace odml
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
Back to top