Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 337 for Auto (0.12 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

      auto x = squared_diff_op.getLhs();
      auto y = squared_diff_op.getRhs();
      auto x_type = mlir::dyn_cast<RankedTensorType>(x.getType());
      auto y_type = mlir::dyn_cast<RankedTensorType>(y.getType());
      if (!x_type || !y_type) return failure();
      if (x_type.getShape() != y_type.getShape()) return failure();
    
      auto result_type = squared_diff_op.getType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/shape_inference_test.cc

      Scope root = Scope::NewRootScope().ExitOnError();
      auto a = ops::Placeholder(root.WithOpName("A"), DT_FLOAT,
                                ops::Placeholder::Shape({2, 3}));
      auto b = ops::Placeholder(root.WithOpName("B"), DT_FLOAT,
                                ops::Placeholder::Shape({3}));
      auto c = ops::Placeholder(root.WithOpName("C"), DT_FLOAT);
      auto d = ops::Add(root.WithOpName("D"), a, b);
      auto e = ops::Add(root.WithOpName("E"), d, c);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc

            decomposed_partitioned_call_callees) {
      auto body = while_op.body_function();
      llvm::SmallDenseMap<Value, Value> body_map;
      auto find_arg_stack_type = [&](int64_t index) -> std::optional<Type> {
        auto it = data_var_to_size_var.find(while_op.getOperand(index));
        if (it == data_var_to_size_var.end()) return std::nullopt;
        return it->getFirst().getType();
      };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

        Block& block, const llvm::SmallDenseMap<Value, SizeInfo>& buffer_to_size) {
      auto old_terminator = block.getTerminator();
      auto new_outputs = llvm::to_vector<8>(old_terminator->getOperands());
      llvm::SmallVector<std::tuple<int64_t, int64_t, bool>, 8>
          output_buffer_to_size;
      for (auto retval : llvm::enumerate(old_terminator->getOperands())) {
        auto it = buffer_to_size.find(retval.value());
        if (it == buffer_to_size.end()) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

    }
    
    void Exporter::UseOriginalFunctionNames(NodeDef& node_def) {
      if (!configs_.export_original_tf_func_name) return;
    
      auto& attrs = *node_def.mutable_attr();
    
      auto try_use_original_func_name = [this](std::string* name) {
        if (auto func = symbol_table_.lookup<FuncOp>(*name)) {
          if (auto original_func_name =
                  func->getAttrOfType<mlir::StringAttr>("tf._original_func_name")) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

    }
    
    void Exporter::UseOriginalFunctionNames(NodeDef& node_def) {
      if (!configs_.export_original_tf_func_name) return;
    
      auto& attrs = *node_def.mutable_attr();
    
      auto try_use_original_func_name = [this](std::string* name) {
        if (auto func = symbol_table_.lookup<FuncOp>(*name)) {
          if (auto original_func_name =
                  func->getAttrOfType<mlir::StringAttr>("tf._original_func_name")) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

      for (auto& input : inputs) {
        auto input_op = input.get().getDefiningOp();
        if (!input_op || !IsSupportedHostInputOp(input_op)) return false;
      }
      for (auto entry : llvm::enumerate(inputs)) {
        Value input = entry.value().get();
        auto ranked_type = mlir::dyn_cast<RankedTensorType>(input.getType());
        if (!ranked_type) return false;
        auto input_shape = ranked_type.getShape();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

        return rewriter.notifyMatchFailure(op, "zero_points must be constant");
      }
    
      auto original_element_type = getElementTypeOrSelf(original_type);
      if (!mlir::isa<TF::Qint8Type, TF::Qint32Type>(original_element_type)) {
        return rewriter.notifyMatchFailure(
            op, "Quantized type must be qint8 or qint32.");
      }
      auto storage_type = GetIntTypeFromTFQint(original_element_type);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc

      // has the property that if there is an edge from SCC1->SCC2, SCC1 is visited
      // after SCC2, i.e., the graph is traversed bottom up just the way we want.
      auto scc_begin = llvm::scc_begin(&call_graph);
      auto scc_end = llvm::scc_end(&call_graph);
      for (auto& scc : make_range(scc_begin, scc_end)) {
        // Each SCC node is a collection of callgraph nodes that form a cycle. We
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/transforms/raise_target_subgraphs.cc

    void RaiseTargetSubgraphsPass::runOnOperation() {
      ModuleOp module = getOperation();
      auto& side_effect_analysis = getAnalysis<TF::SideEffectAnalysis>();
      SmallVector<func::FuncOp> funcs(module.getOps<func::FuncOp>());
      int func_count = -1;
      for (auto func : funcs) {
        const auto& info = side_effect_analysis.GetAnalysisForFunc(func);
        for (auto& block : func) {
          OpBuilder builder = OpBuilder::atBlockBegin(&block);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top