Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,694 for Auto (0.05 sec)

  1. tensorflow/compiler/jit/device_compiler_test.cc

      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
      Scope scope = Scope::NewRootScope().ExitOnError();
      auto a = ops::_Arg(scope.WithOpName("A"), DT_INT32, 0);
      auto b = ops::_Arg(scope.WithOpName("B"), DT_INT32, 1);
      auto c = ops::Add(scope.WithOpName("C"), a, b);
      auto d = ops::_Retval(scope.WithOpName("D"), c, 0);
      TF_RETURN_IF_ERROR(scope.ToGraph(graph.get()));
      return graph;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.cc

        for (auto& bb : fn) {
          for (auto& inst : bb) {
            auto attr_id = mlir::StringAttr::get(context, "value");
            if (auto attr = inst.getAttrOfType<mlir::ElementsAttr>(attr_id)) {
              mlir::Attribute rand_val;
              mlir::Type element_type = attr.getShapedType().getElementType();
              if (mlir::isa<mlir::IntegerType>(element_type)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 11:51:44 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

      auto tf_matmul_op = cast<TF::MatMulOp>(op);
      auto lhs = op->getOperand(0);
      auto rhs = op->getOperand(1);
      auto transpose = [&](Value input) -> std::pair<LogicalResult, Value> {
        RankedTensorType type =
            mlir::dyn_cast_or_null<RankedTensorType>(input.getType());
        if (!type || type.getRank() != 2) return {failure(), nullptr};
    
        auto permute_attr = DenseIntElementsAttr::get(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/merge_control_flow.cc

        MapToRegionVec2D& merged_groups, MapToOperationVec2D& moved_ops_groups) {
      auto it_merged = merged_groups.try_emplace(if_cond);
      auto it_moved = moved_ops_groups.try_emplace(if_cond);
      llvm::SmallVector<TF::IfRegionOp, 8> sub_merged_groups;
      auto begin_if_op_iter = if_ops.begin();
    
      while (begin_if_op_iter != if_ops.end()) {
        auto current_last_if_op_iter =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

      // Remove the assign ops.
      for (const auto& entry : var_access_info.per_resource_info) {
        const auto& info = entry.getSecond();
        if (info.assign) info.assign->erase();
      }
    
      // Remove the read ops if they have no more uses.
      for (const auto& entry : var_access_info.per_resource_info) {
        const auto& info = entry.getSecond();
        if (info.read->use_empty()) info.read->erase();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  6. tensorflow/cc/experimental/libtf/runtime/runtime.cc

      const SavedObjectGraph object_graph = tf_package->GetObjectGraph();
      auto& nodes = object_graph.nodes();
      // Get a map of the concrete functions to their input / output signatures.
      auto& concrete_functions = object_graph.concrete_functions();
      auto& root = nodes.at(0);
      for (auto& child : root.children()) {
        // The child's name describes the name of the edge that connects to the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 01 11:18:25 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/op_or_arg_name_mapper.cc

      if (auto* op = op_or_val.dyn_cast<mlir::Operation*>()) {
        auto name_from_loc = mlir::GetNameFromLoc(op->getLoc());
        if (!name_from_loc.empty()) return name_from_loc;
        // If the location is none of the expected types, then simply use name
        // generated using the op type.
        return std::string(op->getName().getStringRef());
      }
      auto val = op_or_val.dyn_cast<mlir::Value>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. tensorflow/cc/client/client_session_test.cc

      int num_threads = 3;
    
      TensorShape data_shape({1, 1});
      auto a = Placeholder(root, DT_INT32, Placeholder::Shape(data_shape));
      auto b = Placeholder(root, DT_INT32, Placeholder::Shape(data_shape));
      auto c = BatchMatMul(root, a, b);
      ClientSession session(root);
      std::vector<Tensor> outputs;
    
      auto inter_op_threadpool =
          absl::make_unique<CustomThreadPoolImpl>(num_threads);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

        }
    
        auto top_k_attr = backend_config.getAs<IntegerAttr>("top_k");
        auto reduction_dim_attr =
            backend_config.getAs<IntegerAttr>("reduction_dim");
        auto recall_target_attr = backend_config.getAs<FloatAttr>("recall_target");
        auto aggregate_to_topk_attr =
            backend_config.getAs<BoolAttr>("aggregate_to_topk");
        auto reduction_input_size_override_attr =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

      devices.reserve(device_map.size());
    
      for (auto it : device_map) {
        auto device_alias = it.getName().strref();
        auto device_list = mlir::cast<ArrayAttr>(it.getValue());
        llvm::SmallVector<StringRef, 4> device_list_for_alias;
        device_list_for_alias.reserve(device_list.size());
    
        for (auto device : device_list)
          device_list_for_alias.emplace_back(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top