Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,054 for incrementBy (0.5 sec)

  1. tensorflow/cc/saved_model/metrics_test.cc

      EXPECT_EQ(SavedModelWriteApi("foo").value(), 0);
      SavedModelWriteApi("foo").IncrementBy(1);
      EXPECT_EQ(SavedModelWriteApi("foo").value(), 1);
    
      EXPECT_EQ(SavedModelWriteCount("1").value(), 0);
      SavedModelWriteCount("1").IncrementBy(1);
      EXPECT_EQ(SavedModelWriteCount("1").value(), 1);
    }
    
    TEST(MetricsTest, TestSavedModelRead) {
      SavedModelReadApi("bar").IncrementBy(1);
      EXPECT_EQ(SavedModelReadApi("bar").value(), 1);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 18 23:43:59 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/input_lowering_metrics_pass.cc

          dynamism_op_counter->GetCell(op->getName().getStringRef().str())
              ->IncrementBy(1);
        }
    
        return WalkResult::advance();
      });
    
      if (has_dynamic_op) {
        dynamism_function_counter->GetCell(kDynamicFunctionName)->IncrementBy(1);
      } else {
        dynamism_function_counter->GetCell(kNotDynamicFunctionName)->IncrementBy(1);
      }
    }
    }  // namespace
    
    std::unique_ptr<mlir::OperationPass<mlir::func::FuncOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 08:55:35 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. tensorflow/cc/saved_model/image_format/internal_api.cc

              .IncrementBy(1);
        }
        return result;
      }
    
    #if !defined(PLATFORM_WINDOWS) && !defined(__APPLE__)
      absl::Status result =
          tools::proto_splitter::Merger::Read(file_prefix, saved_model_proto);
      if (result.ok()) {
        metrics::SavedModelReadCount(
            saved_model::GetWriteVersion(*saved_model_proto))
            .IncrementBy(1);
      }
      return result;
    #endif
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 30 21:50:27 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_experimental_reader.h

    //
    // The code under test will have created streamz counters like this:
    // auto* streamz = tensorflow::monitoring::Counter<1>::New("name",
    // "description", "label");
    // and then incremented that counter for various values of label:
    // streamz->GetCell("label-value")->IncrementBy(1);
    //
    // The test code can then read and test the value of that counter:
    //
    // auto* reader = TFE_MonitoringNewCounterReader("name");
    // test();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 20 03:14:47 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor.cc

    }
    
    tensorflow::Status RecordStatusIfError(absl::Status status) {
      if (status.ok()) {
        return absl::OkStatus();
      }
    
      tf_dialect_to_executor_dialect_status->GetCell(kExportFailed)->IncrementBy(1);
      VLOG(1) << "Failed to export from TF Dialect to TF Executor Dialect. "
              << status;
    
      constexpr char bridge_subcomponent[] =
          "TFXLA_TF_FUNCTIONAL_TO_EXECUTOR_EXPORT_v2";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. tensorflow/cc/saved_model/reader.cc

                                          saved_model_proto);
          if (result.ok()) {
            metrics::SavedModelReadCount(
                saved_model::GetWriteVersion(*saved_model_proto))
                .IncrementBy(1);
          }
          return result;
        }
      }
    
      const std::string saved_model_pbtxt_path =
          io::JoinPath(export_dir, kSavedModelFilenamePbTxt);
      auto saved_model_pbtxt_exists =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 00:19:29 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v1/tf_dialect_to_executor.cc

      if (status.ok()) {
        return absl::OkStatus();
      }
    
      VLOG(1) << "Failed to export from TF Dialect to TF Executor Dialect. "
              << status;
      tf_dialect_to_executor_dialect_status->GetCell(kExportFailed)->IncrementBy(1);
    
      constexpr char bridge_subcomponent[] =
          "TFXLA_TF_FUNCTIONAL_TO_EXECUTOR_EXPORT_v1";
      constexpr char kBridgeComponent[] = "TFXLABridge";
    
      tsl::OkOrSetErrorCounterPayload(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 16 03:41:02 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc

            mlir_function_pass_fallback_count->GetCell(kFailure)->IncrementBy(1);
          } else if (pass_state == MlirOptimizationPassState::Enabled) {
            return pass_status;
          }
        } else {
          if (pass_state == MlirOptimizationPassState::FallbackEnabled) {
            mlir_function_pass_fallback_count->GetCell(kSuccess)->IncrementBy(1);
          }
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/inference/inference_metrics_pass.cc

      }
    
      std::string has_tpu_partitioned_call_str =
          has_tpu_partitioned_call ? "true" : "false";
      has_tpu_partitioned_call_streamz->GetCell(has_tpu_partitioned_call_str)
          ->IncrementBy(1);
    }
    
    }  // namespace
    
    std::unique_ptr<mlir::OperationPass<mlir::ModuleOp>>
    CreateInferenceMetricsPass() {
      return std::make_unique<InferenceMetricsPass>();
    }
    
    }  // namespace internal
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 05 21:24:51 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/integration/graph_decompose_pass.cc

        LOG_FIRST_N(INFO, 1) << "Skipping Graph Decomposition Pass, decomposition"
                                " library was not found";
        return absl::OkStatus();
      }
    
      tf_core_op_expansion_graph_counter->GetCell()->IncrementBy(1);
    
      LOG_FIRST_N(INFO, 1) << "Run Graph Decomposition Passes";
    
      TF_RETURN_IF_ERROR(DecomposeGraph(module));
    
      LOG_FIRST_N(INFO, 1) << "Finish Graph Decomposition Passes";
    
      return absl::OkStatus();
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Feb 25 16:22:36 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top