Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for CHECK_LT (0.07 sec)

  1. tensorflow/cc/framework/ops.cc

    namespace tensorflow {
    
    Operation::Operation(Node* n) : inputs_(GetInputs(n)), node_(n) {}
    
    Output Operation::input(int32_t i) const {
      CHECK_NOTNULL(node_);
      CHECK_GE(i, 0);
      CHECK_LT(i, node_->num_inputs());
      // Handle the case where the input was unknown at the time this
      // Operation was constructed.
      if (inputs_[i].first == nullptr && inputs_[i].second == -1) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  2. tensorflow/c/python_api.cc

      handle_data.set_is_set(true);
      {
        mutex_lock l(graph->mu);
        tensorflow::shape_inference::InferenceContext* ic =
            graph->refiner.GetContext(node);
        CHECK(ic != nullptr);
        CHECK_LT(output.index, ic->num_outputs());
        const auto* shapes_and_types =
            ic->output_handle_shapes_and_types(output.index);
        if (shapes_and_types == nullptr) return "";
    
        for (const auto& p : *shapes_and_types) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 12 18:48:56 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. tensorflow/c/kernels.cc

    }
    
    TF_DataType TF_InputDatatype(TF_OpKernelContext* ctx, int index) {
      auto* cc_ctx = reinterpret_cast<::tensorflow::OpKernelContext*>(ctx);
      CHECK_GE(index, 0);                     // Crash OK
      CHECK_LT(index, cc_ctx->num_inputs());  // Crash OK
      return static_cast<TF_DataType>(cc_ctx->input_dtype(index));
    }
    
    void TF_SetOutput(TF_OpKernelContext* ctx, int i, const TF_Tensor* tensor,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 36K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_launch_util.cc

        const XlaCompiler::ResourceUpdate& write =
            compilation_result->resource_updates[i];
        int actual_input_index = write.input_index - missing_ctx_input_prefix;
        CHECK_GE(actual_input_index, 0);
        CHECK_LT(actual_input_index, ctx->num_inputs());
        Var* var = variable_infos[variable_info_lookup[actual_input_index]].var();
        CHECK(var);
    
        VLOG(2) << "Updating variable #" << i
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_launch_util_test.cc

        tensors_.push_back(device_tensor);
        return device_tensor;
      }
    
      // Gets the `output_index`-th output set in the context_
      Tensor* GetOutput(int output_index) {
        CHECK_LT(output_index, context_->num_outputs());
        Tensor* device_tensor = context_->mutable_output(output_index);
        managed_outputs_.resize(context_->num_outputs());
        if (managed_outputs_[output_index]) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  6. tensorflow/c/c_api.cc

      {
        mutex_lock l(graph->mu);
        tensorflow::shape_inference::InferenceContext* ic =
            graph->refiner.GetContext(node);
        CHECK(ic != nullptr);                       // Crash OK
        CHECK_LT(output.index, ic->num_outputs());  // Crash OK
        const auto* shapes_and_types =
            ic->output_handle_shapes_and_types(output.index);
        if (shapes_and_types == nullptr) return nullptr;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top