Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for tensorproto (0.64 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      return llvm::StringRef(*saved_strings_.insert(s).first);
    }
    
    // Extracts a TensorProto for a Const op from a GraphDef, given an op_name.
    // Returns nullptr on not found or other mismatch.
    // This returns a pointer to the actual node within the graph_def so as to
    // avoid expensive copies.
    const TensorProto* ExtractConstTensorFromGraph(const GraphDef& graph_def,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc

                         const GraphDefBuilder::Options& opts) {
      if (opts.HaveError()) return nullptr;
      NodeBuilder node_builder(opts.GetNameForOp("Const"), "Const",
                               opts.op_registry());
      TensorProto value;
      value.set_dtype(dtype);
      for (int dim : shape) {
        value.mutable_tensor_shape()->add_dim()->set_size(dim);
      }
      return opts.WithAttr("value", value)
          .WithAttr("dtype", dtype)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 113.3K bytes
    - Viewed (0)
  3. tensorflow/c/c_api.cc

          ->set_disable_optimize_for_static_graph(true);
    }
    
    void TF_TensorFromProto(const TF_Buffer* from, TF_Tensor* to,
                            TF_Status* status) {
      TF_SetStatus(status, TF_OK, "");
      tensorflow::TensorProto from_tensor_proto;
      status->status = BufferToMessage(from, &from_tensor_proto);
      if (!status->status.ok()) {
        return;
      }
      status->status =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

    // CHECK: "tf.TensorProtoFloatTensor"() {bar = #tf_type<tensor_proto : "0x68656C6C6F"> : tensor<2x1x4xf32>} : () -> ()
      "tf.TensorProtoFloatTensor"(){bar = #tf_type<tensor_proto : "0x68656C6C6F"> : tensor<2x1x4xf32>} : () -> ()
    // CHECK: "tf.TensorProtoStringTensor"() {bar = #tf_type<tensor_proto : "0x68656C6C6F"> : tensor<2x1x4x!tf_type.string>} : () -> ()
      "tf.TensorProtoStringTensor"(){bar = #tf_type<tensor_proto : "0x68656C6C6F"> : tensor<2x1x4x!tf_type.string>} : () -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

        return output_values
    
      def _read_tensor_array_file(self, file_path):
        tensor_protos = []
        for raw_record in tf_record.tf_record_iterator(file_path, options='ZLIB'):
          tensor_protos.append(
              tensorflow.make_ndarray(tensor_pb2.TensorProto.FromString(raw_record))
          )
        return np.array(tensor_protos)
    
      @parameterized.named_parameters(
          {
              'testcase_name': 'none',
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

    }
    
    func.func @const() -> tensor<2xi32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 05 01:54:33 UTC 2024
    - 153.4K bytes
    - Viewed (0)
Back to top