Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 646 for Auto (0.19 sec)

  1. tensorflow/compiler/jit/encapsulate_util.cc

    OutsideCompilationClusterDependencies(
        const Graph* g, const string& outside_compilation_attr_name) {
      auto cluster_deps = std::make_unique<
          absl::flat_hash_map<string, absl::flat_hash_set<string>>>();
    
      for (const Edge* e : g->edges()) {
        auto src_outside_compilation =
            GetStringAttr(*e->src(), outside_compilation_attr_name);
        auto dst_outside_compilation =
            GetStringAttr(*e->dst(), outside_compilation_attr_name);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

        // Create chain source and sink identity islands for current equivalence
        // class.
        auto chain_arg = func.getArgument(chain_index++);
        auto src_identity = builder_chain_src.create<TF::IdentityOp>(
            chain_arg.getLoc(), chain_arg.getType(), chain_arg);
        auto chain_src_island = CreateIsland(src_identity, {}, builder_chain_src);
    
        auto sink_identity = builder_chain_sink.create<TF::IdentityOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

      if (failed(GetLstmProperty(op, &lstm_variant, &lstm_property))) {
        return nullptr;
      }
    
      auto spec = std::make_unique<quant::OpQuantSpec>();
    
      for (const auto& enumerated_inputs : lstm_property.inputs) {
        int index = enumerated_inputs.first;
        auto& tensor_property = enumerated_inputs.second;
        if (tensor_property.use_derived_scale) {
          double scale = 1.0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

        // argument in the list.
        auto arg = bb.getArgument(0);
    
        auto remove_quantize_op = [&](QuantizeOp quantize_op) {
          auto quantize_output = quantize_op.getOutput();
          auto quantize_type = quantize_output.getType();
          input_types.push_back(quantize_type);
          auto new_arg = bb.addArgument(quantize_type, loc);
          quantize_output.replaceAllUsesWith(new_arg);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

              auto dq_arg_type = dq_op.getArg().getType().cast<TensorType>();
              auto qtype = dq_arg_type.getElementType().cast<QuantizedType>();
              auto scast_op = rewriter.create<quantfork::StorageCastOp>(
                  dq_op->getLoc(), dq_arg_type.clone(qtype.getStorageType()),
                  dq_op.getArg());
              inputs.push_back(scast_op.getResult());
            } else if (!elem_type.isF32()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/passes/decompose.cc

        llvm::SmallVector<Value, 4> new_operands;
        for (auto arg : llvm::enumerate(compose_func_type.getInputs())) {
          if (auto tensor_type = mlir::dyn_cast<TFRTensorType>(arg.value())) {
            auto casted = builder.create<CastOp>(op->getLoc(), tensor_type,
                                                 op->getOperand(arg.index()));
            new_operands.push_back(casted);
          } else if (auto list_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc

    }
    
    // Checks if an operation of the tf_executor dialect can have TPU devices
    // propagated through.
    bool IsSupportedExecutorOp(Operation& op) {
      auto ops_have_same_device = [](Operation* lhs, Operation* rhs) {
        auto lhs_device_attr = lhs->getAttrOfType<StringAttr>(kDeviceAttr);
        auto rhs_device_attr = rhs->getAttrOfType<StringAttr>(kDeviceAttr);
        return (!lhs_device_attr && !rhs_device_attr) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc

        llvm::SmallVectorImpl<std::string>* var_handle_shared_names) {
      Block& block = function.front();
      auto func_type = function.getFunctionType();
    
      auto func_arg_types = llvm::to_vector<4>(func_type.getInputs());
      llvm::SmallDenseMap<llvm::StringRef, int> var_arg_index_by_name;
      for (auto var_handle_op :
           llvm::make_early_inc_range(block.getOps<TF::VarHandleOp>())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

        return signalPassFailure();
    
      // Eliminate TPUCompilationResultOp now that the rewrite is complete.
      for (auto& it : compilation_results) {
        for (auto op : it.second) {
          if (!op.use_empty()) {
            mlir::InFlightDiagnostic err = op.emitError("uses remain post rewrite");
            for (auto user : op->getUsers())
              err.attachNote(user->getLoc()) << "remaining user";
            return signalPassFailure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  10. tensorflow/cc/saved_model/metrics.cc

    namespace {
    
    // Counter that tracks total number and `write_version` of SavedModels written.
    auto* saved_model_write_counter = monitoring::Counter<1>::New(
        "/tensorflow/core/saved_model/write/count",
        "The number of SavedModels successfully written.", "write_version");
    
    // Counter that tracks total number and `write_version` of SavedModels read.
    auto* saved_model_read_counter = monitoring::Counter<1>::New(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 18 23:43:59 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top