Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for getUniqueName (0.24 sec)

  1. tensorflow/compiler/mlir/op_or_arg_name_mapper.cc

          }
        }
      }
    }
    
    llvm::StringRef OpOrArgNameMapper::GetUniqueName(OpOrVal op_or_val,
                                                     int hash_value) {
      auto& name = op_or_val_to_name_[op_or_val];
      if (!name.empty()) return StringViewToRef(name);
      // Update the value in the map with unique name.
      llvm::StringRef ref = GetUniqueName(GetName(op_or_val), hash_value);
      name = StringRefToView(ref);
      return ref;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/scope.cc

        builder->AssignedDevice(impl()->assigned_device_);
      }
      if (!impl()->xla_cluster_.empty()) {
        builder->XlaCluster(impl()->xla_cluster_);
      }
    }
    
    string Scope::Impl::GetUniqueName(const string& prefix,
                                      bool check_single_use) const {
      if (check_single_use && single_use_scope()) {
        if (*scope_used_) {
          *status_ =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

      auto node_def = std::make_unique<NodeDef>();
      if (!name.empty())
        node_def->set_name(std::string(ParseTensorName(name.str()).node()));
      else
        node_def->set_name(
            std::string(op_to_name_.GetUniqueName(func.getName().str())));
    
      node_def->set_op(FunctionLibraryDefinition::kArgOp);
    
      mlir::TensorType arg_type = mlir::cast<mlir::TensorType>(arg.getType());
      if (auto resource_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

      auto node_def = std::make_unique<NodeDef>();
      if (!name.empty())
        node_def->set_name(std::string(ParseTensorName(name.str()).node()));
      else
        node_def->set_name(
            std::string(op_to_name_.GetUniqueName(func.getName().str())));
    
      node_def->set_op(FunctionLibraryDefinition::kArgOp);
    
      mlir::TensorType arg_type = mlir::cast<mlir::TensorType>(arg.getType());
      if (auto resource_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

      llvm::SmallVector<func::FuncOp, 4> worklist;
    };
    
    std::string RegionControlFlowToFunctional::GetName(Operation* op,
                                                       StringRef suffix) {
      return (mapper.GetUniqueName(op) + suffix).str();
    }
    
    // Returns all the external values referenced from the given regions. If the
    // external value is a constant, sink it into the region instead (and do not
    // add it to the returned vector).
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc

          }
    
          op.setAttr(tensorflow::kXlaTokenInputNodesAttrName,
                     ArrayAttr::get(ctx, {token}));
    
          auto node_name = StringAttr::get(ctx, name_mapper.GetUniqueName(&op));
          op.setAttr(tensorflow::kXlaOriginalOutsideCompilationNodeName, node_name);
          token = node_name;
        }
      }
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

      std::string GetName(Operation* op, StringRef suffix);
    
      tensorflow::OpOrArgLocNameMapper mapper_;
    };
    
    std::string WhileOutlinePass::GetName(Operation* op, StringRef suffix) {
      return (mapper_.GetUniqueName(op) + suffix).str();
    }
    
    // Returns whether the WhileOp is already outlined (e.g., only consists of calls
    // to functions).
    bool IsAlreadyOutlined(WhileOp while_op) {
      auto just_call = [](Region& region) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.cc

      }
    
      if (HasSymbolRefAttr(op_)) {
        return op_->emitRemark() << "ops with symbol references are not supported";
      }
    
      auto nodedef_or = tensorflow::ConvertTFDialectOpToNodeDef(
          op_, name_mapper_.GetUniqueName(op_),
          /*ignore_unregistered_attrs=*/true);
      if (!nodedef_or.ok()) {
        return op_->emitRemark() << "failed to convert op to NodeDef: "
                                 << nodedef_or.status().ToString();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  9. platforms/ide/ide-plugins/src/main/java/org/gradle/plugins/ide/internal/tooling/EclipseModelBuilder.java

                EclipseModel eclipseModel = project.getExtensions().findByType(EclipseModel.class);
                if (eclipseModel != null) {
                    eclipseModel.getProject().setName(uniqueProjectNameProvider.getUniqueName(project));
                }
            }
        }
    
        private void applyEclipsePlugin(ProjectInternal root, List<GradleInternal> alreadyProcessed) {
            Set<Project> allProjects = root.getAllprojects();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:45:59 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

        }
        result += mac_count;
      });
    
      *count = result;
      return !encounter_undetermined_mac;
    }
    
    std::string Translator::UniqueName(mlir::Value val) {
      return std::string(name_mapper_.GetUniqueName(val));
    }
    
    std::optional<BufferOffset<tflite::Buffer>> Translator::BuildBuffer(
        mlir::Value value, bool can_be_deduplicated, int& index) {
      auto inst = value.getDefiningOp();
      ElementsAttr attr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
Back to top