Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for TF_GraphSetTensorShape (0.15 seconds)

  1. tensorflow/c/c_api_test.cc

      TF_GraphSetTensorShape(graph, feed_out_0, /*dims=*/nullptr, -1, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      num_dims = TF_GraphGetTensorNumDims(graph, feed_out_0, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      EXPECT_EQ(-1, num_dims);
    
      // Set the shape to be 2 x Unknown
      int64_t dims[] = {2, -1};
      TF_GraphSetTensorShape(graph, feed_out_0, dims, 2, s);
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Jan 07 04:56:09 GMT 2026
    - 97.3K bytes
    - Click Count (0)
  2. tensorflow/c/c_api.cc

      }
    }
    #endif  // !defined(IS_MOBILE_PLATFORM) && !defined(IS_SLIM_BUILD)
    
    }  // namespace
    
    // Shape functions -----------------------------------------------------------
    
    void TF_GraphSetTensorShape(TF_Graph* graph, TF_Output output,
                                const int64_t* dims, const int num_dims,
                                TF_Status* status) {
      Node* node = &output.oper->node;
    
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 04 05:55:32 GMT 2025
    - 102.4K bytes
    - Click Count (0)
Back to Top