Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for input_shapes_ (0.2 sec)

  1. tensorflow/cc/gradients/array_grad.cc

      Shape::Attrs shape_attrs;
      shape_attrs.out_type_ = op.input_type(1);
      auto input_shape = Shape(scope, op.input(0), shape_attrs);
      // We interleave multiples and input_shape to get split_shape,
      // reshape grad to split_shape, and reduce along all even
      // dimensions (the tiled dimensions) to get the result
      // with shape input_shape.  For example
      //   input_shape = [20, 30, 40]
      //   multiples = [2, 3, 4]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 31.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/tf_xla_mlir_translate.cc

                     arg_kinds_vector)) {
        XlaArgument& arg = std::get<0>(arg_components);
        TensorShape shape;
        auto input_shapes = std::get<1>(arg_components);
        if (input_shapes.has_value()) {
          TF_RETURN_IF_ERROR(TensorShapeUtils::MakeShape(*input_shapes, &shape));
        } else {
          TF_RETURN_IF_ERROR(
              TensorShapeUtils::MakeShape(static_cast<int*>(nullptr), 0, &shape));
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/freeze_variables.mlir

        func.return %val : tensor<0xf32>
      }
    
      // expected-error@+1 {{Number of arguments and 'tf._input_shapes' attribute size do not match. Num args: 2, tf._input_shapes size: 3}}
      func.func private @f_callee(%arg0: tensor<0xf32>, %arg1: tensor<*x!tf_type.resource>) -> tensor<0xf32> attributes {tf._input_shapes = [#tf_type.shape<0>, #tf_type.shape<>, #tf_type.shape<9x9x9>]} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/utils.h

      if (input_shape.size() != perm_values.size()) {
        return false;
      }
    
      SmallVector<int, 8> old_major_index_ordering;
      SmallVector<int, 8> new_major_index_ordering;
      for (int i = 0, end = input_shape.size(); i < end; i++) {
        if (input_shape[i] != 1) {
          old_major_index_ordering.push_back(i);
        }
    
        if (input_shape[perm_values[i]] != 1) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

            signatures=model.matmul_and_same_scale.get_concrete_function(
                tensor_spec.TensorSpec(
                    shape=input_shape, dtype=dtypes.float32, name='input_tensor'
                )
            ),
        )
        return model
    
      def _create_conv2d_model(
          self,
          input_shape: Sequence[int],
          filter_shape: Sequence[int],
          saved_model_path: str,
          bias_fn: Optional[ops.Operation] = None,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  6. tensorflow/c/c_api_experimental.h

    //     if you want shape inference to consider the input tensors of the
    //     op for shape inference.
    //   - The types need not be set in `input_shapes` as it is not used.
    //   - The number of `input_tensors` should be the same as the number of items
    //     in `input_shapes`.
    //
    // The results are returned in `output_shapes` and
    // `output_resource_shapes_and_types`. The caller is responsible for freeing the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.cc

            file->getBuffer(), input_arrays, input_dtypes, input_shapes,
            output_arrays, control_output_arrays, graphdef_conversion_options,
            context);
      }
      return GraphdefToMlirTranslateFunction(file->getBuffer(), input_arrays,
                                             input_dtypes, input_shapes,
                                             output_arrays, control_output_arrays,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc

      int feature_group_cnt = 1;
      ShapedType input_shape =
          mlir::dyn_cast<ShapedType>(op->getOperand(0).getType());
      if (!input_shape) {
        return op->emitError(
            "Only input with known shape is supported for Uniform Quantized "
            "opset.");
      }
    
      if (op->getParentOfType<func::FuncOp>().getName().contains("depthwise_")) {
        feature_group_cnt = input_shape.getDimSize(3);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

      if (input_shapes_attr.size() != func_op.getNumArguments()) {
        return func_op->emitError(
                   "Number of arguments and 'tf._input_shapes' "
                   "attribute size do not match. ")
               << "Num args: " << func_op.getNumArguments()
               << ", tf._input_shapes size: " << input_shapes_attr.size();
      }
    
      return success();
    }
    
    // Validates ModuleOp. Returns `failure` if the module op is invalid.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantized_function_library_uniform_quantized.mlir

        %i32_min_filled = "tf.Fill" (%input_shape, %i32_min) : (tensor<*xi32>, tensor<i32>) -> tensor<*xi32>
        %i32_max_filled = "tf.Fill" (%input_shape, %i32_max) : (tensor<*xi32>, tensor<i32>) -> tensor<*xi32>
        %i32_act_max_f32_filled = "tf.Fill" (%input_shape, %i32_act_max_f32) : (tensor<*xi32>, tensor<i32>) -> tensor<*xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 29 01:13:58 UTC 2023
    - 19.3K bytes
    - Viewed (0)
Back to top