- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for input_shapes_ (0.18 sec)
-
tensorflow/c/c_api_experimental_test.cc
// Create input_shapes. TF_ShapeAndTypeList* input_shapes = TF_NewShapeAndTypeList(input_shapes_vec.size()); for (size_t i = 0; i < input_shapes_vec.size(); ++i) { const auto& input_shape = input_shapes_vec[i]; if (input_shape.has_value()) { TF_ShapeAndTypeListSetShape(input_shapes, i, input_shape->data(), input_shape->size());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 17 22:27:52 UTC 2023 - 13.1K bytes - Viewed (0) -
tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.cc
Output input_shape_i = ops::Slice( host_scope.WithOpName("input_shape_", i), input_shape, constant_pool.Get1DHostConstant(i), constant_pool.Get1DHostConstant(1)); slice_size.push_back(ops::Sub(host_scope.WithOpName("slice_size_", i), input_shape_i, begin_i)); DCHECK_EQ(slice_size.back().type(), DT_INT64); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 13.8K bytes - Viewed (0) -
tensorflow/c/c_api_experimental.cc
// Set input_shapes. for (int i = 0; i < num_inputs; ++i) { std::vector<DimensionHandle> dims; const TF_ShapeAndType& input_shape = input_shapes->items[i]; if (input_shape.num_dims == InferenceContext::kUnknownRank) { c.SetInput(i, c.UnknownShape()); continue; } dims.reserve(input_shape.num_dims); for (int j = 0; j < input_shape.num_dims; ++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/compiler/mlir/tensorflow/translate/tf_mlir_translate.cc
const std::vector<std::optional<std::vector<int>>>& input_shapes, const std::vector<std::string>& output_arrays, const std::vector<std::string>& control_output_arrays, const GraphdefToMlirOptions& import_options, mlir::MLIRContext* context) { auto module_or = GraphdefToMlirImport( input, input_arrays, input_dtypes, input_shapes, output_arrays, control_output_arrays, import_options, context);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 11:51:44 UTC 2024 - 14.1K bytes - Viewed (0) -
tensorflow/cc/gradients/linalg_grad.cc
for (const int i : reduced_axes) { if (i < 0) { reduced_dims_inputs.push_back( Gather(scope, input_shape, Add(scope, Size(scope, input_shape), i))); } else { reduced_dims_inputs.push_back(Gather(scope, input_shape, i)); } } const Output reduced_dims = Stack(scope, reduced_dims_inputs); Tensor reduced_axes_tensor(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 07 23:11:54 UTC 2022 - 20.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc
void HandleConv2DInput(TF::Conv2DOp conv2d, int64_t block_size) { auto input = conv2d.getInput(); auto input_shape = mlir::cast<RankedTensorType>(input.getType()).getShape(); SmallVector<int64_t, 4> transform_shape = { input_shape[0], input_shape[1] / block_size, input_shape[2] / block_size, input_shape[3] * block_size * block_size}; auto transform_result_type =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 29.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/sink_in_invariant_ops.mlir
// CHECK-LABEL: func private @batched_function // CHECK: arg1 func.func private @batched_function(%arg0: tensor<1x3xf32>, %arg1: tensor<*x!tf_type.resource>) -> tensor<1x3xf32> attributes {tf._input_shapes = [#tf_type.shape<1x3>, #tf_type.shape<*>], tf.signature.is_stateful} { // CHECK: [[handle:%.*]] = "tf.VarHandleOp"() // CHECK: "tf.ReadVariableOp"([[handle]])
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 21K bytes - Viewed (0) -
tensorflow/cc/gradients/array_grad_test.cc
TensorShape updates_shape({4}); TensorShape input_shape({8}); auto input = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(input_shape)); auto updates = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(updates_shape)); auto indices = Const(scope_, {{4}, {3}, {1}, {7}}); auto y = ScatterNdNonAliasingAdd(scope_, input, indices, updates); RunTest({input, updates}, {input_shape, updates_shape}, {y}, {input_shape}); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 10 23:33:32 UTC 2023 - 19.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.cc
Value &padding, int num_dims) { ShapedType input_shape = mlir::cast<ShapedType>(input.getType()); SmallVector<int64_t> spatial_dims(num_dims - 2); absl::c_iota(spatial_dims, 1); bool has_dynamic_spatial_dim = absl::c_any_of( spatial_dims, [&input_shape](int64_t dim) { return input_shape.isDynamicDim(dim); }); if (conv_padding.strref() == "SAME" && has_dynamic_spatial_dim) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc
StringAttr conv_padding, ArrayAttr explicit_paddings) { auto input_shape = mlir::cast<ShapedType>(input.getType()); auto filter_shape = mlir::cast<ShapedType>(filter.getType()); if (!input_shape.hasRank() || input_shape.getRank() != 4 || !filter_shape.hasRank() || filter_shape.getRank() != 4) { emitError(loc, "input and filter are expected to be 4D tensors");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 47.1K bytes - Viewed (0)