- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for num_elements (0.23 sec)
-
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
SmallVector<ValueType, 16> new_values; new_values.reserve(num_elements); ValueType new_value = start; for (int i = 0; i < num_elements; ++i) { new_values.push_back(new_value); new_value = new_value + delta; } // Result is always a 1-D tensor. auto new_result_type = tensorflow::GetTypeFromTFTensorShape({num_elements}, result_elem_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
SmallVector<ValueType, 16> new_values; new_values.reserve(num_elements); ValueType new_value = start; for (int i = 0; i < num_elements; ++i) { new_values.push_back(new_value); new_value = new_value + delta; } // Result is always a 1-D tensor. auto new_result_type = tensorflow::GetTypeFromTFTensorShape({num_elements}, result_elem_type); return DenseElementsAttr::get(new_result_type, new_values);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
TypedAttr GetNumElementsOrOne(Type type) { auto shaped_type = mlir::cast<ShapedType>(type); int32_t num_elements = shaped_type.hasStaticShape() ? shaped_type.getNumElements() : 1; OpBuilder builder(type.getContext()); return DenseIntElementsAttr::get( RankedTensorType::get({}, builder.getI32Type()), {llvm::APInt(32, num_elements, true)}); } // Reshapes value to a given shape.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py
@parameterized.named_parameters( ('quantize', True, 0), ('not_quantize', False, 10000), ) @test_util.run_in_graph_and_eager_modes def test_minimum_elements_for_weights(self, quantize, num_elements): self._create_matmul_model( input_shape=(1, 1024), weight_shape=(1024, 3), saved_model_path=self._input_saved_model_path, ) tags = {tag_constants.SERVING}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 235.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/shape_inference.mlir
// CHECK: tf.TensorListStack{{.*}}: (tensor<!tf_type.variant<tensor<2x2xf32>>>, tensor<i32>) -> tensor<?x2x2xf32> %9 = "tf.TensorListStack"(%8, %7) {device = "", num_elements = -1 : i64} : (tensor<*x!tf_type.variant>, tensor<i32>) -> tensor<*xf32> tf_executor.yield } tf_executor.fetch } func.return }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 23 17:24:10 UTC 2024 - 167.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/ops.mlir
} // ----- func.func @testFullyConnectedWithBadInputShape(%arg0: tensor<2x2x11xf32>, %arg1: tensor<40x40xf32>, %arg2: none) -> tensor<40xf32> { // expected-error @+1 {{expect 'input' num_elements % 40 == 0, got input type 'tensor<2x2x11xf32>'}}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 189.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td
In the current implementation, the resulting operations are statically shaped, which means it must be possible to infer a bound on the full shape of the TensorList. That is, the `element_shape` and `num_elements` arguments to a tensor list creation op are constant. A tensor list creation op `tf.EmptyTensorList`/`tf.TensorListReserve` will be turned in to a zero-initialized buffer, and the size is initialized to 0
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 99.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir
} // ----- func.func @testSetStaticDimensionBounds(%arg0: tensor<?x?xi32>, %arg1: tensor<4xi32>) -> tensor<?x?xi32> { // expected-error @below {{'tf.SetStaticDimensionBounds' op static shape must have num_elements == rank of input tensor}} %dyn_arg0 = "tf.SetStaticDimensionBounds" (%arg0, %arg1) :(tensor<?x?xi32>, tensor<4xi32>) -> tensor<?x?xi32> func.return %dyn_arg0 : tensor<?x?xi32> } // -----
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 23 14:40:35 UTC 2023 - 236.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go
if err == nil || !errors.IsAlreadyExists(err) { t.Error("Expected already exists error") } } func TestNewCreateOptionsFromUpdateOptions(t *testing.T) { f := fuzz.New().NilChance(0.0).NumElements(1, 1) // The goal here is to trigger when any changes are made to either // CreateOptions or UpdateOptions types, so we can update the converter. for i := 0; i < 20; i++ { in := &metav1.UpdateOptions{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 101.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/windows/types_windows.go
} type CertTrustListInfo struct { // Not implemented } type CertSimpleChain struct { Size uint32 TrustStatus CertTrustStatus NumElements uint32 Elements **CertChainElement TrustListInfo *CertTrustListInfo HasRevocationFreshnessTime uint32 RevocationFreshnessTime uint32 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 22:18:42 UTC 2024 - 104.1K bytes - Viewed (0)