Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 234 for eraseOp (0.32 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

            if (cluster_name.has_value() &&
                cluster_name.value() != target_cluster_name) {
              tpu_ops.erase(iter);
              return true;
            }
            if (!cluster_name.has_value() &&
                !tpu_ops.count(wrapper.getOperation())) {
              tpu_ops.erase(iter);
              return true;
            }
          }
        }
      }
      return false;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_partitioning.cc

        if (failed(UpdateReadUses(read_var, partitioned_input, partitioned_read,
                                  partitioned_reads, is_packed)))
          return failure();
        read_var->erase();
        if (partitioned_input->use_empty()) partitioned_input->erase();
      }
      return mlir::TF::RemoveSingletonParallelExecuteOp(parallel_execute, &builder);
    }
    
    void TPUResourceReadsWritesPartitioningPass::runOnOperation() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/parallel_execute_to_islands.cc

        builder->setInsertionPoint(terminator);
        auto yield = builder->create<tf_executor::YieldOp>(
            terminator->getLoc(), terminator->getOperands());
        terminator->erase();
    
        // Create new island for each region.
        builder->setInsertionPoint(island_op);
        auto execute_island = builder->create<tf_executor::IslandOp>(
            island_op.getLoc(), yield.getOperandTypes(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 19 19:47:16 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/optimize_global_tensors.cc

          continue;
        }
        // If the tensor is bound to an argument, then it is used.
        if (global_tensor_uses.find(global_tensor) != global_tensor_uses.end()) {
          continue;
        }
        // Erase it.
        global_tensor.erase();
      }
    }
    
    void EraseUnusedBoundInputs(ModuleOp module) {
      for (auto func : module.getOps<func::FuncOp>()) {
        llvm::BitVector args_to_erase(func.getNumArguments());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc

            std::get<1>(result).replaceAllUsesWith(std::get<0>(result));
          }
          launch_ops.insert(op->getParentOfType<tf_device::LaunchOp>());
          op->erase();
        }
        return WalkResult::advance();
      });
    
      for (auto launch_op : launch_ops) {
        Block& block = launch_op.GetBody();
        if (&block.front() == &block.back()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/python/pywrap_quantize_model.cc

            // for CPU. Note the 'tpu' value should be the same as `TPU` defined in
            // tensorflow/python/saved_model/tag_constants.py.
            if (quantization_options.has_debugger_config()) {
              tags.erase("tpu");
            }
            py_function_library.SaveExportedModel(
                dst_saved_model_path, *exported_model, src_saved_model_path, tags,
                signature_def_map);
    
            return absl::OkStatus();
          },
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 09 06:33:29 UTC 2024
    - 12K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.cc

    }
    
    void Insert(const int item, std::vector<int>& items) {
      const auto [iter, found] = Find(item, items);
      if (!found) items.insert(iter, item);
    }
    
    void Erase(const int item, std::vector<int>& items) {
      const auto [iter, found] = Find(item, items);
      if (found) items.erase(iter);
    }
    
    }  // namespace
    
    int Rematerializer::AddOperation(const bool is_stateful) {
      operations_.emplace_back();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc

      }
    
      GraphOp main_graph_op = GetGraphOpFromFuncOp(main_func_op);
    
      FetchOp main_fetch_op = main_graph_op.GetFetch();
      const absl::Cleanup erase_main_fetch_op = [main_fetch_op]() mutable {
        main_fetch_op.erase();
      };
    
      // TODO(b/245473863): Handle when assets are actually used in the body.
      IRMapping mapper = CloneSrcFuncArgumentsToMainFunc(src_func_op, main_func_op);
    
      // Clones each op from src to main_body.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:54:52 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/TestContainerGenerator.java

      /**
       * Creates a new container containing the given elements. TODO: would be nice to figure out how to
       * use E... or E[] as a parameter type, but this doesn't seem to work because Java creates an
       * array of the erased type.
       */
      T create(Object... elements);
    
      /**
       * Helper method to create an array of the appropriate type used by this generator. The returned
       * array will contain only nulls.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/TestContainerGenerator.java

      /**
       * Creates a new container containing the given elements. TODO: would be nice to figure out how to
       * use E... or E[] as a parameter type, but this doesn't seem to work because Java creates an
       * array of the erased type.
       */
      T create(Object... elements);
    
      /**
       * Helper method to create an array of the appropriate type used by this generator. The returned
       * array will contain only nulls.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top