Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 172 for Ntype (0.04 sec)

  1. tensorflow/c/checkpoint_reader.cc

      Status status;
      if (reader_ != nullptr) {
        status = reader_->GetTensor(name, out_tensor);
      } else {
        tensorflow::DataType dtype;
        tensorflow::TensorShape shape;
        status = v2_reader_->LookupDtypeAndShape(name, &dtype, &shape);
        if (status.ok()) {
          out_tensor->reset(new Tensor(dtype, shape));
          status = v2_reader_->Lookup(name, out_tensor->get());
          if (!status.ok()) out_tensor->reset();
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 21:29:12 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/tests/device_compiler_test_helper.cc

      *graph.add_node() = MakeNode("a", "Placeholder", {},
                                   {{"dtype", DT_FLOAT}, {"shape", input_shape}});
      *graph.add_node() = MakeNode("b", "Placeholder", {},
                                   {{"dtype", DT_FLOAT}, {"shape", input_shape}});
      *graph.add_node() = MakeNode("c", "Placeholder", {},
                                   {{"dtype", DT_FLOAT}, {"shape", input_shape}});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 08:24:16 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/ops/gen/cpp/golden/testing_ops.cc.golden

      TF_RETURN_IF_ERROR(op_ptr->SetAttrString("shared_name", shared_name, strlen(shared_name)));
      TF_RETURN_IF_ERROR(op_ptr->SetAttrString("debug_name", debug_name, strlen(debug_name)));
      TF_RETURN_IF_ERROR(op_ptr->SetAttrType("dtype", dtype));
      TF_RETURN_IF_ERROR(op_ptr->SetAttrShape("shape", shape));
      TF_RETURN_IF_ERROR(op_ptr->SetAttrStringList("allowed_devices", allowed_devices));
      int num_retvals = 1;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 16 19:04:03 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/legalize_tfg.mlir

        %VarHandleOp, %ctl = VarHandleOp device("/CPU:0") name("x") {_output_shapes = [#tf_type.shape<>], allowed_devices = [], container = "a", dtype = i64, shape = #tf_type.shape<>, shared_name = "x"} : () -> (tensor<!tf_type.resource<tensor<i64>>>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/folders.cc

      return success();
    }
    
    static LogicalResult FoldDivOp(stablehlo::DivOp op, PatternRewriter& rewriter) {
      auto etype = op.getType().getElementType();
      if (etype.isa<FloatType>()) {
        return FoldDivOpInternal<APFloat>(op, rewriter);
      }
      if (etype.isa<IntegerType>()) {
        return FoldDivOpInternal<APInt>(op, rewriter);
      }
      return failure();
    }
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 06:11:55 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/convert_type_test.cc

                                    bool unknown_rank, DataType dtype) {
      TensorShapeProto shape;
      shape.set_unknown_rank(unknown_rank);
      for (int64_t dim : dims) {
        shape.add_dim()->set_size(dim);
      }
      mlir::MLIRContext context;
      mlir::Builder b(&context);
      auto status_or = ConvertToMlirTensorType(shape, dtype, &b);
      std::string buf;
      llvm::raw_string_ostream os(buf);
      status_or.value().print(os);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_config.cc

    #include "llvm/Support/Debug.h"
    #include "llvm/Support/raw_ostream.h"
    #include "tensorflow/core/framework/types.pb.h"
    
    // Returns whether the given dtype is a quantization type in TensorFlow.
    static bool IsQuantizationType(tensorflow::DataType dtype) {
      switch (dtype) {
        case tensorflow::DT_QINT8:
        case tensorflow::DT_QUINT8:
        case tensorflow::DT_QINT16:
        case tensorflow::DT_QUINT16:
        case tensorflow::DT_QINT32:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/utils/test_metadata_config.cc

            xla_shape.dimensions(), &tensor_shape));
        arg_shapes.emplace_back(tensor_shape);
    
        DataType dtype;
        TF_RETURN_IF_ERROR(ConvertToDataType(input_type, &dtype));
    
        auto metadata_arg = metadata_proto.add_args();
        metadata_arg->set_kind(tpu::TPUCompileMetadataProto::Arg::PARAMETER);
        metadata_arg->set_dtype(dtype);
      }
    
      return absl::OkStatus();
    }
    
    absl::Status SetupReturnValues(mlir::ModuleOp module,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. tensorflow/cc/experimental/libtf/impl/iostream_test.cc

    }
    
    TEST(OStreamTest, TestTensorSpec) {
      std::stringstream stream;
      TensorSpec tensor_spec;
      tensor_spec.shape = tensorflow::PartialTensorShape({2});
      tensor_spec.dtype = tensorflow::DT_FLOAT;
      stream << tensor_spec;
      ASSERT_EQ(stream.str(), "TensorSpec(shape = [2], dtype = 1)");
    }
    
    }  // namespace impl
    }  // namespace libtf
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 09:47:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. src/internal/types/testdata/check/importC.go

    const _ C.int = 0xff // no error due to invalid constant type
    
    type T struct {
    	Name    string
    	Ordinal int
    }
    
    func _(args []T) {
    	var s string
    	for i, v := range args {
    		cname := C.CString(v.Name)
    		args[i].Ordinal = int(C.sqlite3_bind_parameter_index(s, cname)) // no error due to i not being "used"
    		C.free(unsafe.Pointer(cname))
    	}
    }
    
    type CType C.Type
    
    const _ CType = C.X // no error due to invalid constant type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top