Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 45 for in_shape (0.14 sec)

  1. tensorflow/c/experimental/saved_model/internal/tensor_spec.cc

    #include "tensorflow/c/tf_shape_internal.h"
    
    extern "C" {
    
    TF_DataType TF_TensorSpecDataType(const TF_TensorSpec* spec) {
      return static_cast<TF_DataType>(tensorflow::unwrap(spec)->dtype());
    }
    
    const TF_Shape* TF_TensorSpecShape(const TF_TensorSpec* spec) {
      return tensorflow::wrap(&tensorflow::unwrap(spec)->shape());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 30 17:58:21 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_unified_experimental.h

    // Represents a (partially-defined) shape.
    typedef struct TF_Shape {
      int num_dims;  // Must be >= -1; -1 represents unknown rank.
      int64_t* dim_sizes;
    } TF_Shape;
    
    // Add a new parameter to a TensorFlow Function.
    TF_AbstractTensor* TF_AddFunctionParameter(TF_ExecutionContext* func,
                                               TF_DataType dtype, TF_Shape shape,
                                               TF_Status* s);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Oct 24 11:27:00 UTC 2021
    - 7K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc

    #include "tensorflow/c/experimental/saved_model/public/signature_def_param_list.h"
    #include "tensorflow/c/experimental/saved_model/public/tensor_spec.h"
    #include "tensorflow/c/tf_datatype.h"
    #include "tensorflow/c/tf_shape.h"
    #include "tensorflow/c/tf_status.h"
    #include "tensorflow/c/tf_tensor.h"
    #include "tensorflow/core/lib/io/path.h"
    #include "tensorflow/core/platform/status.h"
    #include "tensorflow/core/platform/stringpiece.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 08:08:45 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

      // TFR_ConstantTensorOp (
      //   ConstantOp (ConstAttr<F32Attr (in_scale[0] * in_scale[1] /
      //   out_scale))
      // )
      // Currently, all decompositions using this pattern (Conv2D, FC) have the
      // following preconditions:
      // * out_scale: float scalar attribute
      // * in_scale[0] (input scale): float scalar, given by tf.Const -> tfr.cast
      // * in_scale[1] (filter scale): float scalar/vector
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_tpu_device.cc

      TF_RETURN_IF_ERROR(
          tensorflow::TensorShapeToXLAShape(type, shape, &xla_shape));
      ApiConverter::StackHelper<XLA_Shape> se_shape(xla_shape);
      ApiConverter::StackHelper<XLA_Shape> tpu_shape;
      StatusHelper status;
      stream_executor::tpu::ExecutorApiFn()->XlaShapeToTpuShapeRepresentationFn(
          &se_shape.value, type, use_fast_memory, &tpu_shape.value,
          status.c_status);
      if (!status.status().ok()) {
        return status.status();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/aot/test_graph_tfadd.pbtxt

        }
      }
      attr {
        key: "dtype"
        value {
          type: DT_INT32
        }
      }
    }
    node {
      name  : "y_reshape"
      op    : "Reshape"
      input : "y_const"
      input : "y_shape"
      attr { key: "T" value { type: DT_INT32 } }
      # Attribute TShape not specified; needs to be set to its default
      # by tfcompile.
    }
    node {
      name  : "x_y_sum"
      op    : "Add"
      input : "x_const"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 07 01:22:33 UTC 2017
    - 894 bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/tests/quantize_composite_functions.mlir

    // CHECK-DAG: {{\[\[\[}}-87, -42]
    
    // CHECK: %[[quantize:.*]] = "tf.PartitionedCall"(%arg0, %[[in_scale]], %[[in_zp]])
    // CHECK-SAME: f = @quantize_i8
    // CHECK: %[[conv_quant:.*]] = "tf.PartitionedCall"(%[[quantize]], %[[w_quant]], %[[b_quant]],
    // CHECK-SAME: %[[in_scale]], %[[in_zp]], %[[w_scale]], %[[w_zp]],
    // CHECK-SAME: %[[b_scale]], %[[w_zp]], %[[out_scale]], %[[out_zp]])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Nov 06 01:23:21 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  8. tensorflow/c/BUILD

            "@local_xla//xla/tsl/c:tsl_status_internal_headers",
        ],
        visibility = [
            "//tensorflow/python:__subpackages__",
        ],
    )
    
    cc_library(
        name = "tf_shape",
        srcs = ["tf_shape.cc"],
        hdrs = ["tf_shape.h"],
        copts = tf_copts(),
        visibility = ["//visibility:public"],
        deps = [
            ":c_api_macros",
            ":tf_shape_internal",
            "//tensorflow/core:framework",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 27 18:00:18 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. tensorflow/cc/framework/gradient_checker.h

    template <typename X_T, typename Y_T, typename JAC_T>
    Status ComputeGradientError(const Scope& scope, const Output& x,
                                const Tensor& x_init_value, const Output& y,
                                const TensorShape& y_shape, JAC_T* max_error);
    
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 15:35:17 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  10. tensorflow/cc/gradients/math_grad.cc

      auto x_shape = Shape(scope, x);
      auto output_shape = Shape(scope, op.output(0));
    
      // Reduce away broadcasted leading dims.
      auto reduce_x = internal::BroadcastGradientArgs(scope, x_shape, output_shape);
      auto gx_sum =
          ReduceSum(scope, gx, /*axis=*/reduce_x.r0, ReduceSum::KeepDims(true));
      auto gx_sum_reshape = Reshape(scope, gx_sum, x_shape);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 50.7K bytes
    - Viewed (0)
Back to top