Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 51 for s1_shape (0.22 sec)

  1. tensorflow/cc/gradients/image_grad.cc

      // The internal gradient implementation needs the shape of the input image.
      // x_shape = shape(x)[1:3]
      //         = slice(shape(x), {1}, {3 - 1})
      auto x_shape = Slice(scope, Shape(scope, op.input(0)), {1}, {2});
      grad_outputs->push_back(internal::ResizeNearestNeighborGrad(
          scope, grad_inputs[0], x_shape,
          internal::ResizeNearestNeighborGrad::AlignCorners(align_corners)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 11 00:29:23 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/public/tensor_spec.h

    #define TENSORFLOW_C_EXPERIMENTAL_SAVED_MODEL_PUBLIC_TENSOR_SPEC_H_
    
    #include <stddef.h>
    
    #include "tensorflow/c/c_api_macros.h"
    #include "tensorflow/c/tf_datatype.h"
    #include "tensorflow/c/tf_shape.h"
    
    #ifdef __cplusplus
    extern "C" {
    #endif  // __cplusplus
    
    // An opaque type corresponding to TensorSpec
    typedef struct TF_TensorSpec TF_TensorSpec;
    
    // Returns the dtype associated with the TensorSpec.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 30 17:58:21 UTC 2020
    - 1.6K bytes
    - Viewed (0)
  3. tensorflow/cc/gradients/manip_grad_test.cc

      ManipGradTest() : scope_(Scope::NewRootScope()) {}
    
      void RunTest(const Output& x, const TensorShape& x_shape, const Output& y,
                   const TensorShape& y_shape) {
        TF_ASSERT_OK(scope_.status());
        float max_error;
        TF_ASSERT_OK((ComputeGradientError<float, float, float>(
            scope_, {x}, {x_shape}, {y}, {y_shape}, &max_error)));
        EXPECT_LT(max_error, 1e-4);
      }
    
      Scope scope_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 19 12:19:42 UTC 2020
    - 1.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. tensorflow/cc/gradients/functional_grad_test.cc

      FunctionGradTest() : scope_(Scope::NewRootScope()) {}
    
      void RunTest(const Output& x, const TensorShape& x_shape, const Output& y,
                   const TensorShape& y_shape) {
        TF_ASSERT_OK(scope_.status());
        float max_error;
        auto result = (ComputeGradientError<float, float, float>(
            scope_, {x}, {x_shape}, {y}, {y_shape}, &max_error));
        TF_CHECK_OK(result);
        TF_ASSERT_OK(result);
        EXPECT_LT(max_error, 1e-3);
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 26 14:42:24 UTC 2021
    - 3K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top