Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for const_0d (0.27 sec)

  1. tensorflow/compiler/jit/node_matchers_test.cc

          ops::Placeholder(root.WithOpName("placeholder"), DT_FLOAT);
      Output const_0d = ops::Const(root.WithOpName("const_0d"), 42);
    
      Output const_2d = ops::Const(root.WithOpName("const_2d"), {{1, 2}, {4, 3}});
    
      EXPECT_THAT(const_0d.node(), NodeWith(ConstantValue(42)));
      EXPECT_THAT(const_0d.node(), NodeWith(ConstantValue(42), Name("const_0d")));
    
      EXPECT_THAT(const_2d.node(), NodeWith(ConstantValue({{1, 2}, {4, 3}})));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 14:43:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. tensorflow/cc/ops/const_op.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    #include "tensorflow/cc/ops/const_op.h"
    #include "tensorflow/core/framework/types.h"
    
    namespace tensorflow {
    namespace ops {
    
    namespace {
    template <typename T>
    Output ConstHelper(const Scope& scope, const T& value, DataType dtype) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 03 20:58:54 UTC 2017
    - 2.7K bytes
    - Viewed (0)
  3. tensorflow/cc/ops/const_op.h

    #include <vector>
    
    #include "tensorflow/cc/framework/ops.h"
    #include "tensorflow/cc/framework/scope.h"
    #include "tensorflow/core/graph/node_builder.h"
    
    namespace tensorflow {
    namespace ops {
    
    /// @defgroup const_op Const Op
    /// @{
    
    Output Const(const Scope& scope, const Input::Initializer& val);
    
    Output ConstFromProto(const Scope& scope, const TensorProto& proto);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 17 09:17:01 UTC 2020
    - 2.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/encapsulate_util_test.cc

      // Build the graph:
      // "add" = "const_0" + "const_1"
      // "identity" = "add"
      tensorflow::Scope s = tensorflow::Scope::NewRootScope();
      Output const_0 = ops::Const(s.WithOpName("const_0"), 1, {2});
      Output const_1 = ops::Const(s.WithOpName("const_1"), 2, {2});
      Output add = ops::Add(s.WithOpName("add"), const_0, const_1);
      Output identity = ops::Identity(s.WithOpName("identity"), add);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 05 22:06:22 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/tests/preprocess_op_weight_only.mlir

      }
    
    // PerTensor-LABEL: func @depthwise_conv
    // PerTensor-DAG: %[[CONST_0:.*]] = arith.constant dense<0.000000e+00> : tensor<6xf32>
    // PerTensor: %[[CONST_1:.*]] = arith.constant dense
    // PerTensor-NOT: tensor<2x3x1x6xf32>
    // PerTensor-SAME: tensor<2x3x3x2xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-func-attr.pbtxt

          }
          experimental_debug_info {
            original_node_names: "const_2"
          }
        }
        ret {
          key: "bar"
          value: "const_2:output:0"
        }
      }
      function {
        signature {
          name: "foo"
          output_arg {
            name: "foo"
            type: DT_FLOAT
          }
        }
        node_def {
          name: "const_1"
          op: "Const"
          attr {
            key: "dtype"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 11 19:14:04 UTC 2020
    - 2.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/tests/insert_save_op.mlir

    // CHECK-DAG: %[[CONST_0:.*]] = "tf.Const"() <{{{.*value = dense<"var_0"> : tensor<1x!tf_type.string>.*}}}>
    // CHECK-DAG: %[[CONST_1:.*]] = "tf.Const"() <{{{.*value = dense<""> : tensor<1x!tf_type.string>.*}}}>
    // CHECK: "tf.SaveV2"(%[[ARG]], %[[CONST_0]], %[[CONST_1]], %[[READ_VARIABLE]])
    // CHECK: return
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/tests/prepare_quantize_drq_per_channel.mlir

        return %0 : tensor<*xf32>
      }
    
    // CHECK-LABEL: func @conv2d
    // CHECK-DAG: %[[CONST_0:.*]] = arith.constant dense<0.000000e+00> : tensor<2xf32>
    // CHECK-DAG: %[[CONST_1:.*]] = arith.constant dense<3.000000e+00> : tensor<2x3x512x2xf32>
    // CHECK: %0 = "quantfork.qcast"(%[[CONST_1]]) : (tensor<2x3x512x2xf32>) -> tensor<2x3x512x2x!quant.uniform<i8<-127:127>:f32:3, {0.023622047244094488,0.023622047244094488}>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/tests/prepare_quantize_drq.mlir

        return %0 : tensor<*xf32>
      }
    
    // CHECK-LABEL: func @conv2d
    // CHECK-DAG: %[[CONST_0:.*]] = arith.constant dense<0.000000e+00> : tensor<2xf32>
    // CHECK-DAG: %[[CONST_1:.*]] = arith.constant dense<3.000000e+00> : tensor<2x3x3x512xf32>
    // CHECK: %0 = "quantfork.qcast"(%[[CONST_1]]) : (tensor<2x3x3x512xf32>) -> tensor<2x3x3x512x!quant.uniform<i8<-127:127>:f32, 0.023622047244094488>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/tests/preprocess_op.mlir

        return %0 : tensor<*xf32>
      }
    
    // CHECK-LABEL: func @depthwise_conv
    // CHECK-DAG: %[[CONST_0:.*]] = arith.constant dense<0.000000e+00> : tensor<6xf32>
    // CHECK: %[[CONST_1:.*]] = arith.constant dense
    // CHECK-NOT: tensor<2x3x3x2xf32>
    // CHECK-SAME: tensor<2x3x1x6xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top