Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 155 for Dtype (0.14 sec)

  1. tensorflow/compiler/jit/xla_device.cc

    Status DefaultPaddedShapeFn(const Tensor& tensor, xla::Shape* shape) {
      const tensorflow::XlaTensor* xla_tensor =
          tensorflow::XlaTensor::FromTensor(&tensor);
      if (xla_tensor == nullptr) {
        return TensorShapeToXLAShape(tensor.dtype(), tensor.shape(), shape);
      }
    
      const xla::ShapedBuffer& shaped_buffer = xla_tensor->shaped_buffer();
      *shape = shaped_buffer.on_device_shape();
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 21:05:42 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc

        "'h_scale' type: 'float'} attr : { name: 'max_classes_per_detection' "
        "type: 'int'} attr : { name: 'max_detections' type: 'int'} attr : { "
        "name: 'nms_iou_threshold' type: 'float'} attr : { name: "
        "'nms_score_threshold' type: 'float'} attr : { name: 'num_classes' type: "
        "'int'} attr : { name: 'w_scale' type: 'float'} attr : { name: 'x_scale' "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_launch_util_test.cc

      CreateContext();
    
      std::vector<XlaCompiler::Argument> args(2);
      args[0].kind = XlaCompiler::Argument::kParameter;
      args[0].type = DT_INT32;
      args[0].shape = TensorShape({1, 3});
      args[1].kind = XlaCompiler::Argument::kParameter;
      args[1].type = DT_INT32;
      args[1].shape = TensorShape({1, 3});
    
      const XlaCompiler::CompilationResult* result;
      xla::PjRtLoadedExecutable* executable;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/tf_xla_mlir_translate.cc

             << compilation_result.xla_output_shape.ToString() << '\n';
    
      for (const auto& xla_output_description : compilation_result.outputs) {
        output << "// XlaOutputDescription type="
               << DataTypeString(xla_output_description.type) << " shape=("
               << absl::StrJoin(xla_output_description.shape.dim_sizes(), ", ")
               << ')';
        if (xla_output_description.input_index >= 0)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/mlir_graph_optimization_pass_test.cc

          // Args
          {"x: T"},
          // Return values
          {"y: T"},
          // Attr def
          {"T: {float, double, int32, int64}"},
          // Nodes
          {
              {{"two"}, "Const", {}, {{"value", kTwo}, {"dtype", DT_INT64}}},
              {{"scale"}, "Cast", {"two"}, {{"SrcT", DT_INT64}, {"DstT", "$T"}}},
              {{"y"}, "Mul", {"x", "scale"}, {{"T", "$T"}}},
          });
    }
    
    class MlirGraphOptimizationPassTest : public Test {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 08:25:30 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/shape_inference_test.cc

      };
      TF_EXPECT_OK(ShapeAnnotationsMatch(graph, shape_info, expected));
    }
    
    TEST(ShapeInferenceTest, WhileLoopWithResource) {
      // Graph:
      // x = resource_variable_ops.var_handle_op(dtype=dtypes.float32, shape=[2, 3])
      // y = control_flow_ops.while_loop(lambda _: true, lambda x: x, [x])
      Graph graph(OpRegistry::Global());
      {
        Scope scope = Scope::NewRootScope().ExitOnError();
    
        auto x =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/schema/schema.fbs

      // When set, quantized_bias_type defines the dtype for both bias and accumulator.
      quantized_bias_type: TensorType;
    }
    
    table ExpandDimsOptions {
    }
    
    table SparseToDenseOptions {
      validate_indices:bool;
    }
    
    table EqualOptions {
    }
    
    table NotEqualOptions {
    }
    
    table ShapeOptions {
      // Optional output type of the operation (int32 or int64). Defaults to int32.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/saved_model/core/tf_saved_model_api.cc

                             kSavedModelVariablesFilename);
            ImmediateTensorHandlePtr restored_output;
            TF_RETURN_IF_ERROR(internal::SingleRestore(
                context, variables_path_prefix, checkpoint_key, variable->dtype(),
                &restored_output));
    
            // Assign the restored tensor's value to the variable
            return variable->Assign(restored_output.get());
          }));
    
      return Status();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 09:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/encapsulate_util.cc

        auto iter = placeholders.find(placeholder_index);
        Node* placeholder_node;
        if (iter == placeholders.end()) {
          NodeDefBuilder placeholder_builder(new_name, "Placeholder");
          placeholder_builder.Attr("dtype", src->output_type(src_output));
          string outside_compilation_attr;
          TF_RETURN_IF_ERROR(GetNodeAttr(dst->attrs(),
                                         outside_compilation_attr_name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/tpu-dynamic-layout-pass.mlir

    }
    
    // -----
    
    // Tests that the pass can transform execution with model parallelism and no
    // replication.
    //
    // The following TPUCompileMetadataProto is used:
    // args {
    //   dtype: DT_FLOAT
    //   shape {
    //     dim {
    //       size: 128
    //     }
    //   }
    // }
    // num_replicas: 1
    // num_cores_per_replica: 2
    
    // CHECK-LABEL: func @parallel_execute
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 29.6K bytes
    - Viewed (0)
Back to top