- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 1,694 for shade (0.15 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py
weight_row = array_ops.ones( shape=array_ops.shape(input_vocabs_placeholder), dtype=dtypes.float32 ) # shape: (?, 2) weight = array_ops.transpose_v2( array_ops_stack.stack([weight_row, weight_row]) ) # shape: (2, 2) output_tensor = math_ops.matmul(matmul_input, weight) return input_vocabs_placeholder, lookup_vals, output_tensor
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 08:51:46 UTC 2024 - 51.2K bytes - Viewed (0) -
tensorflow/c/experimental/ops/array_ops.h
// Returns a tensor of zeros with the same shape and type as x. Status ZerosLike(AbstractContext* ctx, AbstractTensorHandle* const x, AbstractTensorHandle** y, const char* name = nullptr, const char* raw_device_name = nullptr); // Returns the shape of a tensor. Status Shape(AbstractContext* ctx, AbstractTensorHandle* const input,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 10 19:11:36 UTC 2022 - 2.7K bytes - Viewed (0) -
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/tensorflow/tests/graphdef2mlir/mlir_passthrough_op.pbtxt
attr { key: "_user_specified_name" value { s: "x" } } attr { key: "dtype" value { type: DT_FLOAT } } attr { key: "shape" value { shape { dim { size: 10 } } } } } node { name: "y" op: "Placeholder" attr { key: "_user_specified_name" value { s: "y"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 1.9K bytes - Viewed (0) -
tensorflow/cc/framework/ops.cc
return; } if (!TensorShape{e.tensor.shape()}.IsSameSize( TensorShape{first.tensor.shape()})) { status = errors::InvalidArgument( "Initializer list components should all have the same shape"); return; } } // Form the new shape. TensorShape shape{static_cast<int64_t>(v.size())}; shape.AppendShape(TensorShape{first.tensor.shape()}); Tensor t(first.tensor.dtype(), shape);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 11 01:20:50 UTC 2021 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/jit/pjrt_tensor_buffer_util.cc
#include "tsl/platform/statusor.h" namespace tensorflow { static size_t GetTensorSize(const TensorShape& shape, const DataType dtype) { return shape.num_elements() * DataTypeSize(dtype); } absl::StatusOr<Tensor> MakeTensorFromPjRtBuffer( const DataType dtype, const TensorShape& shape, std::unique_ptr<xla::PjRtBuffer> pjrt_buffer) { TF_ASSIGN_OR_RETURN(std::unique_ptr<xla::PjRtBuffer::ExternalReference> ref,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 14 18:14:47 UTC 2023 - 3.5K 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/tensorflow/tests/tpu-multiple-while-body-func.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 13 21:23:47 UTC 2024 - 2.9K bytes - Viewed (0)