Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TF_DeleteDimensionHandle (0.27 sec)

  1. tensorflow/c/kernels/ops/bitcast.cc

                << " due to shape. " << TF_DimensionHandleValue(last_dim)
                << " does not match " << divisor_val;
            TF_SetStatus(status, TF_INVALID_ARGUMENT, err.str().c_str());
          }
          TF_DeleteDimensionHandle(last_dim);
        }
      } else if (input_type_size > output_type_size) {
        // Input type size is larger than output type size.
        size_t divisor_val = input_type_size / output_type_size;
        TF_ShapeHandle* extension =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 07:51:50 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. tensorflow/c/ops.cc

      }
    }
    
    void TF_DeleteShapeHandle(TF_ShapeHandle* handle) {
      if (handle == nullptr) {
        return;
      }
    
      delete reinterpret_cast<ShapeHandle*>(handle);
    }
    
    void TF_DeleteDimensionHandle(TF_DimensionHandle* handle) {
      if (handle == nullptr) {
        return;
      }
    
      delete reinterpret_cast<DimensionHandle*>(handle);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 28 22:41:35 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  3. tensorflow/c/ops.h

    TF_CAPI_EXPORT extern TF_ShapeHandle* TF_ShapeInferenceContextVectorFromSize(
        TF_ShapeInferenceContext* ctx, size_t size);
    
    // Returns a newly allocated dimension handle. It must be freed with
    // TF_DeleteDimensionHandle.
    TF_CAPI_EXPORT extern TF_DimensionHandle* TF_NewDimensionHandle();
    
    // Interprets the named shape inference context attribute as a TF_DataType and
    // places it into *val. *status is set to TF_OK.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  4. tensorflow/c/ops_test.cc

      TF_ShapeInferenceContextDim(C_CTX(&c), handle, 0, dim_handle);
      ASSERT_EQ(1, TF_DimensionHandleValueKnown(dim_handle));
      ASSERT_EQ(43, TF_DimensionHandleValue(dim_handle));
      TF_DeleteShapeHandle(handle);
      TF_DeleteDimensionHandle(dim_handle);
    }
    
    TEST(OpsTest, ShapeInferenceSubshape) {
      NodeDef def;
      shape_inference::InferenceContext c(0, def, MakeOpDef(1, 0),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 12.6K bytes
    - Viewed (0)
Back to top