Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,070 for Auto (0.05 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/error_util_test.cc

      MLIRContext context;
      auto id =
          StringAttr::get(&context, "//tensorflow/python/keras/keras_file.py");
      auto loc = FileLineColLoc::get(&context, id, 0, 0);
      auto id2 =
          StringAttr::get(&context, "//tensorflow/python/something/my_test.py");
      auto loc2 = FileLineColLoc::get(&context, id2, 0, 0);
      auto id3 = StringAttr::get(&context, "python/tensorflow/show_file.py");
      auto loc3 = FileLineColLoc::get(&context, id3, 0, 0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

        return rewriter.notifyMatchFailure(op, "zero_points must be constant");
      }
    
      auto original_element_type = getElementTypeOrSelf(original_type);
      if (!mlir::isa<TF::Qint8Type, TF::Qint32Type>(original_element_type)) {
        return rewriter.notifyMatchFailure(
            op, "Quantized type must be qint8 or qint32.");
      }
      auto storage_type = GetIntTypeFromTFQint(original_element_type);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc

      // has the property that if there is an edge from SCC1->SCC2, SCC1 is visited
      // after SCC2, i.e., the graph is traversed bottom up just the way we want.
      auto scc_begin = llvm::scc_begin(&call_graph);
      auto scc_end = llvm::scc_end(&call_graph);
      for (auto& scc : make_range(scc_begin, scc_end)) {
        // Each SCC node is a collection of callgraph nodes that form a cycle. We
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

        TFL::QConstOp rhs_qconst_op;
    
        auto GetBroadcastedConstOp = [&](Value operand) -> TFL::QConstOp {
          if (auto broadcast_op = dyn_cast_or_null<stablehlo::BroadcastInDimOp>(
                  operand.getDefiningOp())) {
            auto stablehlo_const_op = dyn_cast_or_null<stablehlo::ConstantOp>(
                broadcast_op.getOperand().getDefiningOp());
            auto const_uniform_quantized_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

      // Remove return values forwarded from unused arguments.
      auto return_op = func_op.front().getTerminator();
      auto old_return_vals = llvm::to_vector<8>(return_op->getOperands());
      int64_t skipped_retvals = 0;
      for (auto entry : llvm::enumerate(old_return_vals)) {
        auto return_val = entry.value();
        if (auto arg = mlir::dyn_cast<BlockArgument>(return_val)) {
          auto it = infos.find(arg.getArgNumber());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      }
    
      auto type_from_array_attr = [&node, &idx, &builder](
                                      absl::string_view output_shape_attr,
                                      absl::string_view element_type_attr) {
        auto* output_shapes = node.attrs().Find(output_shape_attr);
        auto* element_types = node.attrs().Find(element_type_attr);
        const auto& output_shape = output_shapes->list().shape(idx);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/transforms/raise_target_subgraphs.cc

    void RaiseTargetSubgraphsPass::runOnOperation() {
      ModuleOp module = getOperation();
      auto& side_effect_analysis = getAnalysis<TF::SideEffectAnalysis>();
      SmallVector<func::FuncOp> funcs(module.getOps<func::FuncOp>());
      int func_count = -1;
      for (auto func : funcs) {
        const auto& info = side_effect_analysis.GetAnalysisForFunc(func);
        for (auto& block : func) {
          OpBuilder builder = OpBuilder::atBlockBegin(&block);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. tensorflow/cc/experimental/libtf/function.cc

      TF_RETURN_IF_ERROR(ctx->RegisterFunction(trace.get()));
      auto cleanup = absl::MakeCleanup(
          [fname, ctx]() { ctx->RemoveFunction(fname).IgnoreError(); });
      auto call_op = AbstractOperationPtr(ctx->CreateOperation());
      TF_RETURN_IF_ERROR(
          call_op->Reset(fname.c_str(), /*raw_device_name=*/nullptr));
      for (auto t : inputs) {
        TF_RETURN_IF_ERROR(call_op->AddInput(t));
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 04 19:49:06 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/optimize.cc

        auto result_value = gather_nd_first.getResult();
        auto params_value = gather_nd_first.getParams();
        auto indices_value = gather_nd_first.getIndices();
    
        auto result_type = dyn_cast<RankedTensorType>(result_value.getType());
        auto params_type = dyn_cast<RankedTensorType>(params_value.getType());
        auto indices_type = dyn_cast<RankedTensorType>(indices_value.getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

    using ::testing::NotNull;
    using ::tsl::testing::StatusIs;
    
    PJRT_Buffer* CreateCBuffer() {
      auto status = pjrt::PjrtApi(DEVICE_CPU);
      if (!status.ok()) {
        CHECK_OK(pjrt::SetPjrtApi(DEVICE_CPU, GetPjrtApi()));
      }
      auto pjrt_client = xla::GetCApiClient(DEVICE_CPU);
      CHECK_OK(pjrt_client.status());
      auto c_api_client = down_cast<xla::PjRtCApiClient*>(pjrt_client->get());
      std::vector<int32_t> data(1, 0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 01 16:29:40 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top