- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 357 for TensorT (0.11 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset_test.py
def _contains_tensor(sample: repr_dataset.RepresentativeSample) -> bool: """Determines whether `sample` contains any tf.Tensors. Args: sample: A `RepresentativeSample`. Returns: True iff `sample` contains at least tf.Tensors. """ return any(map(lambda value: isinstance(value, core.Tensor), sample.values())) class RepresentativeDatasetTest(test.TestCase): """Tests functions for representative datasets."""
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 04 07:35:19 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_launch_util.h
class XlaComputationLaunchContext { public: // Create a new launch context. 'allocate_xla_tensors' is true if allocated // output tensors and variables are always XlaTensors. If false they are // assumed to be "normal" device pointers. // If 'use_multiple_streams' is true, tensors may be defined and used on // multiple streams and so se::Events must be defined and waited for. If
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 09:53:30 UTC 2024 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model_optimize_global_tensors_interprocedural.mlir
func.return %val : tensor<f32> } // CHECK: func private @f_callee_callee(%arg0: tensor<*x!tf_type.resource>) -> tensor<f32> func.func private @f_callee_callee(%arg0: tensor<*x!tf_type.resource>) -> tensor<f32> { %c0 = "tf.Const"() { value = dense<1.0> : tensor<f32> } : () -> tensor<f32> "tf.AssignVariableOp"(%arg0, %c0) : (tensor<*x!tf_type.resource>, tensor<f32>) -> ()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 31 08:49:35 UTC 2023 - 10.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td
// just returns the element type of its first tensor, which is only meaningful // when the variadic operand has at least one tensor and the tensors all have // the same element type. class TF_DerivedOperandTypeAttr<int idx> : DerivedTypeAttr< "return mlir::getElementTypeOrSelf(*getODSOperands(" # idx # ").begin());">; // A derived attribute that returns the element types of the tensors in the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 30.5K bytes - Viewed (0) -
tensorflow/c/eager/immediate_execution_context.h
// Note: Keep in sync with exported copy of enum in eager/c_api.h. enum ContextDevicePlacementPolicy { // Running operations with input tensors on the wrong device will fail. DEVICE_PLACEMENT_EXPLICIT = 0, // Copy the tensor to the right device but log a warning. DEVICE_PLACEMENT_WARN = 1, // Silently copy the tensor, which has a performance cost since the operation // will be blocked till the copy completes. This is the default policy.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 06 08:34:00 UTC 2023 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h
const std::vector<int>& tensors = lstm_property.restrict_scale[0]; if (tensors.size() != 2) { op.emitError( "Unexpected restricted_scale from operator property." " Should only have a pair of indices."); return failure(); } return processRestrictScale(op, tensors[0], tensors[1], rewriter); } private:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 18:01:23 UTC 2024 - 28K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset.py
sess: Session instance used to evaluate tf.Tensors. Returns: The new representative dataset where each tf.Tensor is replaced by its evaluated numpy ndarrays. """ new_repr_ds = [] for sample in repr_ds: new_sample = {} for input_key, input_data in sample.items(): # Evaluate the Tensor to get the actual value. if isinstance(input_data, core.Tensor):
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 22:55:22 UTC 2024 - 14.2K bytes - Viewed (0) -
tensorflow/c/c_api_experimental.h
// drop below the capacity due to dequeuing. // // Tensors are dequeued via the corresponding TF dequeue op. // TODO(hongm): Add support for `timeout_ms`. TF_CAPI_EXPORT extern void TF_EnqueueNamedTensor(TF_Session* session, int tensor_id, TF_Tensor* tensor,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 27 21:07:00 UTC 2023 - 15.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.py
) from ex def _convert_values_to_tf_tensors( sample: rd.RepresentativeSample, ) -> Mapping[str, core.Tensor]: """Converts TensorLike values of `sample` to Tensors. Creates a copy of `sample`, where each value is converted to Tensors unless it is already a Tensor. The values are not converted in-place (i.e. `sample` is not mutated). Args:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 05:32:11 UTC 2024 - 27.4K bytes - Viewed (0) -
tensorflow/c/ops.h
// Sets the allows_uninitialized_input property of the operation built by this // builder. // // By default, all inputs to an Op must be initialized Tensors. Ops that may // initialize tensors for the first time should set this field to true, to allow // the Op to take an uninitialized Tensor as input. TF_CAPI_EXPORT extern void TF_OpDefinitionBuilderSetAllowsUninitializedInput( TF_OpDefinitionBuilder* builder, bool allows_uninitialized_input);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 27 21:07:00 UTC 2023 - 16.3K bytes - Viewed (0)