- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 44 for Numpy (0.31 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/calibrator/BUILD
srcs = ["calibration_algorithm.py"], deps = [ ":calibration_statistics_proto_py", "//tensorflow/compiler/mlir/quantization/stablehlo:quantization_config_proto_py", "//third_party/py/numpy", ], ) pytype_strict_contrib_test( name = "calibration_algorithm_test", srcs = ["calibration_algorithm_test.py"], deps = [ ":calibration_algorithm",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 13 01:31:23 UTC 2024 - 8.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/scatter.h
return success(); } // Insert tranposes to support scatter operations generated from // numpy-like slice operations: // nd_array[:, [i,j]] = [i_values, j_values] // if (scatter_dims_to_operand_dims != inserted_window_dims) { // Support only dimension numbers generated by numpy-like slice // operations. return rewriter.notifyMatchFailure(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/examples/customization/test_ops_test.py
from tensorflow.python.platform import test class TestOpsDefsTest(test_utils.OpsDefsTest): def test_test_ops(self): attr = tf.function(test_ops.test_attr)(tf.float32) self.assertAllClose(attr.numpy(), 100.0) if __name__ == '__main__': os.environ['TF_MLIR_TFR_LIB_DIR'] = ( 'tensorflow/compiler/mlir/tfr/examples/customization')
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 17 22:41:04 UTC 2023 - 1.2K bytes - Viewed (0) -
tensorflow/c/eager/immediate_execution_tensor_handle.cc
} std::string value_string; if (!SummarizeValue(value_string).ok()) { value_string = "<error computing value>"; } if (value_string.length() > 100) { // The default NumPy-style output can be distractingly long in error // messages. value_string = absl::StrCat(value_string.substr(0, 100), " [...]"); } Status s; const char* device_name = DeviceName(&s); if (!s.ok()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 15 09:49:45 UTC 2024 - 2.1K bytes - Viewed (0) -
.github/workflows/pylint-presubmit.yml
with: python-version: "3.9" - name: Install Python dependencies run: | python -m pip install --upgrade pip pip install pylint==2.13.9 numpy wheel - name: Run PyLint on changed files run: |
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Sep 12 16:40:29 UTC 2023 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/concurrency_test.py
# limitations under the License. # ============================================================================== """Concurrency tests for quantize_model.""" from concurrent import futures import numpy as np import tensorflow # pylint: disable=unused-import from tensorflow.compiler.mlir.quantization.tensorflow import quantization_options_pb2 as quant_opts_pb2
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 11 00:47:05 UTC 2023 - 3.6K bytes - Viewed (0) -
tensorflow/cc/saved_model/testdata/generate_chunked_models.py
large nodes for Merger::Read and Merger::Merge. """ from collections.abc import Sequence import os from absl import app from absl import flags import numpy as np from tensorflow.python.compat import v2_compat from tensorflow.python.eager import def_function from tensorflow.python.framework import constant_op from tensorflow.python.lib.io import file_io
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 21:43:11 UTC 2023 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_algorithm_test.py
# limitations under the License. # ============================================================================== """Tests for CalibrationAlgorithm.""" from absl.testing import parameterized import numpy as np from tensorflow.compiler.mlir.quantization.stablehlo import quantization_config_pb2 as stablehlo_quant_config_pb2 from tensorflow.compiler.mlir.quantization.tensorflow.calibrator import calibration_algorithm
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 11 19:29:56 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/python/BUILD
# ], # deps = [ # "//third_party/py/mlir:ir", # "//third_party/py/mlir:stablehlo_dialect", # "//third_party/py/mlir/_mlir_libs:_mlirRegisterEverything", # "//third_party/py/numpy", # "//tensorflow:tensorflow_py", # "//tensorflow/compiler/mlir/stablehlo", # "//tensorflow/python/eager:def_function", # "//tensorflow/python/framework:dtypes",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 20:18:36 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/c/experimental/ops/nn_ops.cc
// Op: Relu() // Summary: Computes rectified linear: `max(features, 0)`. // // Description: // See: https://en.wikipedia.org/wiki/Rectifier_(neural_networks) // Example usage: // >>> tf.nn.relu([-2., 0., 3.]).numpy() // array([0., 0., 3.], dtype=float32) Status Relu(AbstractContext* ctx, AbstractTensorHandle* const features, AbstractTensorHandle** activations, const char* name, const char* raw_device_name) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 10 19:11:36 UTC 2022 - 5.9K bytes - Viewed (0)