Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 403 for pushBack (0.24 sec)

  1. tensorflow/c/experimental/ops/gen/common/case_format.cc

          if (wordStart) {
            result.push_back(delimiter);
          }
          wordStart = true;
          continue;
        }
        if (!from_snake && isupper(c)) {
          wordStart = true;
        }
    
        // add delimiter
        if (wordStart && toSnake && !inputStart) {
          result.push_back(delimiter);
        }
    
        // add the next letter from the input string (choosing upper/lower case)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 09:51:28 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/group_by_dialect.cc

      std::vector<Type> input_types;
      std::vector<Type> output_types;
    
      input_types.reserve(inputs.size());
      for (Value v : inputs) {
        input_types.push_back(v.getType());
      }
      output_types.reserve(outputs.size());
      for (Value v : outputs) {
        output_types.push_back(v.getType());
      }
    
      // Create the function.
      MLIRContext* context = ops[0]->getContext();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 8K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/encapsulate_util.cc

        std::vector<const Edge*> control_edges;
        std::vector<OutEdgeInfo> data_edges;
        for (auto e : n->out_edges()) {
          if (e->IsControlEdge()) {
            control_edges.push_back(e);
          } else {
            data_edges.push_back({e->dst(), e->src_output(), e->dst_input()});
          }
        }
        for (const Edge* e : control_edges) {
          g->AddControlEdge(original_node, e->dst());
          g->RemoveEdge(e);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc

          control_fetches.push_back(value);
        } else {
          data_fetches.push_back(value);
          data_types.push_back(value.getType());
        }
      }
      auto island = OpBuilder(fetch).create<IslandOp>(
          fetch.getLoc(), data_types,
          /*control=*/ControlType::get(fetch.getContext()),
          /*controlInputs=*/control_fetches);
      island.getBody().push_back(new Block);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

          transpose_ops.push_back(transpose);
        }
      }
    
      // Nothing to do here.
      if (!permutation_op || transpose_ops.empty()) return;
      SmallVector<int64_t, 4> permutation;
      auto perm_attr = mlir::cast<DenseElementsAttr>(permutation_op.getValue());
      for (const auto& value : perm_attr.getValues<APInt>())
        permutation.push_back(value.getSExtValue());
    
    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/common/quantization_lib/quantization_config.cc

            const std::vector<std::string> indices =
                absl::StrSplit(node_specification, '-');
            for (const std::string& cur_index : indices) {
              custom_op_map[node_name].quantizable_input_indices.push_back(
                  std::stoi(cur_index));
            }
            break;
          }
          case CustomOpUpdateOptions::kWeightOnly:
            custom_op_map[node_name].is_weight_only =
                GetBooleanSpecs(node_specification);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

          sharding_for_args.push_back(operand_sharding);
          continue;
        }
    
        if (infer_from_computation) {
          auto arg_sharding = GetXlaShardingFromArg(arg, logical_device_vec);
          if (arg_sharding) {
            sharding_for_args.push_back(arg_sharding.value());
            continue;
          }
        }
    
        sharding_for_args.push_back(std::nullopt);
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      builder.setInsertionPoint(call);
      auto new_operands = llvm::to_vector(call.getArgOperands());
      new_operands.push_back(token);
      auto new_result_types = llvm::to_vector(call.getResultTypes());
      new_result_types.push_back(token.getType());
      auto new_call = builder.create<func::CallOp>(
          call.getLoc(), new_result_types,
          new_symbol ? *new_symbol : call.getCallee(), new_operands);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc

          // Add new control input if its defining op is not already a defining
          // op for some other operand. Update defining_ops.
          if (defining_ops.insert(new_control_input.getDefiningOp()).second) {
            operands.push_back(new_control_input);
          }
        }
        state.addOperands(operands);
        Operation* new_op = builder.create(state);
        item.replaceAllUsesWith(new_op);
        new_op->setAttrs(item.getAttrDictionary());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc

      if (!main_fn) return std::string("");
    
      flatbuffers::FlatBufferBuilder fb_builder;
      std::vector<mlir::func::FuncOp> funcs;
      funcs.push_back(main_fn);
      module.walk([&](mlir::func::FuncOp fn) {
        if (fn != main_fn) {
          funcs.push_back(fn);
        }
      });
    
      // Populate the hardware metadata.
      // And collect the hardwares used.
      std::map<std::string, uint8_t> hardware_map;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top