Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for tensor_shape (0.24 sec)

  1. tensorflow/c/c_api_function_test.cc

      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> s(TF_NewStatus(),
                                                               TF_DeleteStatus);
    
      TF_Tensor* tensor_shape = Int32Tensor({37, 1});
      TF_Operation* shape = Const(tensor_shape, func_graph.get(), s.get(), "shape");
      TF_Operation* random =
          RandomUniform(shape, TF_FLOAT, func_graph.get(), s.get());
    
      TF_Output outputs[] = {{random, 0}};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

    #include "tensorflow/compiler/mlir/tensorflow/utils/convert_type.h"
    #include "tensorflow/compiler/mlir/tensorflow/utils/mangling_util.h"
    #include "tensorflow/core/framework/tensor_shape.pb.h"
    
    namespace mlir {
    
    namespace {
    
    constexpr char kDeviceAttr[] = "device";
    
    #define GEN_PASS_DEF_RESOURCEOPLIFTINGPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_device_passes.h.inc"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

    #include "tensorflow/compiler/mlir/tensorflow/utils/dynamic_shape_utils.h"
    #include "tensorflow/compiler/mlir/tensorflow/utils/mangling_util.h"
    #include "tensorflow/core/framework/tensor.pb.h"
    #include "tensorflow/core/framework/tensor_shape.pb.h"
    #include "tensorflow/core/platform/errors.h"
    #include "tensorflow/core/platform/status.h"
    #include "tensorflow/lite/experimental/remat/metadata_util.h"
    #include "tensorflow/lite/graph_info.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_test.cc

    #include "tensorflow/core/framework/partial_tensor_shape.h"
    #include "tensorflow/core/framework/tensor.h"
    #include "tensorflow/core/framework/tensor.pb.h"
    #include "tensorflow/core/framework/tensor_shape.pb.h"
    #include "tensorflow/core/framework/types.pb.h"
    #include "tensorflow/core/graph/tensor_id.h"
    #include "tensorflow/core/lib/core/status_test_util.h"
    #include "tensorflow/core/lib/io/path.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/mark_for_compilation_pass.cc

        return false;
      }
    
      const TensorProto* proto = nullptr;
      if (!TryGetNodeAttr(const_input->def(), "value", &proto)) {
        return false;
      }
    
      return TensorShapeUtils::IsScalar(proto->tensor_shape());
    }
    
    Status MarkForCompilationPassImpl::RunEdgeContractionLoop() {
      TF_RET_CHECK(initialized_ && !edges_contracted_ && !clusters_created_);
      edges_contracted_ = true;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/mark_for_compilation_pass_test.cc

      Output iter =
          ops::VarHandleOp(scope.WithOpName("iter"), DT_INT64, TensorShape({}));
      Output weights_0 = ops::VarHandleOp(scope.WithOpName("weights_0"), DT_FLOAT,
                                          TensorShape({1000}));
      Output weights_1 = ops::VarHandleOp(scope.WithOpName("weights_1"), DT_FLOAT,
                                          TensorShape({1000}));
    
      // We update the weights by adding delta to them (to "simulate" a
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 10:11:10 UTC 2024
    - 79.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/deadness_analysis_test.cc

    }
    
    TEST(DeadnessAnalysisTest, RefBoolSwitchCondition) {
      Scope root = Scope::NewRootScope().ExitOnError();
    
      Output condition_ref_var =
          ops::Variable(root.WithOpName("cond_ref"), TensorShape({}), DT_BOOL);
      Output value = ops::Placeholder(root.WithOpName("value"), DT_FLOAT);
      ops::Switch sw(root.WithOpName("switch"), value, condition_ref_var);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        // creating the tf.Pack op. tf.Pack op requires at least one operand.
        if (tensors.empty()) {
          tensorflow::Tensor tensor(list->element_dtype,
                                    tensorflow::TensorShape(result_shape));
          auto attr_or = tensorflow::ConvertTensor(tensor, &rewriter);
          if (!attr_or.ok()) return failure();
          rewriter.replaceOpWithNewOp<TF::ConstOp>(op, attr_or.value());
          return success();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
Back to top