- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 593 for shake (0.04 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc
} // Converts the tensor shape proto into an MLIR shape attribute. absl::StatusOr<mlir::Attribute> ConvertTensorShapeProto( const TensorShapeProto& shape, mlir::MLIRContext* context) { if (shape.unknown_rank()) return mlir::TF::ShapeAttr::get(context, std::nullopt); llvm::SmallVector<int64_t, 4> dims; dims.reserve(shape.dim().size()); for (const auto& dim : shape.dim()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 20.5K bytes - Viewed (0) -
tensorflow/c/ops.h
// if (TF_GetCode(status) != TF_OK) { // // handle error // } // // SHAPE INFERENCE // --------------- // // You can provide a shape inference function that TensorFlow will call when it // wants to understand the shape of outputs that the op will produce. Use the // TF_OpDefinitionBuilderSetShapeInferenceFunction function to register a shape // inference function pointer with TensorFlow. The following is an example of a
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 27 21:07:00 UTC 2023 - 16.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/tests/ops.mlir
func.return %0 : !tfr.tensor<K> } // ----- // CHECK-LABEL: get_shape func.func @get_shape(%arg0: !tfr.tensor) -> (!shape.shape, !shape.shape) { %0 = tfr.get_shape %arg0 -> !shape.shape %1 = "tfr.get_shape"(%arg0) : (!tfr.tensor) -> !shape.shape func.return %0, %1 : !shape.shape, !shape.shape } // ----- // CHECK-LABEL: get_real_shape func.func @get_real_shape(%arg0: tensor<1x2xf32>) -> tensor<2xindex> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jan 14 22:15:06 UTC 2023 - 13.1K bytes - Viewed (0) -
tensorflow/compiler/jit/pjrt_device_context.cc
cpu_tensor->shape(), cpu_tensor->dtype(), std::nullopt); TF_ASSIGN_OR_RETURN(xla::Shape shape, shape_determination_fns.shape_representation_fn( cpu_tensor->shape(), cpu_tensor->dtype(), /*fast_mem=*/false, layout_preference)); const xla::Layout* device_layout = &(shape.layout()); // The device id should match the local_hardware_id in
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 08:49:31 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc
} // Helper method that given 'shape' and 'current_index' representing // index in broadcasted tensor, get the index in the flat original tensor. // 'shape' is computed from the original shape and the broadcast dimensions to // match result shape. int64_t GetElementIndex(llvm::SmallVectorImpl<int64_t> &shape, llvm::SmallVectorImpl<int64_t> ¤t_index) { int64_t ind = 0;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.5K bytes - Viewed (0) -
tensorflow/cc/gradients/linalg_grad.cc
// Obtain the shape of the output, as if keepdims=True on reduce sum. E.g. // for the equation "abcd->ac" with input shape [2,5,3,4], we get the // reduced shape [2,1,3,1]. auto reduced_shape = ReducedShapeHelper(scope, input_shape, reduced_axes); // Reshaping the gradient (wrt "ac") to [2,1,3,1] and broadcasting it to // the shape [2,5,3,4] results in the gradient wrt "abcd".
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 07 23:11:54 UTC 2022 - 20.4K bytes - Viewed (0) -
pkg/scheduler/apis/config/validation/validation_pluginargs.go
allErrs = append(allErrs, validateFunctionShape(args.Shape, path.Child("shape"))...) } else if args.Shape != nil { // When the feature is off, return an error if the config is not nil. // This prevents unexpected configuration from taking effect when the // feature turns on in the future.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 05 09:29:49 UTC 2023 - 12.9K bytes - Viewed (0) -
tensorflow/c/c_api_experimental.cc
ShapeHandle shape_handle = c.output(i); TF_ShapeAndType& shape = output_shapes_result->items[i]; shape.num_dims = c.Rank(shape_handle); if (shape.num_dims == InferenceContext::kUnknownRank) { shape.dims = nullptr; continue; } shape.dims = new int64_t[shape.num_dims]; for (size_t j = 0; j < shape.num_dims; ++j) { shape.dims[j] = c.Value(c.Dim(shape_handle, j)); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 29.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental_graph.cc
TF_RETURN_IF_ERROR(operation->SetAttrType("dtype", dtype)); if (!shape.unknown_rank()) { TF_RETURN_IF_ERROR(operation->SetAttrShape( "shape", reinterpret_cast<int64_t*>(shape.dim_sizes().data()), shape.dims())); } int num_outputs = 1; std::vector<AbstractTensorHandle*> outputs(num_outputs); TF_RETURN_IF_ERROR(operation->Execute(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 20:00:09 UTC 2024 - 15.4K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_device_context.cc
xla_tensor->WaitForDefinitionEventOnStream(device_to_host_stream.get()); // Transfer manager requires the shape of the shaped buffer to be the same as // literal shape except for the layout. Set the literal to use xla_tensor's // shape as it is derived from the cpu_tensor's shape using // shape_representation_fn_. xla::MutableBorrowingLiteral literal; TF_CHECK_OK(HostTensorToMutableBorrowingLiteral(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 00:36:08 UTC 2024 - 12.7K bytes - Viewed (0)