Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for make_shape (0.2 sec)

  1. tensorflow/c/c_api_experimental_test.cc

      CheckOutputShapes(matmul_op,
                        /*input_shapes*/ {make_shape({3, 2}), make_shape({2, 4})},
                        /*input_tensors*/ {},
                        /*expected_shape*/ make_shape({3, 4}));
    
      // Infer shape when second operand has unknown shape.
      CheckOutputShapes(matmul_op,
                        /*input_shapes*/ {make_shape({3, 2}), unknown_shape()},
                        /*input_tensors*/ {},
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  2. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

      CHECK_OK(pjrt_client.status());
      auto c_api_client = down_cast<xla::PjRtCApiClient*>(pjrt_client->get());
      std::vector<int32_t> data(1, 0);
      xla::Shape shape = xla::ShapeUtil::MakeShape(xla::S32, {1});
    
      auto buffer = c_api_client->pjrt_c_client()->client->BufferFromHostBuffer(
          data.data(), shape.element_type(), shape.dimensions(),
          /*byte_strides=*/std::nullopt,
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_unified_experimental_graph.cc

                               reinterpret_cast<int64_t*>(dims.data()), num_dims,
                               &status);
        TF_RETURN_IF_ERROR(StatusFromTF_Status(&status));
        TF_RETURN_IF_ERROR(tensorflow::TensorShapeUtils::MakeShape(dims, shape));
    
        return absl::OkStatus();
      }
    
      tensorflow::FullTypeDef FullType() const override {
        const FullTypeDef* ft;
        mutex_lock l(graph_->mu);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  4. tensorflow/c/c_api_experimental.cc

          continue;
        }
        dims.reserve(input_shape.num_dims);
        for (int j = 0; j < input_shape.num_dims; ++j) {
          dims.push_back(c.MakeDim(input_shape.dims[j]));
        }
        c.SetInput(i, c.MakeShape(dims));
      }
    
      // TODO(bgogul): Handle input_tensors_as_shapes.
      // TODO(bgogul): Handle input_resource_shapes_and_types.
    
      status->status = c.construction_status();
      if (!status->status.ok()) return;
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  5. tensorflow/c/c_api.cc

        std::vector<tensorflow::shape_inference::DimensionHandle> dim_vec;
        dim_vec.reserve(num_dims);
        for (int i = 0; i < num_dims; ++i) {
          dim_vec.push_back(ic->MakeDim(dims[i]));
        }
        return ic->MakeShape(dim_vec);
      } else {
        return ic->UnknownShape();
      }
    }
    
    }  // namespace
    
    void TF_GraphSetOutputHandleShapesAndTypes(TF_Graph* graph, TF_Output output,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
Back to top