Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 986 for Auto (0.05 sec)

  1. tensorflow/compiler/jit/pjrt_compile_util_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: Mon Aug 21 23:21:57 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/convert_attr.cc

          for (const auto& item : value.list().i())
            attrs.push_back(builder->getI64IntegerAttr(item));
          for (const auto& item : value.list().s())
            attrs.push_back(builder->getStringAttr(item));
          for (const auto& item : value.list().f())
            attrs.push_back(builder->getFloatAttr(builder->getF32Type(), item));
          for (const auto& item : value.list().b())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_colocate_composite_resource_ops.cc

      llvm::SmallVector<Operation*, 4> resource_users;
      const auto add_resource_op_to_list = [&resource_users](Operation* op) {
        if (!llvm::isa<TF::AssignVariableOp, TF::ReadVariableOp>(op)) return;
    
        resource_users.emplace_back(op);
      };
    
      llvm::SmallVector<Operation*, 4> resource_users_to_visit;
      for (auto composite_arguments : replicate.GetPackedBlockArguments()) {
        for (auto resource_user : composite_arguments.getUsers())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 17:41:12 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/remove_vars_in_session_initializer.cc

      // Removes relevant ops in topological order.
      for (auto& op : vars) RecursiveRemove(op, erase_list, dead_ops);
    
      // Erases the ops.
      for (auto op : erase_list) op->erase();
    }
    
    void RemoveVariablesInSessionInitializerPass::runOnOperation() {
      ModuleOp module_op = getOperation();
    
      for (auto init_func_op : GetInitializerFunctions(module_op)) {
        if (!init_func_op) return;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/strip_tf_attributes.cc

            mlir::function_interface_impl::getArgAttrs(func, i);
        auto stripAttrs = llvm::to_vector<4>(llvm::make_filter_range(
            attrs,
            [](NamedAttribute namedAttr) { return ShouldStripAttr(namedAttr); }));
        for (auto namedAttr : stripAttrs) {
          func.removeArgAttr(i, namedAttr.getName());
        }
      }
    
      for (int i = 0; i < func.getNumResults(); ++i) {
        auto stripAttrs = llvm::to_vector<4>(llvm::make_filter_range(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_common.cc

      if (options.has_chain) result.types.push_back(chain_type);
      result.types.append(num_results, tensor_type);
    
      llvm::SmallVector<mlir::Attribute, 4> op_attr_array;
      for (const auto &key_value : op_attrs) {
        auto key = key_value.getName();
        auto value = key_value.getValue();
        op_attr_array.push_back(builder.getArrayAttr({key, value}));
      }
    
      result.attributes.push_back(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/lower_variable_ops_to_ml_program.cc

      Value resource;
      if (auto read = llvm::dyn_cast<TF::ReadVariableOp>(op)) {
        resource = read.getResource();
      } else if (auto write = llvm::dyn_cast<TF::AssignVariableOp>(op)) {
        resource = write.getResource();
      }
      const TF::ResourceDataflowState* state =
          solver.lookupState<TF::ResourceDataflowState>(resource);
      if (!state) {
        return nullptr;
      }
      auto ops = state->getValue().ops;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/optimize_global_tensors.cc

      GlobalTensorUsesMap global_tensor_uses;
    
      SymbolTable symbol_table(module);
      for (auto func : module.getOps<func::FuncOp>()) {
        for (size_t i = 0, e = func.getNumArguments(); i < e; i++) {
          auto sym =
              func.getArgAttrOfType<SymbolRefAttr>(i, "tf_saved_model.bound_input");
          if (!sym) {
            continue;
          }
          auto global_tensor = symbol_table.lookup<GlobalTensorOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/reduce_type_precision.cc

                                    PatternRewriter &rewriter) const override {
        auto const_type = mlir::dyn_cast<ShapedType>(op.getType());
        if (!const_type || !const_type.getElementType().isSignlessInteger(8)) {
          return failure();
        }
    
        auto attr = mlir::cast<ElementsAttr>(op.getValue());
        for (mlir::APInt v : attr.getValues<mlir::APInt>()) {
          auto v_int = static_cast<int8_t>(*(v.getRawData()));
          if (v_int > 7 || v_int < -8) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc

                                      func::CallOp to_graph) {
      int64_t total_size_transferred = 0;
      for (auto input : to_graph.getOperands()) {
        Operation* input_op = input.getDefiningOp();
        if (input_op && input_op == from_graph.getOperation()) {
          auto input_type =
              mlir::dyn_cast_or_null<RankedTensorType>(input.getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top