Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for C_CTX (0.15 sec)

  1. tensorflow/c/ops_test.cc

          TF_ShapeInferenceContextVectorFromSize(C_CTX(&c), 43);
      ASSERT_EQ(
          "[43]",
          c.DebugString(*reinterpret_cast<shape_inference::ShapeHandle*>(handle)));
      ASSERT_EQ(1, TF_ShapeInferenceContextRankKnown(C_CTX(&c), handle));
      ASSERT_EQ(1, TF_ShapeInferenceContextRank(C_CTX(&c), handle));
    
      TF_DimensionHandle* dim_handle = TF_NewDimensionHandle();
      TF_ShapeInferenceContextDim(C_CTX(&c), handle, 0, dim_handle);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 12.6K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_unified_experimental_eager.cc

    TF_ExecutionContext* TF_NewEagerExecutionContext(TFE_ContextOptions* options,
                                                     TF_Status* s) {
      TFE_Context* c_ctx = TFE_NewContext(options, s);
      if (TF_GetCode(s) != TF_OK) {
        return nullptr;
      }
      return wrap(static_cast<AbstractContext*>(unwrap(c_ctx)));
    }
    
    TF_AbstractTensor* TF_CreateAbstractTensorFromEagerTensor(TFE_TensorHandle* t,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 25 04:40:46 UTC 2020
    - 3.2K bytes
    - Viewed (0)
  3. tensorflow/c/ops.cc

      cc_builder->SetShapeFn(
          [shape_inference_func](InferenceContext* ctx) -> tensorflow::Status {
            TF_Status* c_status = TF_NewStatus();
            auto c_ctx = reinterpret_cast<TF_ShapeInferenceContext*>(ctx);
            shape_inference_func(c_ctx, c_status);
            tensorflow::Status result = ::tensorflow::StatusFromTF_Status(c_status);
            TF_DeleteStatus(c_status);
            return result;
          });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 28 22:41:35 UTC 2022
    - 10.9K bytes
    - Viewed (0)
Back to top