Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CHECK_LT (0.14 sec)

  1. 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)
  2. 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)
  3. 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