Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_TensorSpecShape (0.44 sec)

  1. tensorflow/c/experimental/saved_model/internal/tensor_spec.cc

    #include "tensorflow/c/tf_shape_internal.h"
    
    extern "C" {
    
    TF_DataType TF_TensorSpecDataType(const TF_TensorSpec* spec) {
      return static_cast<TF_DataType>(tensorflow::unwrap(spec)->dtype());
    }
    
    const TF_Shape* TF_TensorSpecShape(const TF_TensorSpec* spec) {
      return tensorflow::wrap(&tensorflow::unwrap(spec)->shape());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 30 17:58:21 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/public/tensor_spec.h

    // Returns the shape associated with the TensorSpec. The returned Shape is not
    // owned by the caller. Caller must not call TF_DeleteShape on the returned
    // shape.
    TF_CAPI_EXPORT extern const TF_Shape* TF_TensorSpecShape(
        const TF_TensorSpec* spec);
    
    #ifdef __cplusplus
    }  // end extern "C"
    #endif  // __cplusplus
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 30 17:58:21 UTC 2020
    - 1.6K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc

      const TF_SignatureDefParam* param_a = TF_SignatureDefParamListGet(args, 0);
      const TF_TensorSpec* tensor_spec_a = TF_SignatureDefParamTensorSpec(param_a);
      const TF_Shape* shape_a = TF_TensorSpecShape(tensor_spec_a);
    
      // Input "a" is a scalar, float32 tensor
      EXPECT_EQ("a", std::string(TF_SignatureDefParamName(param_a)));
      EXPECT_EQ(TF_FLOAT, TF_TensorSpecDataType(tensor_spec_a));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 08:08:45 UTC 2024
    - 21.3K bytes
    - Viewed (0)
Back to top