Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for input_shape (0.05 sec)

  1. tensorflow/c/c_api_experimental_test.cc

    1. // Create input_shapes.
    2. TF_ShapeAndTypeList* input_shapes =
    3. TF_NewShapeAndTypeList(input_shapes_vec.size());
    4. for (size_t i = 0; i < input_shapes_vec.size(); ++i) {
    5. const auto& input_shape = input_shapes_vec[i];
    6. if (input_shape.has_value()) {
    7. TF_ShapeAndTypeListSetShape(input_shapes, i, input_shape->data(),
    8. input_shape->size());
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Jan 17 22:27:52 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_experimental.cc

    1. // Set input_shapes.
    2. for (int i = 0; i < num_inputs; ++i) {
    3. std::vector<DimensionHandle> dims;
    4. const TF_ShapeAndType& input_shape = input_shapes->items[i];
    5. if (input_shape.num_dims == InferenceContext::kUnknownRank) {
    6. c.SetInput(i, c.UnknownShape());
    7. continue;
    8. }
    9. dims.reserve(input_shape.num_dims);
    10. for (int j = 0; j < input_shape.num_dims; ++j) {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_experimental.h

    1. // if you want shape inference to consider the input tensors of the
    2. // op for shape inference.
    3. // - The types need not be set in `input_shapes` as it is not used.
    4. // - The number of `input_tensors` should be the same as the number of items
    5. // in `input_shapes`.
    6. //
    7. // The results are returned in `output_shapes` and
    8. // `output_resource_shapes_and_types`. The caller is responsible for freeing the
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 15.1K bytes
    - Viewed (0)
Back to top